From 55796f8993ed1bf65f5fbba1821f17e40463e58b Mon Sep 17 00:00:00 2001 From: vCaesar Date: Mon, 2 Jan 2017 17:30:21 +0800 Subject: [PATCH 1/3] Fix Issue #[767] --- zh/08.2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/08.2.md b/zh/08.2.md index 9e5e2236..0573488a 100644 --- a/zh/08.2.md +++ b/zh/08.2.md @@ -24,7 +24,7 @@ WebSocket的协议颇为简单,在第一次handshake通过以后,连接便 图8.3 WebSocket的request和response信息 -在请求中的"Sec-WebSocket-Key"是随机的,对于整天跟编码打交到的程序员,一眼就可以看出来:这个是一个经过base64编码后的数据。服务器端接收到这个请求之后需要把这个字符串连接上一个固定的字符串: +在请求中的"Sec-WebSocket-Key"是随机的,对于整天跟编码打交道的程序员,一眼就可以看出来:这个是一个经过base64编码后的数据。服务器端接收到这个请求之后需要把这个字符串连接上一个固定的字符串: 258EAFA5-E914-47DA-95CA-C5AB0DC85B11 From ad2fc463f0e2be0a105fdf3fad22136ceb54dc06 Mon Sep 17 00:00:00 2001 From: vCaesar Date: Mon, 2 Jan 2017 17:49:29 +0800 Subject: [PATCH 2/3] Update en vim --- en/01.4.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/en/01.4.md b/en/01.4.md index 1d21d0a0..5e799dcd 100644 --- a/en/01.4.md +++ b/en/01.4.md @@ -145,6 +145,60 @@ First, download the version of [Sublime](http://www.sublimetext.com/) suitable f Vim is a popular text editor for programmers, which evolved from its slimmer predecessor, Vi. It has functions for intelligent completion, compilation and jumping to errors. +vim-go is vim above an open-source go language using the most extensive development environment plug-ins + +The plugin address:[github.com/fatih/vim-go](https://github.com/fatih/vim-go) + +Vim plugin management are the mainstream [Pathogen](https://github.com/tpope/vim-pathogen) and [Vundle](https://github.com/VundleVim/Vundle.vim) +,But the aspects thereof are different. +Pathogen is to solve each plug-in after the installation of files scattered to multiple directories and poor management of the existence. Vundle is to solve the automatic search and download plug-ins exist. +These two plug-ins can be used simultaneously. + +1.Install Vundle + +```sh +mkdir ~/.vim/bundle +git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim +``` + +Edit .vimrc,Vundle the relevant configuration will be placed in the beginning([Refer to the Vundle documentation for details](https://github.com/VundleVim/Vundle.vim)) + +```sh +set nocompatible " be iMproved, required +filetype off " required + +" set the runtime path to include Vundle and initialize +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() + +" let Vundle manage Vundle, required +Plugin 'gmarik/Vundle.vim' + +" All of your Plugins must be added before the following line +call vundle#end() " required +filetype plugin indent on " required + +``` +2.Install Vim-go + +Edit ~/.vimrc,Add a line between vundle #begin and vundle #end: + +```sh + +Plugin 'fatih/vim-go' +``` + +Executed within Vim: PluginInstall + +3.Install YCM(Your Complete Me) to AutoComplete +Add a line to ~ / .vimrc: +```sh + +Plugin 'Valloric/YouCompleteMe' +``` +Executed within Vim: PluginInstall + + ![](images/1.4.vim.png?raw=true) Figure 1.8 Vim intelligent completion for Go From 49e2826f6ca1c910441b1e18f8be7c6e0aada3fb Mon Sep 17 00:00:00 2001 From: vCaesar Date: Mon, 2 Jan 2017 23:50:48 +0800 Subject: [PATCH 3/3] Fix en/LiteIDE Download page --- en/01.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/01.4.md b/en/01.4.md index 5e799dcd..55b0c4d2 100644 --- a/en/01.4.md +++ b/en/01.4.md @@ -47,7 +47,7 @@ LiteIDE features. ### LiteIDE installation - Install LiteIDE - - [Download page](http://code.google.com/p/golangide) + - [Download page](https://sourceforge.net/projects/liteide/files/) - [Source code](https://github.com/visualfc/liteide) You need to install Go first, then download the version appropriate for your operating system. Decompress the package to directly use it.