31 lines
878 B
VimL
31 lines
878 B
VimL
syntax on
|
|
set number "显示行号
|
|
set ts=4
|
|
"set expandtab "tab to space
|
|
set autoindent "自动缩进
|
|
set encoding=utf-8 "使用utf-8字符编码
|
|
set fileencoding=utf-8
|
|
"set cindent
|
|
set nocompatible "?
|
|
"set guifont=consolas:h14
|
|
set wrap "自动折行
|
|
set cursorline "光标行高亮
|
|
set hlsearch "高亮显示搜索结果
|
|
set incsearch "搜索模式下,每输入一个字符,就跳到对应结果
|
|
set ignorecase "忽略搜索大小写
|
|
|
|
nnoremap <space>b :buffers<cr>:b<space>
|
|
nnoremap <space>e :b#<cr>
|
|
nnoremap <space>s :split<space>
|
|
nnoremap <space>w :w<cr>
|
|
nnoremap qw :wq<cr>
|
|
nnoremap qq :q<cr>
|
|
nnoremap <space>tt :tabedit<space>
|
|
nnoremap <space>to :tabonly<cr>
|
|
nnoremap <space>tc :tabclose<cr>
|
|
inoremap jf <esc>
|
|
inoremap jq <esc>:wq<cr>
|
|
inoremap jw <c-x><c-n>
|
|
inoremap jl <c-x><c-l>
|
|
cnoremap jf <c-c>
|