linux下配置vim
在用户主目录下创建.vimrc文件
内容如下:
set nu
syntax on "syntax highlight
set cursorline "have cursorline
set cindent "
set smartindent "
set autoindent "
set hlsearch "highlight search word
set shiftwidth=4 "
set tabstop=4 "tab = 4
map <silent> <F10> :TlistToggle<cr> "use <Fn> to open/close Tlist
"let Tlist_Auto_Open=1 "每次自动打开Tlist
let Tlist_Show_One_File = 1 "不同时显示多个文件的tag,只显示当前文件的
let Tlist_Exit_OnlyWindow = 1 "如果taglist窗口是最后一个窗口,则退出vim
"let Tlist_Use_Right_Window = 1 "在右侧窗口中显示taglist窗口
set showmatch "设置自动检测括号是否匹配
set incsearch
set ruler
set laststatus=2 "显示当前文件名
"自动跳转到上次文件打开的位置
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif 相关推荐
圆圆的世界CSDN 2020-02-09
yonggeno 2019-12-28
RichardJason 2015-03-01
SlowWakler 2015-03-01
xujidong0 2014-11-03
gotowqj 2014-01-15
rootdream 2012-08-25
xlb 2018-07-02
wuchangqian 2019-06-30
rootdream 2019-06-30
rootdream 2019-06-26
缘起 2019-06-21
xlb 2014-08-22
lethwei 2011-10-19
codethinkwrite 2018-07-23