Linux 设置vim指令

set mouse=a
set nu
set autoindent
set laststatus=2
set tabstop=4
set showcmd
set cursorline
set makeprg=g++ % -o %< -Wall -std=c++11 -DIVE
inoremap ( ()i
inoremap [ []i
inoremap { {}i
inoremap ' ''i
inoremap " ""i
color ron

func! Make()
exec "w"
exec "make"
endf

noremap  :!time ./%<
noremap  :call Make()

%%%xuefeng

set fillchars=vert:\ ,stl:\ ,stlnc:\
set nu
set tabstop=4
set shiftwidth=4
set softtabstop=4
set autochdir
set mouse=a
set autoindent
set list
set listchars=tab:\|\ ,trail:.,extends:>,precedes:<,eol:\ 
set bufhidden=hide
setlocal noswapfile
map   i
imap   i
imap   :wq 
imap   :w  :!printf "\033c"  :w  :!more -p100000 %
imap   :w  :!printf "\033c"  :!g++ -g -std=c++11 % -o %< && ./%< -O2 -Wall
imap   :vsplit i
imap   :split i
imap   :tab split i
imap   :close i
imap  :browse wi
imap  :ui
imap  :redi

%%%ooo

set mouse=a
set nu
set autoindent
set laststatus=2
set tabstop=4
set showcmd
set t_Co=256
color elflord
inoremap ( ()i
inoremap [ []i
inoremap { {}i
inoremap ' ''i
inoremap " ""i
color ron
map i
imap i
imap :wq
imap :w :!printf "\033c" :w :!more -p100000 %
imap :w :!printf "\033c" :!g++ -g -std=c++11 % -o %< && ./%< -O2 -Wall
imap :vsplit i
imap :split i
imap :tab split i
imap :close i
imap :browse wi
imap :ui
imap :redi

%%%_LH

 

你可能感兴趣的:(Linux 设置vim指令)