VIM: My vimrc

Source: Internet
Author: User
Tags imap
  1. """""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""
  2. "Vim runtime configuration for common usage
  3. "Maintainer: wargrey <yoshua.estelle@gmail.com>
  4. & Quot; last change: 2008 Jul 28
  5. """""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""
  6. Colorscheme wargrey

  7. Filetype plugin on
  8. Filetype indent on
  9. Syntax on
  10. Syntax enable
  11. Syntax sync fromstart
  12. Set ambiwidth = double
  13. Set autoindent
  14. Set autoread
  15. Set backspace = EOL, start, indent
  16. Set bufhidden = "wipe"
  17. Set cindent
  18. Set cinoptions =: 0g0t0 (Sus
  19. Set Partition Height = 9
  20. Set comments = sr:/*, MB: *, EX :*/,://
  21. Set complete =., W, B, u, u, K, S, I, D, T
  22. Set completeopt = menu, preview
  23. Set dictionary = ""
  24. Set nodigraph "<=
  25. Set encoding = UTF-8
  26. Set fileformats = UNIX, DOS, Mac
  27. Set foldenable
  28. Set foldlevel = 0
  29. Set foldmethod = syntax
  30. Set formatoptions = croql
  31. Set grepprg = grep/-NH/$ *
  32. Set guifont = courier/10/pitch/10
  33. Set hidden
  34. Set history = 1024
  35. Set incsearch
  36. Set laststatus = 2
  37. Set linebreak
  38. Set magic
  39. Set matchtime = 2
  40. Set mouse =
  41. Set nobackup
  42. Set nocompatible
  43. Set noexpandtab
  44. Set noerrorbells
  45. Set noswapfile
  46. Set novisualbell
  47. Set nowritebackup
  48. Set number
  49. Set pastetoggle = <Insert>
  50. Set pumheight = 8
  51. Set ruler
  52. Set shiftwidth = 4
  53. Set sidescroll = 1
  54. Set showcmd
  55. Set showfulltag
  56. Set showmatch
  57. Set showmode
  58. Set showtabline = 2
  59. Set smartindent
  60. Set smartcase
  61. Set smarttab
  62. Set scroloff = 8
  63. Set softtabstop = 4
  64. Set statusline = % {curdir ()}/% L (% P %): % C/[ASCII: % B]
  65. Set switchbuf = usetab
  66. Set tabline = % yshell: % {curdir ()}/% F/% m % R % H % w % K
  67. Set tabstop = 4
  68. Set textwidth = 128
  69. Set thesaurus = ""
  70. Set viminfo = '10,/"100,: 20, %, n ~ /. Viminfo
  71. Set whichwrap + = <,>, H, l
  72. Set wildmenu
  73. Set wrap

  74. Let grep_skip_dirs = 'rcs CVS SCCs. SVN'
  75. Let tlist_ctags_cmd = "/usr/bin/ctags"
  76. Let tlist_file_fold_auto_close = 1
  77. Let tlist_show_menu = 1
  78. Let tlist_sort_type = "name"
  79. Let tlist_use_right_window = 1
  80. Let G: explhidefiles = '^ /.'
  81. Let G: explsplitbelow = 1
  82. Let G: explsplitleft = 1
  83. Let G: explvertical = 1
  84. Let G: explwinsize = 35
  85. Let G: minibufexplmapwindownavvim = 1
  86. Let G: minibufexplmapwindownavarrows = 1
  87. Let G: minibufexplmodseltarget = 1
  88. Let G: minibufexplsplitbelow = 1
  89. Let G: minibufexplusesingleclick = 1
  90. Let G: minibufexplvsplit = 20
  91. Let G: minibufpolicermorethanone = 2
  92. Let G: winrefreshwhenenter = 1
  93. Let G: winmanagerwindowlayout = 'fileexplorer | taglist, tagsexplorer'
  94. Let mapleader = "~ "

  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>
  106. Inoremap <c-S> <ESC>: W <CR>
  107. Inoremap <c-W> <ESC>: Wall <CR>
  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>: Make Test <CR>: clist! <CR>
  115. Inoremap <C-F5> <ESC>: Wall <CR>: Make run <CR>: clist! <CR>
  116. Inoremap <C-S-F5> <ESC>: Wall <CR>: Make mkdoc <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>: vertical diffsplit
  121. Inoremap <F10> <ESC>: wmtoggle <CR> I
  122. Inoremap <C-F11> <ESC>: Call commentline () <CR> <up> I
  123. Inoremap <M-F11> <ESC>: Call uncommentline () <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-]> <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-]>
  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>: Make run <CR>: clist! <CR>
  146. Noremap <S-F5>: Wall <CR>: Make Test <CR>: clist! <CR>
  147. Noremap <C-S-F5>: Wall <CR>: Make mkdoc <CR>: clist! <CR>
  148. Noremap <F6>: clist! <CR>
  149. Noremap <F9>: Split <CR>
  150. Noremap <C-F9>: vsplit <CR>
  151. Noremap <S-F9>: vertical diffsplit
  152. Noremap <F10>: wmtoggle <CR>
  153. Noremap <C-F11>: Call commentline () <CR>
  154. Noremap <M-F11>: Call uncommentline () <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>: Call rangecommentline () <CR>
  163. Vnoremap <M-F11>: Call rangeuncommentline () <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>
  168. Imap <unique> <s-F2> <ESC> <s-F2>
  169. Imap <unique> <F2> <ESC> <F2>

  170. Autocmd bufreadpost * If line ("'/")> 0 | if line ("'/" ") <= line (" $ ") | EXE ("norm'/" ") | else | EXE" Norm $ "| endif
  171. Autocmd bufnewfile, bufread *./(txt /)/@! Inoremap ''' <ESC>: Let leavechar = "'" <CR> I
  172. Autocmd bufnewfile, bufread *./(Vim /)/@! Inoremap "<ESC>: Let leavechar = '"' <CR> I
  173. Autocmd bufread, bufnew: Call uminibufexplorer

  174. Source $ vimruntime/ftplugin/man. Vim

A backup is mainly left.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.