VIM配置文件

“”""""""""""""""""""""""""
“Base config by:fythons "
“””"""""""""""""""""""""""
highlight Normal ctermfg=grey ctermbg=black
set nocompatible
syntax on "語法高亮
filetype on
set number "設置行號
set wildmenu "命令行模式tab鍵自動補齊
set history=1000 "歷史命令個數
set background=dark "設置背景色
set autoindent "自動對齊
"set smartindent "開啓新行時智能縮進
set magic "設置魔法
set tabstop=4 "設置tab鍵長度爲4
set shiftwidth=4
set softtabstop=4
set showmatch "插入括號時短暫的跳轉到匹配的對應括號
set guioptions=T
set vb t_vb=
set ruler "打開狀態欄標尺
set nohls
set incsearch "輸入搜索內容是就顯示結果
set mouse=a "鼠標可用
set hlsearch "設置高亮搜索文本
set cursorline "突出顯示當前行

if has(“vms”)
set nobackup "不備份修改文件
else
set backup "備份修改文件
endif

“”""""""""""""""""""""""
“Ctags config”
“”""""""""""""""""""""""
"set tags=/home/xuxuequan/fany/workspace/hualai/project/mi99/fw-wyze-outdoor/tags
set tags+=/home/xuxuequan/hisilicon/SDK/liteOS/Hi3518EV300_SHC_SDK_V1.0.0.2/mpp/tags
set tags+=/home/xuxuequan/hisilicon/SDK/liteOS/Hi3518EV300_SHC_SDK_V1.0.0.2/reference/battery_ipcam/tags

“”""""""""""""""""""""""
“TagList config”
“”""""""""""""""""""""""
let Tlist_Show_One_File = 1
let Tlist_Exit_OnlyWindow = 1
let Tlist_Auto_Open = 0
let Tlist_Ctags_Cmd = “/usr/bin/ctags”
"let Tlist_Use_Rigth_Window = 1
"let Tlist_Use_Show_Menu = 1

“”""""""""""""""""""""""
“cscope config”
“”""""""""""""""""""""""
if has(“cscope”)
set csprg=/usr/bin/cscope
set csto=1
set cst
set nocsverb
" add any database in current directory
if filereadable(“cscope.out”)
cs add cscope.out
endif
set csverb
endif

set cscopequickfix=s-,c-,d-,i-,t-,e-

“”""""""""""""""""""""""
“winmanager config”
“”""""""""""""""""""""""
let g:winManagerWindowLayout=‘FileExplorer|TagList’
let g:winManagerWidth=25
"let g:winManagerWindowLayout=‘BufExplorer,FileExplorer|TagList’ "設置頁面分割

“”""""""""""""""""""""""
“bufExplorer config”
“”"""""""""""""""""""""
"let g:bufExplorerSplitRight=1
"let g:bufExplorerShowRelativePath=1
"let g:bufExplorerSortBy=‘mru’
"let g:bufExplorerSplitVertical=1
"let g:bufExplorerSplitVertSize=30
"let g:bufExplorerUseCurrentWindow=1

“”""""""""""""""""""""""
“快捷鍵設置”
“”""""""""""""""""""""""
nmap qq :q!
nmap :noh
nmap cw :cw
nmap wm :WMToggle
nmap tl :TlistToggle
nmap bf :BufExplorer

nmap cp :cs add /home/xuxuequan/hisilicon/SDK/Hi3516EV200_SDK_V1.0.0.2/mpp/cscope.out /home/xuxuequan/hisilicon/SDK/Hi3516EV200_SDK_V1.0.0.2/mpp
nmap cip :cs add /home/xuxuequan/fany/workspace/hualai/project/mi99/fw-wyze-outdoor/cscope.out /home/xuxuequan/fany/workspace/hualai/project/mi99/fw-wyze-outdoor

nmap cs :cs find s =expand("")
nmap cg :cs find g =expand("")
nmap cc :cs find c =expand("")
nmap ct :cs find t =expand("")
nmap ce :cs find e =expand("")
nmap cf :cs find f =expand("")
nmap ci :cs find i ^=expand("")$
nmap cd :cs find d =expand("")

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章