Merge pull request #770 from vCaesar/up3-pr
Update en vim and Fix Issue #[767]
This commit is contained in:
56
en/01.4.md
56
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.
|
||||
@@ -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
|
||||
|
||||
|
||||

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