Permalink
Browse files

Move plugin configs into plugin/

  • Loading branch information...
1 parent f375b1c commit 457d57b556db4bd9018277d4fdc04ac1c1ba792c @nelstrom committed Jan 21, 2012
Showing with 36 additions and 33 deletions.
  1. +34 −0 vim/plugin/plugin-configuration.vim
  2. +2 −33 vimrc
@@ -0,0 +1,34 @@
+" Fugitive.vim {{{1
+if has("autocmd")
+
+ " Auto-close fugitive buffers
+ autocmd BufReadPost fugitive://* set bufhidden=delete
+
+ " Navigate up one level from fugitive trees and blobs
+ autocmd User fugitive
+ \ if fugitive#buffer().type() =~# '^\%(tree\|blob\)$' |
+ \ nnoremap <buffer> .. :edit %:h<CR> |
+ \ endif
+
+endif
+
+" Add git branch to statusline.
+set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P
+
+" Gundo.vim {{{1
+map <Leader>u :GundoToggle<CR>
+
+" Space.vim {{{1
+let g:space_disable_select_mode=1
+let g:space_no_search = 1
+
+" Solarized {{{1
+let g:solarized_menu=0
+set background=light
+colorscheme solarized
+call togglebg#map("<F5>")
+
+" Vim wiki {{{1
+let g:vimwiki_menu=''
+
+" vim: nowrap fdm=marker
View
35 vimrc
@@ -4,6 +4,8 @@
" za toggle fold at cursor position
" zj move down to start of next fold
" zk move up to end of previous fold
+" vim: nowrap fdm=marker
+
" Manage plugins. {{{1
runtime macros/matchit.vim
runtime ftplugin/man.vim
@@ -342,36 +344,3 @@ map <D-/> \\\
set ww+=<,>
vmap <C-Left> x<Left>P`[v`]
vmap <C-Right> x<Right>P`[v`]
-" Configure plugins {{{1
-" Fugitive.vim {{{2
-if has("autocmd")
-
- " Auto-close fugitive buffers
- autocmd BufReadPost fugitive://* set bufhidden=delete
-
- " Navigate up one level from fugitive trees and blobs
- autocmd User fugitive
- \ if fugitive#buffer().type() =~# '^\%(tree\|blob\)$' |
- \ nnoremap <buffer> .. :edit %:h<CR> |
- \ endif
-
-endif
-" Add git branch to statusline.
-set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P
-" Gundo.vim {{{2
-map <Leader>u :GundoToggle<CR>
-
-" Space.vim {{{2
-let g:space_disable_select_mode=1
-let g:space_no_search = 1
-
-" Solarized {{{2
-let g:solarized_menu=0
-set background=light
-colorscheme solarized
-call togglebg#map("<F5>")
-" Vim wiki {{{2
-let g:vimwiki_menu=''
-" Modelines: {{{1
-" vim: nowrap fdm=marker
-" }}}

0 comments on commit 457d57b

Please sign in to comment.