Chinaunix首页 | 论坛 | 博客
  • 博客访问: 410573
  • 博文数量: 73
  • 博客积分: 3326
  • 博客等级: 中校
  • 技术积分: 631
  • 用 户 组: 普通用户
  • 注册时间: 2010-02-05 15:31
文章分类

全部博文(73)

文章存档

2014年(1)

2011年(51)

2010年(21)

分类: LINUX

2011-08-03 19:39:08

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 :Tlist

  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:
阅读(1763) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~