Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 435 lines (397 sloc) 13.002 kb
9c88d4d @nelstrom Added VisIncr plugin.
authored
1 " Folding cheet sheet
926b0da @nelstrom Added folding cheet sheet for noobs.
authored
2 " zR open all folds
3 " zM close all folds
ff45eb9 @nelstrom Added visual star command, and TextMate/NERD comment toggle.
authored
4 " za toggle fold at cursor position
5 " zj move down to start of next fold
6 " zk move up to end of previous fold
3959bcb @nelstrom Enable autocommands in ftdetect/*.vim files.
authored
7 " Manage plugins. {{{1
8 runtime macros/matchit.vim
1d7c1e0 @nelstrom Enable the :Man command.
authored
9 runtime ftplugin/man.vim
3959bcb @nelstrom Enable autocommands in ftdetect/*.vim files.
authored
10 call pathogen#runtime_append_all_bundles()
11 call pathogen#helptags()
12 let g:GetLatestVimScripts_allowautoinstall=1
eeb8c5a @nelstrom Added fold markers to vimrc.
authored
13 " An example for a vimrc file. {{{1
84d14ea @nelstrom Added .vimrc copied from vimrc_example.vim
authored
14 "
15 " Maintainer: Bram Moolenaar <Bram@vim.org>
16 " Last change: 2008 Jul 02
17 "
18 " To use it, copy it to
19 " for Unix and OS/2: ~/.vimrc
20 " for Amiga: s:.vimrc
21 " for MS-DOS and Win32: $VIM\_vimrc
22 " for OpenVMS: sys$login:.vimrc
23
24 " When started as "evim", evim.vim will already have done these settings.
25 if v:progname =~? "evim"
26 finish
27 endif
28
29 " Use Vim settings, rather then Vi settings (much better!).
30 " This must be first, because it changes other options as a side effect.
31 set nocompatible
32
33 " allow backspacing over everything in insert mode
34 set backspace=indent,eol,start
35
36 if has("vms")
37 set nobackup " do not keep a backup file, use versions instead
38 else
39 set backup " keep a backup file
40 endif
41 set history=50 " keep 50 lines of command line history
42 set ruler " show the cursor position all the time
43 set showcmd " display incomplete commands
44 set incsearch " do incremental searching
45
46 " For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
47 " let &guioptions = substitute(&guioptions, "t", "", "g")
48
49 " Don't use Ex mode, use Q for formatting
50 map Q gq
51
52 " CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo,
53 " so that you can undo CTRL-U after inserting a line break.
54 inoremap <C-U> <C-G>u<C-U>
55
56 " In many terminal emulators the mouse works just fine, thus enable it.
57 if has('mouse')
58 set mouse=a
59 endif
60
61 " Switch syntax highlighting on, when the terminal has colors
62 " Also switch on highlighting the last used search pattern.
63 if &t_Co > 2 || has("gui_running")
64 syntax on
65 set hlsearch
66 endif
67
68 " Only do this part when compiled with support for autocommands.
69 if has("autocmd")
70
71 " Enable file type detection.
72 " Use the default filetype settings, so that mail gets 'tw' set to 72,
73 " 'cindent' is on in C files, etc.
74 " Also load indent files, to automatically do language-dependent indenting.
75 filetype plugin indent on
76
77 " Put these in an autocmd group, so that we can delete them easily.
78 augroup vimrcEx
79 au!
80
81 " For all text files set 'textwidth' to 78 characters.
82 autocmd FileType text setlocal textwidth=78
83
84 " When editing a file, always jump to the last known cursor position.
85 " Don't do it when the position is invalid or when inside an event handler
86 " (happens when dropping a file on gvim).
87 " Also don't do it when the mark is in the first line, that is the default
88 " position when opening a file.
89 autocmd BufReadPost *
90 \ if line("'\"") > 1 && line("'\"") <= line("$") |
91 \ exe "normal! g`\"" |
92 \ endif
93
94 augroup END
95
96 else
97
98 set autoindent " always set autoindenting on
99
100 endif " has("autocmd")
101
102 " Convenient command to see the difference between the current buffer and the
103 " file it was loaded from, thus the changes you made.
104 " Only define it when not defined already.
105 if !exists(":DiffOrig")
106 command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
107 \ | wincmd p | diffthis
f403de8 @nelstrom Fixed typo: (e -> endif).
authored
108 endif
eeb8c5a @nelstrom Added fold markers to vimrc.
authored
109
b4992d4 @nelstrom Added vimrc sections for preferences and mappings.
authored
110 " Preferences {{{1
4c820ae @nelstrom Switched off the irritating bell
authored
111 set visualbell t_vb=
b4992d4 @nelstrom Added vimrc sections for preferences and mappings.
authored
112 set number
113 set cursorline
114 set tabstop=4
115 set softtabstop=4
116 set shiftwidth=4
117 set expandtab
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
118 set hidden
6b7dc80 @nelstrom set nojoinspaces - at last!
authored
119 set nojoinspaces
b4992d4 @nelstrom Added vimrc sections for preferences and mappings.
authored
120 set listchars=tab:\ ,eol:¬
21465d2 @nelstrom set wildmode=longest,list
authored
121 set wildmode=longest,list
b79c482 @nelstrom Prevent <c-a>/<c-x> from treating 01 as octal.
authored
122 set nrformats=
87d722a @nelstrom Set spelling region to British English by default.
authored
123 "set spelllang=en_gb
51f7097 @nelstrom Set the dir for backup/swap files to ~/tmp
authored
124 " Put swap files in /tmp file
125 set backupdir=~/tmp
126 set directory=~/tmp
127 if has("autocmd")
0cd26c2 @nelstrom Use 2 spaces for Vimscript indentation.
authored
128 autocmd FileType html,css,scss,ruby,pml,yaml,coffee,vim setlocal ts=2 sts=2 sw=2 expandtab
980112a @nelstrom Added whitespace prefs for ruby+javascript.
authored
129 autocmd FileType javascript setlocal ts=4 sts=4 sw=4 noexpandtab
3f3f96c @nelstrom Enable linebreak for markdown files.
authored
130 autocmd FileType markdown setlocal wrap linebreak nolist
cdfbc49 @nelstrom vimrc: set filetype for .rss files to xml.
authored
131 autocmd BufNewFile,BufRead *.rss setfiletype xml
17998eb @nelstrom Set ruby filetype for Rakefile,Capfile,Gemfile,Termfile,config.ru
authored
132 autocmd BufNewFile,BufRead Rakefile,Capfile,Gemfile,Termfile,config.ru setfiletype ruby
f749e77 @nelstrom Auto-correct 'initialise' to 'initialize' in ruby files.
authored
133 autocmd FileType ruby :Abolish -buffer initialise initialize
362a7ef @nelstrom Use solarized as default colorscheme.
authored
134 autocmd FileType vo_base :colorscheme solarized
51f7097 @nelstrom Set the dir for backup/swap files to ~/tmp
authored
135 endif
136
8e17b15 @nelstrom Set mapleader and make .vimrc easier to edit.
authored
137 " Toggles & Switches (Leader commands) {{{1
138 let mapleader = ","
b6171df @nelstrom Added `,s` map to toggle spellchecker.
authored
139 nmap <silent> <leader>l :set list!<CR>
140 nmap <silent> <leader>w :set wrap!<CR>
4fdbf04 @nelstrom Make spelling toggle apply only to current buffer.
authored
141 nmap <silent> <buffer> <leader>s :set spell!<CR>
8e17b15 @nelstrom Set mapleader and make .vimrc easier to edit.
authored
142 nmap <silent> <leader>n :silent :nohlsearch<CR>
614de0c @nelstrom Install indent-guides plugin.
authored
143 nmap <silent> <leader>c :IndentGuidesToggle<CR>
a28930c @nelstrom :Wrap command runs: set wrap linebreak nolist
authored
144 command! -nargs=* Wrap set wrap linebreak nolist
51867d9 @nelstrom Add :Maxsize command to use full window.
authored
145 command! -nargs=* Maxsize set columns=1000 lines=1000
9c02cac @nelstrom Customizations for ctags/taglist.
authored
146 " CTags {{{1
147 map <Leader>rt :!ctags --extra=+f -R *<CR><CR>
148 let Tlist_Ctags_Cmd = "/usr/local/bin/ctags"
149 let tlist_markdown_settings='markdown;h:Headings'
0bffbb0 @nelstrom Make taglist only show symbols for current file.
authored
150 let Tlist_Show_One_File=1
6a45187 @nelstrom Update PML plugin.
authored
151 nmap <Leader>/ :TlistToggle<CR>
8e17b15 @nelstrom Set mapleader and make .vimrc easier to edit.
authored
152
b4992d4 @nelstrom Added vimrc sections for preferences and mappings.
authored
153 " Mappings {{{1
51f7097 @nelstrom Set the dir for backup/swap files to ~/tmp
authored
154 " Speed up buffer switching {{{2
b4992d4 @nelstrom Added vimrc sections for preferences and mappings.
authored
155 map <C-k> <C-W>k
156 map <C-j> <C-W>j
157 map <C-h> <C-W>h
158 map <C-l> <C-W>l
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
159 " Speed up tab switching {{{2
160 map <D-S-]> gt
161 map <D-S-[> gT
162 map <D-1> 1gt
163 map <D-2> 2gt
164 map <D-3> 3gt
165 map <D-4> 4gt
166 map <D-5> 5gt
167 map <D-6> 6gt
168 map <D-7> 7gt
169 map <D-8> 8gt
170 map <D-9> 9gt
171 map <D-0> :tablast<CR>
00fe231 @nelstrom Added mappings for easy j/k/$/0/^ on wrapped lines.
authored
172 " Shortcuts to make it easier to explore wrapped lines {{{2
173 " These come in handy when the following settings are enabled:
174 " :set linebreak wrap nolist
175 vmap <D-j> gj
176 vmap <D-k> gk
177 vmap <D-4> g$
178 vmap <D-6> g^
179 vmap <D-0> g^
180 nmap <D-j> gj
181 nmap <D-k> gk
182 nmap <D-4> g$
183 nmap <D-6> g^
184 nmap <D-0> g^
c3d9531 @nelstrom Added shortcuts to :e file in same dir as current file.
authored
185 " Shortcuts for opening file in same directory as current file {{{2
706ba29 @nelstrom Add `%%` mapping in commandline mode to expand working directory.
authored
186 cnoremap %% <C-R>=expand('%:h').'/'<cr>
187 map <leader>ew :e %%
188 map <leader>es :sp %%
189 map <leader>ev :vsp %%
190 map <leader>et :tabe %%
084246a @nelstrom ,er to expand current filename without extension.
authored
191 map <leader>er :e <C-R>=expand("%:r")."."<CR>
9c88d4d @nelstrom Added VisIncr plugin.
authored
192 " Shortcuts for visual selections {{{2
193 nmap gV `[v`]
8dabf73 @nelstrom Fix the `&` command in normal and visual modes.
authored
194 " Substitute command repetition {{{2
195 nnoremap & :~&<Enter>
196 vnoremap & :~&<Enter>
70e1881 @nelstrom Add mappings to trigger :Tabularize for common tokens.
authored
197 " Alignment commands {{{1
198 if exists(":Tabularize")
199 nmap <Leader>a= :Tabularize /=<CR>
200 vmap <Leader>a= :Tabularize /=<CR>
201 nmap <Leader>a: :Tabularize /:\zs<CR>
202 vmap <Leader>a: :Tabularize /:\zs<CR>
203 endif
92009f6 @nelstrom Added :Refactor command, for dictionary-based substitutions.
authored
204 " TextObject tweaks {{{1
b829495 @nelstrom Switch out `Va/it` for `va/iT` mappings.
authored
205 nnoremap viT vitVkoj
206 nnoremap vaT vatV
e84cb01 @nelstrom Add insert mode ctrl-e jump to end of line.
authored
207 " Insert mode mappings {{{1
92009f6 @nelstrom Added :Refactor command, for dictionary-based substitutions.
authored
208 " emacs style jump to end of line
e84cb01 @nelstrom Add insert mode ctrl-e jump to end of line.
authored
209 imap <C-e> <C-o>A
be24c35 @nelstrom Create cmd-enter mapping to 'o' in insert mode.
authored
210 imap <C-a> <C-o>I
92009f6 @nelstrom Added :Refactor command, for dictionary-based substitutions.
authored
211 " Open line above (ctrl-shift-o much easier than ctrl-o shift-O)
be24c35 @nelstrom Create cmd-enter mapping to 'o' in insert mode.
authored
212 imap <C-Enter> <C-o>o
213 imap <C-S-Enter> <C-o>O
8e17b15 @nelstrom Set mapleader and make .vimrc easier to edit.
authored
214 " Easily modify vimrc {{{1
215 nmap <leader>v :e $MYVIMRC<CR>
216 " http://stackoverflow.com/questions/2400264/is-it-possible-to-apply-vim-configurations-without-restarting/2400289#2400289
217 if has("autocmd")
218 augroup myvimrchooks
219 au!
cbaea1f @nelstrom Reload vimrc and gvimrc whenever either one is saved.
authored
220 au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
8e17b15 @nelstrom Set mapleader and make .vimrc easier to edit.
authored
221 augroup END
222 endif
223
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
224 " Custom commands and functions {{{1
362a7ef @nelstrom Use solarized as default colorscheme.
authored
225 " Create a :Quickfixdo command, to match :argdo/bufdo/windo {{{2
e924edf @nelstrom Add quickfix to arglist functions/commands.
authored
226 " Define a command to make it easier to use
acc1e50 @nelstrom Update Qargs command so other commands may follow.
authored
227 command! -nargs=0 -bar Qargs execute 'args ' . QuickfixFilenames()
e924edf @nelstrom Add quickfix to arglist functions/commands.
authored
228 function! QuickfixFilenames()
229 " Building a hash ensures we get each buffer only once
230 let buffer_numbers = {}
231 for quickfix_item in getqflist()
232 let buffer_numbers[quickfix_item['bufnr']] = bufname(quickfix_item['bufnr'])
233 endfor
234 return join(values(buffer_numbers))
235 endfunction
236
237 command! -nargs=+ QFDo call QFDo(<q-args>)
238 " Function that does the work
239 function! QFDo(command)
240 " Create a dictionary so that we can get the list of buffers rather than
241 " the list of lines in buffers (easy way to get unique entries)
242 let buffer_numbers = {}
243 " For each entry, use the buffer number as a dictionary key (won't get
244 " repeats)
245 for fixlist_entry in getqflist()
246 let buffer_numbers[fixlist_entry['bufnr']] = 1
247 endfor
248 " Make it into a list as it seems cleaner
249 let buffer_number_list = keys(buffer_numbers)
250
251 " For each buffer
252 for num in buffer_number_list
253 " Select the buffer
254 exe 'buffer' num
255 " Run the command that's passed as an argument
256 exe a:command
257 " Save if necessary
258 update
259 endfor
260 endfunction
261 " http://stackoverflow.com/questions/4792561/how-to-do-search-replace-with-ack-in-vim
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
262 " Show syntax highlighting groups for word under cursor {{{2
263 " Tip: http://stackoverflow.com/questions/1467438/find-out-to-which-highlight-group-a-particular-keyword-symbol-belongs-in-vim
c65b01b @nelstrom Change syntax group hint mapping to ,m [temp]
authored
264 nmap <Leader>m :call <SID>SynStack()<CR>
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
265 function! <SID>SynStack()
266 if !exists("*synstack")
267 return
268 endif
269 echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
270 endfunc
abe4af4 @nelstrom Added command `:Only` which closes hidden buffers.
authored
271 " Wipe all buffers which are not active (i.e. not visible in a window/tab) {{{2
272 " http://stackoverflow.com/questions/2974192/how-can-i-pare-down-vims-buffer-list-to-only-include-active-buffers
273 " http://stackoverflow.com/questions/1534835/how-do-i-close-all-buffers-that-arent-shown-in-a-window-in-vim
274 command! -nargs=* Only call CloseHiddenBuffers()
275 function! CloseHiddenBuffers()
276 " figure out which buffers are visible in any tab
277 let visible = {}
278 for t in range(1, tabpagenr('$'))
279 for b in tabpagebuflist(t)
280 let visible[b] = 1
281 endfor
282 endfor
283 " close any buffer that are loaded and not visible
284 let l:tally = 0
285 for b in range(1, bufnr('$'))
286 if bufloaded(b) && !has_key(visible, b)
287 let l:tally += 1
288 exe 'bw ' . b
289 endif
290 endfor
291 echon "Deleted " . l:tally . " buffers"
292 endfun
293
a07bd2c @nelstrom Make fugitive generated buffers auto-destroy on close.
authored
294 command! -nargs=* Gprune call CloseFugitiveBuffers()
295 function! CloseFugitiveBuffers()
296 let visible = {}
297 for t in range(1, tabpagenr('$'))
298 for b in tabpagebuflist(t)
299 let visible[b] = 1
300 endfor
301 endfor
302 let l:tally = 0
303 for b in range(1, bufnr('$'))
304 if bufloaded(b) && !has_key(visible, b)
305 let l:tally += 1
306 exe 'bw ' . b
307 endif
308 endfor
309 echon "Deleted " . l:tally . " buffers"
310 endfunction
311
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
312 " Set tabstop, softtabstop and shiftwidth to the same value {{{2
ff45eb9 @nelstrom Added visual star command, and TextMate/NERD comment toggle.
authored
313 " From http://vimcasts.org/episodes/tabs-and-spaces/
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
314 command! -nargs=* Stab call Stab()
315 function! Stab()
316 let l:tabstop = 1 * input('set tabstop = softtabstop = shiftwidth = ')
317 if l:tabstop > 0
318 let &l:sts = l:tabstop
319 let &l:ts = l:tabstop
320 let &l:sw = l:tabstop
321 endif
322 call SummarizeTabs()
323 endfunction
324
325 function! SummarizeTabs()
326 try
327 echohl ModeMsg
328 echon 'tabstop='.&l:ts
329 echon ' shiftwidth='.&l:sw
330 echon ' softtabstop='.&l:sts
331 if &l:et
332 echon ' expandtab'
333 else
334 echon ' noexpandtab'
335 end
336 finally
337 echohl None
338 endtry
339 endfunction
340
ff45eb9 @nelstrom Added visual star command, and TextMate/NERD comment toggle.
authored
341 " Strip trailing whitespaces {{{2
ac46091 @nelstrom Refactored StripTrailingWhitespaces() to Preserve().
authored
342 function! Preserve(command)
343 " Preparation: save last search, and cursor position.
344 let _s=@/
345 let l = line(".")
346 let c = col(".")
347 " Do the business:
348 execute a:command
349 " Clean up: restore previous search history, and cursor position
350 let @/=_s
351 call cursor(l, c)
ff45eb9 @nelstrom Added visual star command, and TextMate/NERD comment toggle.
authored
352 endfunction
ac46091 @nelstrom Refactored StripTrailingWhitespaces() to Preserve().
authored
353 nmap _$ :call Preserve("%s/\\s\\+$//e")<CR>
354 nmap _= :call Preserve("normal gg=G")<CR>
92009f6 @nelstrom Added :Refactor command, for dictionary-based substitutions.
authored
355 " Swap words in a single substitution command {{{2
356 " http://stackoverflow.com/questions/765894/can-i-substitute-multiple-items-in-a-single-regular-expression-in-vim-or-perl/766093#766093
357 function! Refactor(dict) range
358 execute a:firstline . ',' . a:lastline . 's/\C\<\%(' . join(keys(a:dict),'\|'). '\)\>/\='.string(a:dict).'[submatch(0)]/ge'
359 endfunction
360 command! -range=% -nargs=1 Refactor :<line1>,<line2>call Refactor(<args>)
361
362 " Running :Refactor {'quick':'slow', 'lazy':'energetic'} will change the following text:
363 " The quick brown fox ran quickly next to the lazy brook.
364 "into:
365 " The slow brown fox ran slowly next to the energetic brook.
366
367 " TODO: create a :Swap command, which turns:
368 " :Swap(portrait,landscape)
369 " into
370 " :Refactor {'portrait':'landscape', 'landscape':'portrait'}
ff45eb9 @nelstrom Added visual star command, and TextMate/NERD comment toggle.
authored
371
372 " Status line {{{1
373 " Good article on setting a statusline:
374 " http://got-ravings.blogspot.com/2008/08/vim-pr0n-making-statuslines-that-own.html
70b5a18 @nelstrom Make status line always visible.
authored
375 " Always show the status line (even if no split windows)
376 set laststatus=2
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
377 " Mappings for a recovering TextMate user {{{1
378 " Indentation {{{2
379 nmap <D-[> <<
380 nmap <D-]> >>
381 vmap <D-[> <gv
382 vmap <D-]> >gv
ff45eb9 @nelstrom Added visual star command, and TextMate/NERD comment toggle.
authored
383
384 " Commenting {{{2
385 " requires NERDCommenter plugin
386 vmap <D-/> ,c<space>gv
387 map <D-/> ,c<space>
388
529cd6f @nelstrom Add then comment out a line-duplication mapping.
authored
389 " Duplicate selection {{{2
390 "vmap <S-C-D> :copy'> <CR>V`[o
391 "nmap <S-C-D> :copy .<CR>
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
392 " Move selection {{{2
9c88d4d @nelstrom Added VisIncr plugin.
authored
393 " Move current line down/up
394 map <C-Down> ]e
395 map <C-Up> [e
396 " Move visually selected lines down/up
397 vmap <C-Down> ]egv
398 vmap <C-Up> [egv
926b0da @nelstrom Added folding cheet sheet for noobs.
authored
399 " Move visual selection back/forwards
9c88d4d @nelstrom Added VisIncr plugin.
authored
400 set ww+=<,>
401 vmap <C-Left> x<Left>P`[v`]
402 vmap <C-Right> x<Right>P`[v`]
1b604b9 @nelstrom Patched Gundo.vim
authored
403 " Configure plugins {{{1
404 " Gundo.vim {{{2
405 map <Leader>u :GundoToggle<CR>
b75ddd5 @nelstrom Notes on customizing textobj-entire.
authored
406
407 " TextObject customizations {{{2
0bc0b1a @nelstrom Map textobj-entire to `ia` and `aa`.
authored
408 " Entire text object {{{3
409 " Map text-object for entire buffer to `ia` and `aa`.
410 let g:textobj_entire_no_default_key_mappings = 1
411 xmap aa <Plug>(textobj-entire-a)
412 omap aa <Plug>(textobj-entire-a)
413 xmap ia <Plug>(textobj-entire-i)
414 omap ia <Plug>(textobj-entire-i)
b75ddd5 @nelstrom Notes on customizing textobj-entire.
authored
415 " }}}
0926a83 @nelstrom Prevent Space.vim mappings from interfering with snipmate.
authored
416 " Space.vim {{{2
417 let g:space_disable_select_mode=1
6b03f6a @nelstrom Disable space.vim remappings for search.
authored
418 let g:space_no_search = 1
b75ddd5 @nelstrom Notes on customizing textobj-entire.
authored
419
362a7ef @nelstrom Use solarized as default colorscheme.
authored
420 " Solarized {{{2
f4a40b2 @nelstrom Hide the GUI menu for solarized.
authored
421 let g:solarized_menu=0
362a7ef @nelstrom Use solarized as default colorscheme.
authored
422 set background=light
423 colorscheme solarized
458a904 @nelstrom Use updated solarized bg toggle (F5 key).
authored
424 call togglebg#map("<F5>")
5cc7da2 @nelstrom Upgrade to latest EasyMotion plugin, and use ',,' for leader.
authored
425 " EasyMotion {{{2
426 let g:EasyMotion_leader_key = ',,'
362a7ef @nelstrom Use solarized as default colorscheme.
authored
427
b75ce01 @nelstrom Prevent menus in mVim for Vimwiki and NERDcommenter.
authored
428 " Vim wiki {{{2
429 let g:vimwiki_menu=''
430 " NERDcommenter {{{2
431 let g:NERDMenuMode=0
eeb8c5a @nelstrom Added fold markers to vimrc.
authored
432 " Modelines: {{{1
8e17b15 @nelstrom Set mapleader and make .vimrc easier to edit.
authored
433 " vim: nowrap fdm=marker
926b0da @nelstrom Added folding cheet sheet for noobs.
authored
434 " }}}
Something went wrong with that request. Please try again.