Merge pull request #770 from vCaesar/up3-pr

Update en vim and Fix Issue #[767]
This commit is contained in:
astaxie
2017-01-03 19:30:09 +08:00
committed by GitHub
2 changed files with 56 additions and 2 deletions

View File

@@ -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.
@@ -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 .vimrcVundle 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 ~/.vimrcAdd 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

View File

@@ -24,7 +24,7 @@ WebSocket的协议颇为简单在第一次handshake通过以后连接便
图8.3 WebSocket的request和response信息
在请求中的"Sec-WebSocket-Key"是随机的,对于整天跟编码打交的程序员一眼就可以看出来这个是一个经过base64编码后的数据。服务器端接收到这个请求之后需要把这个字符串连接上一个固定的字符串
在请求中的"Sec-WebSocket-Key"是随机的,对于整天跟编码打交的程序员一眼就可以看出来这个是一个经过base64编码后的数据。服务器端接收到这个请求之后需要把这个字符串连接上一个固定的字符串
258EAFA5-E914-47DA-95CA-C5AB0DC85B11