Vim配置

let Tlist_Show_One_File = 1            "不同时显示多个文件的tag,只显示当前文件的
let Tlist_Exit_OnlyWindow = 1          "如果taglist窗口是最后一个窗口,则退出vim
let Tlist_Use_Right_Window = 1         "在右侧窗口中显示taglist窗口

let Tlist_Auto_Open = 1   "启动VIM时候自动启动taglist窗口。

let Tlist_WinWidth = 16   "设置Tlist窗口的宽度


map <F8> :TlistToggle<CR>  
"F8启动Taglist

set ignorecase smartcase    " 搜索时忽略大小写,但在有一个或以上大写字母时仍保持对大小写敏感
set hlsearch                " 搜索时高亮显示被找到的文本
set nu                      " 设置行号

set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936 "在window下的文件默认是gbk,在linux下默认是utf-8.配置好这一据后就可解决乱码

color mycolor

set tags=tags; 

set autochdir



----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                                                                                                            详细配置可以设置如下

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

let Tlist_Show_One_File = 1            "??????????tag?????????
let Tlist_Exit_OnlyWindow = 1          "??taglist?????????????vim
let Tlist_Use_Right_Window = 1         "????????taglist??


let Tlist_Auto_Open = 1   "??VIM??????taglist???


let Tlist_WinWidth = 16   "??Tlist?????




"map <F8> :TlistToggle<cr><c-w><c-w>
map t :TlistToggle<cr><c-w><c-w>
"F8??Taglist
"
"


set ignorecase smartcase    " ???????????????????????????????
set hlsearch                " ?????????????
set nu                      " ????
"
set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936 "?window???????gbk??linux????utf?8.?????????????






"set tags=tags;


set autochdir






set nocompatible


"set number


syntax on


"set pastetoggle=<F3>


set history=50


"set autoindent


"set expandtab


"set tabstop=4


"set shiftwidth=4


"set nobackup


set incsearch


"set nocp
"filetype plugin on




colorscheme koehler


"set guifont=Fixedsys\ 9


"set history=50         " keep 50 lines of command line history
"set ruler              " show the cursor position all the time
"set showcmd            " display incomplete commands
"set incsearch          " do incremental searching


" Don't use Ex mode, use Q for formatting
"map Q gq
"map <C-p> "0p


" CTRL-U in insert mode deletes a lot.  Use CTRL-G u to first break undo,
" so that you can undo CTRL-U after inserting a line break.
"inoremap <C-U> <C-G>u<C-U>


"display the file name in the statusline
"set statusline+=%f


"set cscope DB


" cs add /vobs/dsl/source13/cscope.out /vobs/dsl/source13


"set ignorecase


set tags=/home/johnbl/tags"
"set tags=/home/johnbl/fdt_tags
"set tags=/home/johnbl/cvp_tags,/home/johnbl/bcvp_tags,/home/johnbl/fdt_tags


"map q :q
"map <c-h> :noh<cr>
"map <c-j> :set hls<cr>


""""""""""""""""""""""""""""""
" Statusline
""""""""""""""""""""""""""""""
"Always hide the statusline
"return curdir
"endfunction


"Format the statusline
"set statusline=\ %F%m%r%h\ %w\ \ Line:\ %l/%L:%c
"set statusline=\ %F%m%r%h\ %w\ \ CWD:\ %r%{CurDir()}%h\ \ \ Line:\ %l/%L:%c


"map <c-i> [I


"map t :TlistToggle<cr><c-w><c-w>


"let Tlist_Exit_OnlyWindow=1 


"map <c-x> :q<cr>


set foldenable
set foldmethod=syntax
set foldcolumn=0
setlocal foldlevel=9999999999999999999999999
"set foldclose=all " 
nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>


map <F6> i/********************************************************************************<esc>o<esc>i*@parameter   [] <esc>o<esc>i*@parameter   [] <esc>o<esc>i*@parameter   [] <esc>o<esc>i*@parameter   [] <esc>o<esc>i*@description <esc>o<esc>i*@return <esc>o<esc>i*<esc>o<esc>i******************************************************************************/<esc><CR>








  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值