1).unzip the zip file NERD_Tree.zip/TagList.zip/ctags.tar.gz to local dir.
阅读(366) | 评论(0) | 转发(0) |
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 <F2> :Tlist<CR>
-
- "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:
相关热门文章
给主人留下些什么吧!~~
评论热议
本文介绍了如何配置Vim文本编辑器以提高编程效率。包括安装NERD_Tree、TagList等插件的方法,设置.bash_profile及.vimrc文件以实现语法高亮、自动缩进等功能。

被折叠的 条评论
为什么被折叠?



