Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 453 lines (412 sloc) 13.684 kb
4603129 @nelstrom Add fugitive autocommands and statusline.
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
08e47cb @nelstrom For files in ~/.vim/macros, set ft=viminfo
authored
135 autocmd BufNewFile,BufRead ~/dotfiles/vim/macros/*,~/.vim/macros/* setfiletype viminfo
51f7097 @nelstrom Set the dir for backup/swap files to ~/tmp
authored
136 endif
137
8e17b15 @nelstrom Set mapleader and make .vimrc easier to edit.
authored
138 " Toggles & Switches (Leader commands) {{{1
139 let mapleader = ","
b6171df @nelstrom Added `,s` map to toggle spellchecker.
authored
140 nmap <silent> <leader>l :set list!<CR>
141 nmap <silent> <leader>w :set wrap!<CR>
4fdbf04 @nelstrom Make spelling toggle apply only to current buffer.
authored
142 nmap <silent> <buffer> <leader>s :set spell!<CR>
8e17b15 @nelstrom Set mapleader and make .vimrc easier to edit.
authored
143 nmap <silent> <leader>n :silent :nohlsearch<CR>
614de0c @nelstrom Install indent-guides plugin.
authored
144 nmap <silent> <leader>c :IndentGuidesToggle<CR>
a28930c @nelstrom :Wrap command runs: set wrap linebreak nolist
authored
145 command! -nargs=* Wrap set wrap linebreak nolist
51867d9 @nelstrom Add :Maxsize command to use full window.
authored
146 command! -nargs=* Maxsize set columns=1000 lines=1000
9c02cac @nelstrom Customizations for ctags/taglist.
authored
147 " CTags {{{1
148 map <Leader>rt :!ctags --extra=+f -R *<CR><CR>
149 let Tlist_Ctags_Cmd = "/usr/local/bin/ctags"
150 let tlist_markdown_settings='markdown;h:Headings'
0bffbb0 @nelstrom Make taglist only show symbols for current file.
authored
151 let Tlist_Show_One_File=1
6a45187 @nelstrom Update PML plugin.
authored
152 nmap <Leader>/ :TlistToggle<CR>
8e17b15 @nelstrom Set mapleader and make .vimrc easier to edit.
authored
153
b4992d4 @nelstrom Added vimrc sections for preferences and mappings.
authored
154 " Mappings {{{1
51f7097 @nelstrom Set the dir for backup/swap files to ~/tmp
authored
155 " Speed up buffer switching {{{2
b4992d4 @nelstrom Added vimrc sections for preferences and mappings.
authored
156 map <C-k> <C-W>k
157 map <C-j> <C-W>j
158 map <C-h> <C-W>h
159 map <C-l> <C-W>l
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
160 " Speed up tab switching {{{2
161 map <D-S-]> gt
162 map <D-S-[> gT
163 map <D-1> 1gt
164 map <D-2> 2gt
165 map <D-3> 3gt
166 map <D-4> 4gt
167 map <D-5> 5gt
168 map <D-6> 6gt
169 map <D-7> 7gt
170 map <D-8> 8gt
171 map <D-9> 9gt
172 map <D-0> :tablast<CR>
00fe231 @nelstrom Added mappings for easy j/k/$/0/^ on wrapped lines.
authored
173 " Shortcuts to make it easier to explore wrapped lines {{{2
174 " These come in handy when the following settings are enabled:
175 " :set linebreak wrap nolist
176 vmap <D-j> gj
177 vmap <D-k> gk
178 vmap <D-4> g$
179 vmap <D-6> g^
180 vmap <D-0> g^
181 nmap <D-j> gj
182 nmap <D-k> gk
183 nmap <D-4> g$
184 nmap <D-6> g^
185 nmap <D-0> g^
c3d9531 @nelstrom Added shortcuts to :e file in same dir as current file.
authored
186 " Shortcuts for opening file in same directory as current file {{{2
706ba29 @nelstrom Add `%%` mapping in commandline mode to expand working directory.
authored
187 cnoremap %% <C-R>=expand('%:h').'/'<cr>
188 map <leader>ew :e %%
189 map <leader>es :sp %%
190 map <leader>ev :vsp %%
191 map <leader>et :tabe %%
084246a @nelstrom ,er to expand current filename without extension.
authored
192 map <leader>er :e <C-R>=expand("%:r")."."<CR>
9c88d4d @nelstrom Added VisIncr plugin.
authored
193 " Shortcuts for visual selections {{{2
194 nmap gV `[v`]
a46962f @nelstrom Refine the `gV` mapping to reselect last edit/paste
authored
195 " http://stackoverflow.com/questions/6228079/remove-newlines-from-a-register-in-vim/6235707#6235707
196 nnoremap <expr> gV "`[".getregtype(v:register)[0]."`]"
8dabf73 @nelstrom Fix the `&` command in normal and visual modes.
authored
197 " Substitute command repetition {{{2
198 nnoremap & :~&<Enter>
199 vnoremap & :~&<Enter>
70e1881 @nelstrom Add mappings to trigger :Tabularize for common tokens.
authored
200 " Alignment commands {{{1
201 if exists(":Tabularize")
202 nmap <Leader>a= :Tabularize /=<CR>
203 vmap <Leader>a= :Tabularize /=<CR>
204 nmap <Leader>a: :Tabularize /:\zs<CR>
205 vmap <Leader>a: :Tabularize /:\zs<CR>
206 endif
92009f6 @nelstrom Added :Refactor command, for dictionary-based substitutions.
authored
207 " TextObject tweaks {{{1
b829495 @nelstrom Switch out `Va/it` for `va/iT` mappings.
authored
208 nnoremap viT vitVkoj
209 nnoremap vaT vatV
e84cb01 @nelstrom Add insert mode ctrl-e jump to end of line.
authored
210 " Insert mode mappings {{{1
92009f6 @nelstrom Added :Refactor command, for dictionary-based substitutions.
authored
211 " emacs style jump to end of line
e84cb01 @nelstrom Add insert mode ctrl-e jump to end of line.
authored
212 imap <C-e> <C-o>A
be24c35 @nelstrom Create cmd-enter mapping to 'o' in insert mode.
authored
213 imap <C-a> <C-o>I
92009f6 @nelstrom Added :Refactor command, for dictionary-based substitutions.
authored
214 " 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
215 imap <C-Enter> <C-o>o
216 imap <C-S-Enter> <C-o>O
8e17b15 @nelstrom Set mapleader and make .vimrc easier to edit.
authored
217 " Easily modify vimrc {{{1
218 nmap <leader>v :e $MYVIMRC<CR>
219 " http://stackoverflow.com/questions/2400264/is-it-possible-to-apply-vim-configurations-without-restarting/2400289#2400289
220 if has("autocmd")
221 augroup myvimrchooks
222 au!
cbaea1f @nelstrom Reload vimrc and gvimrc whenever either one is saved.
authored
223 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
224 augroup END
225 endif
226
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
227 " Custom commands and functions {{{1
362a7ef @nelstrom Use solarized as default colorscheme.
authored
228 " Create a :Quickfixdo command, to match :argdo/bufdo/windo {{{2
e924edf @nelstrom Add quickfix to arglist functions/commands.
authored
229 " Define a command to make it easier to use
acc1e50 @nelstrom Update Qargs command so other commands may follow.
authored
230 command! -nargs=0 -bar Qargs execute 'args ' . QuickfixFilenames()
e924edf @nelstrom Add quickfix to arglist functions/commands.
authored
231 function! QuickfixFilenames()
232 " Building a hash ensures we get each buffer only once
233 let buffer_numbers = {}
234 for quickfix_item in getqflist()
235 let buffer_numbers[quickfix_item['bufnr']] = bufname(quickfix_item['bufnr'])
236 endfor
237 return join(values(buffer_numbers))
238 endfunction
239
240 command! -nargs=+ QFDo call QFDo(<q-args>)
241 " Function that does the work
242 function! QFDo(command)
243 " Create a dictionary so that we can get the list of buffers rather than
244 " the list of lines in buffers (easy way to get unique entries)
245 let buffer_numbers = {}
246 " For each entry, use the buffer number as a dictionary key (won't get
247 " repeats)
248 for fixlist_entry in getqflist()
249 let buffer_numbers[fixlist_entry['bufnr']] = 1
250 endfor
251 " Make it into a list as it seems cleaner
252 let buffer_number_list = keys(buffer_numbers)
253
254 " For each buffer
255 for num in buffer_number_list
256 " Select the buffer
257 exe 'buffer' num
258 " Run the command that's passed as an argument
259 exe a:command
260 " Save if necessary
261 update
262 endfor
263 endfunction
264 " 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
265 " Show syntax highlighting groups for word under cursor {{{2
266 " 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
267 nmap <Leader>m :call <SID>SynStack()<CR>
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
268 function! <SID>SynStack()
269 if !exists("*synstack")
270 return
271 endif
272 echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
273 endfunc
abe4af4 @nelstrom Added command `:Only` which closes hidden buffers.
authored
274 " Wipe all buffers which are not active (i.e. not visible in a window/tab) {{{2
275 " http://stackoverflow.com/questions/2974192/how-can-i-pare-down-vims-buffer-list-to-only-include-active-buffers
276 " http://stackoverflow.com/questions/1534835/how-do-i-close-all-buffers-that-arent-shown-in-a-window-in-vim
277 command! -nargs=* Only call CloseHiddenBuffers()
278 function! CloseHiddenBuffers()
279 " figure out which buffers are visible in any tab
280 let visible = {}
281 for t in range(1, tabpagenr('$'))
282 for b in tabpagebuflist(t)
283 let visible[b] = 1
284 endfor
285 endfor
286 " close any buffer that are loaded and not visible
287 let l:tally = 0
288 for b in range(1, bufnr('$'))
289 if bufloaded(b) && !has_key(visible, b)
290 let l:tally += 1
291 exe 'bw ' . b
292 endif
293 endfor
294 echon "Deleted " . l:tally . " buffers"
295 endfun
296
a07bd2c @nelstrom Make fugitive generated buffers auto-destroy on close.
authored
297 command! -nargs=* Gprune call CloseFugitiveBuffers()
298 function! CloseFugitiveBuffers()
299 let visible = {}
300 for t in range(1, tabpagenr('$'))
301 for b in tabpagebuflist(t)
302 let visible[b] = 1
303 endfor
304 endfor
305 let l:tally = 0
306 for b in range(1, bufnr('$'))
307 if bufloaded(b) && !has_key(visible, b)
308 let l:tally += 1
309 exe 'bw ' . b
310 endif
311 endfor
312 echon "Deleted " . l:tally . " buffers"
313 endfunction
314
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
315 " Set tabstop, softtabstop and shiftwidth to the same value {{{2
ff45eb9 @nelstrom Added visual star command, and TextMate/NERD comment toggle.
authored
316 " From http://vimcasts.org/episodes/tabs-and-spaces/
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
317 command! -nargs=* Stab call Stab()
318 function! Stab()
319 let l:tabstop = 1 * input('set tabstop = softtabstop = shiftwidth = ')
320 if l:tabstop > 0
321 let &l:sts = l:tabstop
322 let &l:ts = l:tabstop
323 let &l:sw = l:tabstop
324 endif
325 call SummarizeTabs()
326 endfunction
4603129 @nelstrom Add fugitive autocommands and statusline.
authored
327
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
328 function! SummarizeTabs()
329 try
330 echohl ModeMsg
331 echon 'tabstop='.&l:ts
332 echon ' shiftwidth='.&l:sw
333 echon ' softtabstop='.&l:sts
334 if &l:et
335 echon ' expandtab'
336 else
337 echon ' noexpandtab'
338 end
339 finally
340 echohl None
341 endtry
342 endfunction
343
ff45eb9 @nelstrom Added visual star command, and TextMate/NERD comment toggle.
authored
344 " Strip trailing whitespaces {{{2
ac46091 @nelstrom Refactored StripTrailingWhitespaces() to Preserve().
authored
345 function! Preserve(command)
346 " Preparation: save last search, and cursor position.
347 let _s=@/
348 let l = line(".")
349 let c = col(".")
350 " Do the business:
351 execute a:command
352 " Clean up: restore previous search history, and cursor position
353 let @/=_s
354 call cursor(l, c)
ff45eb9 @nelstrom Added visual star command, and TextMate/NERD comment toggle.
authored
355 endfunction
ac46091 @nelstrom Refactored StripTrailingWhitespaces() to Preserve().
authored
356 nmap _$ :call Preserve("%s/\\s\\+$//e")<CR>
357 nmap _= :call Preserve("normal gg=G")<CR>
92009f6 @nelstrom Added :Refactor command, for dictionary-based substitutions.
authored
358 " Swap words in a single substitution command {{{2
359 " http://stackoverflow.com/questions/765894/can-i-substitute-multiple-items-in-a-single-regular-expression-in-vim-or-perl/766093#766093
360 function! Refactor(dict) range
361 execute a:firstline . ',' . a:lastline . 's/\C\<\%(' . join(keys(a:dict),'\|'). '\)\>/\='.string(a:dict).'[submatch(0)]/ge'
362 endfunction
363 command! -range=% -nargs=1 Refactor :<line1>,<line2>call Refactor(<args>)
364
365 " Running :Refactor {'quick':'slow', 'lazy':'energetic'} will change the following text:
366 " The quick brown fox ran quickly next to the lazy brook.
367 "into:
368 " The slow brown fox ran slowly next to the energetic brook.
369
370 " TODO: create a :Swap command, which turns:
371 " :Swap(portrait,landscape)
372 " into
373 " :Refactor {'portrait':'landscape', 'landscape':'portrait'}
ff45eb9 @nelstrom Added visual star command, and TextMate/NERD comment toggle.
authored
374
375 " Status line {{{1
376 " Good article on setting a statusline:
377 " http://got-ravings.blogspot.com/2008/08/vim-pr0n-making-statuslines-that-own.html
70b5a18 @nelstrom Make status line always visible.
authored
378 " Always show the status line (even if no split windows)
379 set laststatus=2
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
380 " Mappings for a recovering TextMate user {{{1
381 " Indentation {{{2
382 nmap <D-[> <<
383 nmap <D-]> >>
384 vmap <D-[> <gv
385 vmap <D-]> >gv
ff45eb9 @nelstrom Added visual star command, and TextMate/NERD comment toggle.
authored
386
387 " Commenting {{{2
388 " requires NERDCommenter plugin
389 vmap <D-/> ,c<space>gv
390 map <D-/> ,c<space>
391
529cd6f @nelstrom Add then comment out a line-duplication mapping.
authored
392 " Duplicate selection {{{2
393 "vmap <S-C-D> :copy'> <CR>V`[o
394 "nmap <S-C-D> :copy .<CR>
79be99f @nelstrom Added section for custom functions, and TextMate maps.
authored
395 " Move selection {{{2
9c88d4d @nelstrom Added VisIncr plugin.
authored
396 " Move current line down/up
397 map <C-Down> ]e
398 map <C-Up> [e
399 " Move visually selected lines down/up
400 vmap <C-Down> ]egv
401 vmap <C-Up> [egv
926b0da @nelstrom Added folding cheet sheet for noobs.
authored
402 " Move visual selection back/forwards
9c88d4d @nelstrom Added VisIncr plugin.
authored
403 set ww+=<,>
404 vmap <C-Left> x<Left>P`[v`]
405 vmap <C-Right> x<Right>P`[v`]
1b604b9 @nelstrom Patched Gundo.vim
authored
406 " Configure plugins {{{1
4603129 @nelstrom Add fugitive autocommands and statusline.
authored
407 " Fugitive.vim {{{2
408 if has("autocmd")
409
410 " Auto-close fugitive buffers
411 autocmd BufReadPost fugitive://* set bufhidden=delete
412
413 " Navigate up one level from fugitive trees and blobs
414 autocmd User fugitive
415 \ if fugitive#buffer().type() =~# '^\%(tree\|blob\)$' |
416 \ nnoremap <buffer> .. :edit %:h<CR> |
417 \ endif
418
419 endif
420 " Add git branch to statusline.
421 set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P
1b604b9 @nelstrom Patched Gundo.vim
authored
422 " Gundo.vim {{{2
423 map <Leader>u :GundoToggle<CR>
b75ddd5 @nelstrom Notes on customizing textobj-entire.
authored
424
425 " TextObject customizations {{{2
0bc0b1a @nelstrom Map textobj-entire to `ia` and `aa`.
authored
426 " Entire text object {{{3
427 " Map text-object for entire buffer to `ia` and `aa`.
428 let g:textobj_entire_no_default_key_mappings = 1
429 xmap aa <Plug>(textobj-entire-a)
430 omap aa <Plug>(textobj-entire-a)
431 xmap ia <Plug>(textobj-entire-i)
432 omap ia <Plug>(textobj-entire-i)
b75ddd5 @nelstrom Notes on customizing textobj-entire.
authored
433 " }}}
0926a83 @nelstrom Prevent Space.vim mappings from interfering with snipmate.
authored
434 " Space.vim {{{2
435 let g:space_disable_select_mode=1
6b03f6a @nelstrom Disable space.vim remappings for search.
authored
436 let g:space_no_search = 1
b75ddd5 @nelstrom Notes on customizing textobj-entire.
authored
437
362a7ef @nelstrom Use solarized as default colorscheme.
authored
438 " Solarized {{{2
f4a40b2 @nelstrom Hide the GUI menu for solarized.
authored
439 let g:solarized_menu=0
362a7ef @nelstrom Use solarized as default colorscheme.
authored
440 set background=light
441 colorscheme solarized
458a904 @nelstrom Use updated solarized bg toggle (F5 key).
authored
442 call togglebg#map("<F5>")
5cc7da2 @nelstrom Upgrade to latest EasyMotion plugin, and use ',,' for leader.
authored
443 " EasyMotion {{{2
444 let g:EasyMotion_leader_key = ',,'
362a7ef @nelstrom Use solarized as default colorscheme.
authored
445
b75ce01 @nelstrom Prevent menus in mVim for Vimwiki and NERDcommenter.
authored
446 " Vim wiki {{{2
447 let g:vimwiki_menu=''
448 " NERDcommenter {{{2
449 let g:NERDMenuMode=0
eeb8c5a @nelstrom Added fold markers to vimrc.
authored
450 " Modelines: {{{1
8e17b15 @nelstrom Set mapleader and make .vimrc easier to edit.
authored
451 " vim: nowrap fdm=marker
926b0da @nelstrom Added folding cheet sheet for noobs.
authored
452 " }}}
Something went wrong with that request. Please try again.