vim/ctags/TagList/NERD_Tree Set UP

本文介绍了如何配置Vim文本编辑器以提高编程效率。包括安装NERD_Tree、TagList等插件的方法,设置.bash_profile及.vimrc文件以实现语法高亮、自动缩进等功能。
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:
  1. "display line nu
  2. set nu
  3. "syntax highlight
  4. syntax on
  5. "indention based on file type
  6. filetype indent on
  7. set autoindent
  8. set cindent
  9. "ignore the camel when search
  10. set ic
  11. "highlight the text when search
  12. set hls
  13. "Wrap text instead of being on one line
  14. set lbr
  15. "reset default color scheme to peachpuff
  16. colorscheme peachpuff
  17. "set tab distance
  18. set tabstop=4
  19. set softtabstop=4
  20. "set auto indent width
  21. set shiftwidth=4

  22. "fonts setting
  23. set guifont=Courier_New:h11:cANSI

  24. "ctags
  25. let Tlist_Ctags_Cmd="/home/jasonf/work/App_bin/bin/ctags"

  26. "TagList
  27. let Tlist_Use_Right_Window=1
  28. let Tlist_Sort_Type="name"
  29. let Tlist_Exit_OnlyWindow=1
  30. let Tlist_File_Fold_Auto_Close=1
  31. let Tlist_Auto_Open=0
  32. let Tlist_Show_One_File=1
  33. "map TagList
  34. map <F2> :Tlist<CR>

  35. "NERDTree Plugin
  36. let NERDTreeWinPos="left"
  37. let NERDTreeWinSize=31 "size of the NERD tree

  38. "open and close the NERDTree.vim separately
  39. map <F3> <ESC>:NERDTreeToggle<RETURN>
the end capture:
阅读(366) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值