Vim之基础配置简述
Vim之基础配置
安装方式
sudo apt-get install vim
无插件配置(简单配置)
.vimrc文件
"""""""""""""""""""""""""""""""" "Interface """""""""""""""""""""""""""""""" set nu "show line number syntax enable "syntax highlight syntax on """""""""""""""""""""""""""""""" "Key command """""""""""""""""""""""""""""""" set tabstop=4 "set Tab = 4 set softtabstop=4 "indent= 4 set shiftwidth=4 """""""""""""""""""""""""""""""" "Compile """""""""""""""""""""""""""""""" map <F5> :call CompileRunGcc()<CR> func! CompileRunGcc() exec "w" if &filetype == 'c' exec "!g++ % -o %<" exec "! ./%<" elseif &filetype == 'cpp' exec "!g++ % -o %<" exec "! ./%<" elseif &filetype == 'java' exec "!javac %" exec "!java %<" elseif &filetype == 'sh' :!./% endif endfunc """"""""""""""""""""""""""""""""" "Debug """"""""""""""""""""""""""""""""" map <F8> :call Rungdb()<CR> func! Rungdb() exec "w" exec "!g++ % -g -o %<" exec "!gdb ./%<" endfunc """""""""""""""""""""""""""""""""" "Others """""""""""""""""""""""""""""""""" filetype plugin indent on set autowrite set ruler set cursorline set magic set guioptions-=T set guioptions-=m set autoindent set cindent set mouse=a " always use mouse
我的界面
相关推荐
lerdor 2020-10-14
linzb 2020-09-22
HeronLinuxampARM 2020-09-14
CoderMannul 2020-09-07
lerdor 2020-08-31
ZZBAIFFA 2020-08-31
yonggeno 2020-08-18
yhuihon 2020-08-17
涅磐 2020-08-11
yhuihon 2020-08-09
zhangxl0 2020-07-28
yhuihon 2020-07-26
想个标题偏头痛 2020-07-19
老甘的可读区 2020-07-18
linzb 2020-07-18
xlb 2020-07-12
老甘的可读区 2020-07-09
極愛 2020-07-06