vim linux设置

来源:互联网 发布:同花顺证券行情分析软件 编辑:程序博客网 时间:2024/05/26 02:51
set tabstop=4
set softtabstop=4
set shiftwidth=4//shift宽度
set autoindent//自动换行
set cindent // c语言换行模式



au BufReadPost * ifline("'\"") > 0|if line("'\"") <= line("$")|exe("norm'\"")|else|exe "norm $"|endif|endif //记住文本上次打开的位置

// 支持下面所有语言的打开和修改,可能会有重复,只需要复制即可
set guifont=Courier\ New\ 10
setfencs=utf-8,ucs-bom,gb18030,gbk,gb2312,cpArray36
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
"set cindent