vim使用

http://www.xuebuyuan.com/1116162.html
https://blog.csdn.net/luojj26/article/details/50935921
https://blog.csdn.net/lhy2932226314/article/details/69668891#
set nu
"nu=number
set cul
"行亮 cuc 列
set tabstop=4 "tab
set shiftwidth=4 "换行宽度
set softtabstop=4 "删除
set mouse=a "鼠标
set smartindent "自动缩进
set expandtab "转变为空格
set autoindent "和上一行相同缩进
"im=inoremap
im ( ()i
im { {}iV "im { {}O
im [ []i
"括号
set whichwrap+=<,>,[,]
"跳转到上一行

map :call Bian()
map :call Yun()
map :call Tiao()

func! Bian()
exec “w”
exec “!g++ % -o %<”
endfunc

func! Yun()
exec “!./%<”
endfunc

func! Tiao()
exec “!g++ % -g -o %<”
exec “!gdb ./%<”
endfunc

你可能感兴趣的:(linux)