VIM:我的vimrc

  1. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  2. "Vimruntimeconfigurationforcommonusage
  3. "Maintainer:WarGrey<[email protected]>
  4. "LastChange:2008Jul28
  5. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  6. colorschemewargrey

  7. filetypepluginon
  8. filetypeindenton

  9. syntaxon
  10. syntaxenable
  11. syntaxsyncfromstart

  12. setambiwidth=double
  13. setautoindent
  14. setautoread
  15. setbackspace=eol,start,indent
  16. setbufhidden="wipe"
  17. setcindent
  18. setcinoptions=:0g0t0(sus
  19. setcmdheight=9
  20. setcomments=sr:/*,mb:*,ex:*/,://
  21. setcomplete=.,w,b,u,U,k,s,i,d,t
  22. setcompleteopt=menu,preview
  23. setdictionary=""
  24. setnodigraph"<==
  25. setencoding=utf-8
  26. setfileformats=unix,dos,mac
  27. setfoldenable
  28. setfoldlevel=0
  29. setfoldmethod=syntax
  30. setformatoptions=croql
  31. setgrepprg=grep\-nH\$*
  32. setguifont=Courier\10\Pitch\10
  33. sethidden
  34. sethistory=1024
  35. setincsearch
  36. setlaststatus=2
  37. setlinebreak
  38. setmagic
  39. setmatchtime=2
  40. setmouse=a
  41. setnobackup
  42. setnocompatible
  43. setnoexpandtab
  44. setnoerrorbells
  45. setnoswapfile
  46. setnovisualbell
  47. setnowritebackup
  48. setnumber
  49. setpastetoggle=<Insert>
  50. setpumheight=8
  51. setruler
  52. setshiftwidth=4
  53. setsidescroll=1
  54. setshowcmd
  55. setshowfulltag
  56. setshowmatch
  57. setshowmode
  58. setshowtabline=2
  59. setsmartindent
  60. setsmartcase
  61. setsmarttab
  62. setscrolloff=8
  63. setsofttabstop=4
  64. setstatusline=%{CurDir()}\%l/%L(%p%%):%c\[ASCII:%b]
  65. setswitchbuf=usetab
  66. settabline=%yShell:%{CurDir()}\%f\%m%r%h%w%k
  67. settabstop=4
  68. settextwidth=128
  69. setthesaurus=""
  70. setviminfo='10,\"100,:20,%,n~/.viminfo
  71. setwhichwrap+=<,>,h,l
  72. setwildmenu
  73. setwrap

  74. letGrep_Skip_Dirs='RCSCVSSCCS.svn'
  75. letTlist_Ctags_Cmd="/usr/bin/ctags"
  76. letTlist_File_Fold_Auto_Close=1
  77. letTlist_Show_Menu=1
  78. letTlist_Sort_Type="name"
  79. letTlist_Use_Right_Window=1
  80. letg:explHideFiles='^\.'
  81. letg:explSplitBelow=1
  82. letg:explSplitLeft=1
  83. letg:explVertical=1
  84. letg:explWinSize=35
  85. letg:miniBufExplMapWindowNavVim=1
  86. letg:miniBufExplMapWindowNavArrows=1
  87. letg:miniBufExplModSelTarget=1
  88. letg:miniBufExplSplitBelow=1
  89. letg:miniBufExplUseSingleClick=1
  90. letg:miniBufExplVSplit=20
  91. letg:miniBufExplorerMoreThanOne=2
  92. letg:winRefreshWhenEnter=1
  93. letg:winManagerWindowLayout='FileExplorer|TagList,TagsExplorer'
  94. letmapleader="~"

  95. inoremap<C-q><ESC>
  96. vnoremap<C-q><ESC>
  97. inoremap<S-F12><ESC>:q!<CR>
  98. nnoremap<S-F12>:q!<CR>
  99. inoremap<M-F12><ESC>:qall<CR>
  100. nnoremap<M-F12>:qall<CR>
  101. inoremap<M-S-F12><ESC>:qall!<CR>
  102. nnoremap<M-S-F12>:qall!<CR>
  103. inoremap<C-a><ESC>ggv<C-END>
  104. inoremap<C-G><ESC>1G=Gi
  105. inoremap<C-r><ESC><C-r>a
  106. inoremap<C-s><ESC>:w<CR>a
  107. inoremap<C-w><ESC>:wall<CR>a
  108. inoremap<C-u><ESC>:u<CR>i
  109. inoremap<F3><ESC>*i
  110. inoremap<S-F3><ESC>#i
  111. inoremap<C-F3><ESC>Ni
  112. inoremap<C-S-F3><ESC>ni
  113. inoremap<F5><ESC>:wall<CR>:make<CR>:clist!<CR>
  114. inoremap<S-F5><ESC>:wall<CR>:maketest<CR>:clist!<CR>
  115. inoremap<C-F5><ESC>:wall<CR>:makerun<CR>:clist!<CR>
  116. inoremap<C-S-F5><ESC>:wall<CR>:makemkdoc<CR>:clist!<CR>
  117. inoremap<F6><ESC>:clist!<CR>
  118. inoremap<F9><ESC>:split<CR>i
  119. inoremap<C-F9><ESC>:vsplit<CR>i
  120. inoremap<S-F9><ESC>:verticaldiffsplit
  121. inoremap<F10><ESC>:WMToggle<CR>i
  122. inoremap<C-F11><ESC>:callCommentLine()<CR><Up>i
  123. inoremap<M-F11><ESC>:callUnCommentLine()<CR><Up>i
  124. inoremap<M-Up><ESC>:cprevious<CR>i
  125. inoremap<M-Down><ESC>:cnext<CR>i
  126. inoremap<M-Left><ESC>:colder<CR>i
  127. inoremap<M-Right><ESC>:cnewer<CR>i
  128. inoremap<C-]><ESC>g<C-]>
  129. inoremap<C-]><C-]><ESC><C-]>
  130. inoremap<C-t><ESC><C-t>
  131. nnoremap<F3>*
  132. nnoremap<S-F3>#
  133. nnoremap<C-F3>N
  134. nnoremap<C-S-F3>n
  135. noremap<space>/
  136. noremap<C-]><C-]><C-]>
  137. noremap<C-]>g<C-]>
  138. noremap<CR>:
  139. noremap<C-g>1G=G
  140. noremap<C-a>ggv<C-END>
  141. noremap<C-s>:w<CR>
  142. noremap<C-u>:u<CR>
  143. noremap<C-w>:wall<CR>
  144. noremap<F5>:wall<CR>:make<CR>:clist!<CR>
  145. noremap<C-F5>:wall<CR>:makerun<CR>:clist!<CR>
  146. noremap<S-F5>:wall<CR>:maketest<CR>:clist!<CR>
  147. noremap<C-S-F5>:wall<CR>:makemkdoc<CR>:clist!<CR>
  148. noremap<F6>:clist!<CR>
  149. noremap<F9>:split<CR>
  150. noremap<C-F9>:vsplit<CR>
  151. noremap<S-F9>:verticaldiffsplit
  152. noremap<F10>:WMToggle<CR>
  153. noremap<C-F11>:callCommentLine()<CR>
  154. noremap<M-F11>:callUnCommentLine()<CR>
  155. noremap<M-Up>:cprevious<CR>i
  156. noremap<M-Down>:cnext<CR>i
  157. noremap<M-Left>:colder<CR>i
  158. noremap<M-Right>:cnewer<CR>i
  159. vnoremap<C-c>"+y
  160. vnoremap<C-x>"+d
  161. vnoremap<F3>"+y<ESC>:%s///g
  162. vnoremap<C-F11>:callRangeCommentLine()<CR>
  163. vnoremap<M-F11>:callRangeUnCommentLine()<CR>
  164. cnoremap<leader>J/usr/java/default/
  165. cnoremap<leader>V/home/Estelle/Programs/share/vim/vim71/
  166. cnoremap<leader>T/home/Estelle/Programs/share/texlive/2008/
  167. imap<unique><c-F2><ESC><c-F2>a
  168. imap<unique><s-F2><ESC><s-F2>a
  169. imap<unique><F2><ESC><F2>a

  170. autocmdBufReadPost*ifline("'\"")>0|ifline("'\"")<=line("$")|exe("norm'\"")|else|exe"norm$"|endif|endif
  171. autocmdBufNewFile,BufRead*.\(txt\)\@!inoremap'''<esc>:letleavechar="'"<cr>i
  172. autocmdBufNewFile,Bufread*.\(vim\)\@!inoremap"""<esc>:letleavechar='"'<cr>i
  173. autocmdBufRead,BufNew:callUMiniBufExplorer

  174. source$VIMRUNTIME/ftplugin/man.vim
主要留個備份。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章