1).unzip the zip file NERD_Tree.zip/TagList.zip/ctags.tar.gz to local dir.
2).mkdir -v ~/.vim{plugin,doc}
touch ~/.vimrc
3).mv or cp plugin/xxx.vim to target dir(~/.vim/plugin)
mv or cp doc/xxx.txt to target dir(~/.vim/doc)
4).ctags set up may be failed if you are not root,but when you use "-prefix=/home/xxxx/" it can be installed ok.
5).configure items
You can edit you .bash_profile,Also you can edit the .vimrc,here is the file .vimrc content:
- "display line nu
-
set nu
-
"syntax highlight
-
syntax on
-
"indention based on file type
-
filetype indent on
-
set autoindent
-
set cindent
-
"ignore the camel when search
-
set ic
-
"highlight the text when search
-
set hls
-
"Wrap text instead of being on one line
-
set lbr
-
"reset default color scheme to peachpuff
-
colorscheme peachpuff
-
"set tab distance
-
set tabstop=4
-
set softtabstop=4
-
"set auto indent width
-
set shiftwidth=4
-
-
"fonts setting
-
set guifont=Courier_New:h11:cANSI
-
-
"ctags
-
let Tlist_Ctags_Cmd="/home/jasonf/work/App_bin/bin/ctags"
-
-
"TagList
-
let Tlist_Use_Right_Window=1
-
let Tlist_Sort_Type="name"
-
let Tlist_Exit_OnlyWindow=1
-
let Tlist_File_Fold_Auto_Close=1
-
let Tlist_Auto_Open=0
-
let Tlist_Show_One_File=1
-
"map TagList
-
map :Tlist
-
-
"NERDTree Plugin
-
let NERDTreeWinPos="left"
-
let NERDTreeWinSize=31 "size of the NERD tree
-
-
"open and close the NERDTree.vim separately
-
map <F3> <ESC>:NERDTreeToggle<RETURN>
the end capture:
阅读(1796) | 评论(0) | 转发(0) |