Using SPF13 Vim – Install

Intro

VIM is a powerful text/code editor, and there are so many plugins and configurations for it.
SPF vim give a solution of the plugins package and configurations refined for programers.

Install

Follow the guide on SPF VIM SITE

OR just run the following command in your terminal:

curl http://j.mp/spf13-vim3 -L -o - | sh

The startup screen

Not sure if it is a bug of SPF13, the annoying message ‘Type Command or ….. to continue’ shows up every time when start the vim after install spfvim. But we can get rid of this by adding the following line to file ‘~/.vimrc.local’:

let g:bufferline_echo=0

中文字符, Multi-byte characters

To get rid of the disorder of displaying multi-byte characters, need add the following lines to the file ‘~/.vimrc.local’:

set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
set fileencoding=utf-8
set encoding=utf-8

Custom Color Schema

The built in color can be changed as your with, i like this one:

colorscheme molokai

To be continue …

vim 命令

vim命令整理备忘

先整理常用命令

切换状态:

i   进入插入模式
ESC   退出插入模式

常用:

h,j,k,l    移动光标
:w   保存
:q  退出
:wq和:x 保存修改并退出
:q!  强退
x 删除当前字符
dd 删除当前行
p 粘贴到当前行下面
yy 复制当前行,可以在前面加数字表示复制多少行

/patten 查找字符串patten
n 继续向下查找
N 反向查找