소스 검색

Add some configuration settings for Gundo vim plugin

Emmanuel Bouthenot 12 년 전
부모
커밋
c5c7cd9945
1개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 22 0
      .vim/vimrc

+ 22 - 0
.vim/vimrc

@@ -280,3 +280,25 @@ if filereadable($HOME . "/.vim/bundle/pathogen/autoload/pathogen.vim")
     source ~/.vim/bundle/pathogen/autoload/pathogen.vim
     call pathogen#infect()
 endif
+
+
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" Gundo Setup
+"
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+
+" Gundo sidebar on the right
+let g:gundo_right = 1
+" Gundo layout
+let g:gundo_width = 60
+let g:gundo_preview_height = 40
+" Gundo status lines
+let g:gundo_tree_statusline = "Gundo"
+let g:gundo_preview_statusline = "Gundo Preview"
+" Preview pane below the buffer
+let g:gundo_preview_bottom = 1
+" Close Gundo panes on revert
+let g:gundo_close_on_revert = 1
+
+" F3 key to show/hide Gundo sidebar
+nnoremap <F3> :GundoToggle<CR>