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>