فهرست منبع

add gundo plugin to vim

Graphical undo-tree tool for vim. Note: requires vim to have python support, and
python 2.4+ must be installed on the machine
cinaeco 13 سال پیش
والد
کامیت
df112dee60
3فایلهای تغییر یافته به همراه17 افزوده شده و 14 حذف شده
  1. 12 9
      .gitmodules
  2. 1 0
      vim/bundle/gundo
  3. 4 5
      vim/vimrc

+ 12 - 9
.gitmodules

@@ -1,27 +1,30 @@
 [submodule "vim/bundle/pathogen"]
 	path = vim/bundle/pathogen
-	url = git://github.com/tpope/vim-pathogen.git
+	url = https://github.com/tpope/vim-pathogen.git
 [submodule "vim/bundle/nerdtree"]
 	path = vim/bundle/nerdtree
-	url = git://github.com/scrooloose/nerdtree.git
+	url = https://github.com/scrooloose/nerdtree.git
 [submodule "vim/bundle/nerdcommenter"]
 	path = vim/bundle/nerdcommenter
-	url = git://github.com/scrooloose/nerdcommenter.git
+	url = https://github.com/scrooloose/nerdcommenter.git
 [submodule "vim/bundle/supertab"]
 	path = vim/bundle/supertab
-	url = git://github.com/ervandew/supertab.git
+	url = https://github.com/ervandew/supertab.git
 [submodule "vim/bundle/surrounding"]
 	path = vim/bundle/surrounding
-	url = git://github.com/msanders/vim-files.git
+	url = https://github.com/msanders/vim-files.git
 [submodule "vim/bundle/snipmate"]
 	path = vim/bundle/snipmate
-	url = git://github.com/msanders/snipmate.vim.git
+	url = https://github.com/msanders/snipmate.vim.git
 [submodule "vim/bundle/ack"]
 	path = vim/bundle/ack
-	url = git://github.com/mileszs/ack.vim.git
+	url = https://github.com/mileszs/ack.vim.git
 [submodule "vim/bundle/solarized"]
 	path = vim/bundle/solarized
-	url = git://github.com/altercation/vim-colors-solarized.git
+	url = https://github.com/altercation/vim-colors-solarized.git
 [submodule "zsh/oh-my-zsh"]
 	path = zsh/oh-my-zsh
-	url = git://github.com/robbyrussell/oh-my-zsh.git
+	url = https://github.com/robbyrussell/oh-my-zsh.git
+[submodule "vim/bundle/gundo"]
+	path = vim/bundle/gundo
+	url = https://github.com/sjl/gundo.vim.git

+ 1 - 0
vim/bundle/gundo

@@ -0,0 +1 @@
+Subproject commit 4c376a8061fa335228da420937ce385b847dd56a

+ 4 - 5
vim/vimrc

@@ -175,11 +175,14 @@ nmap <silent> <leader>l    :set list! <CR>
 " Toggle scrollbind for moving multiple splits in sync together
 nmap <silent> <leader>s    :set scrollbind! scrollbind?<CR>
 " Toggle NERDTree instead of the normal dir browser... Doesn't seem to work yet
-map <silent> <leader>d    :NERDTreeToggle<CR>
+nmap <silent> <leader>d    :NERDTreeToggle<CR>
 " Toggle Commenting out lines with NERDCommenter
 nnoremap <silent> <leader>,    :call NERDComment("n", "toggle")<CR>
 vnoremap <silent> <leader>,    <ESC>:call NERDComment("x", "toggle")<CR>
 
+" Vim's Undo Tree with Gundo!
+nnoremap <leader>u :GundoToggle<CR>
+
 " Search with ack!
 nnoremap <leader>a :Ack <cword><CR>
 nnoremap <leader>A :Ack -a <cword><CR>
@@ -240,10 +243,6 @@ nmap <C-k> <C-W>k
 nmap <C-h> <C-W>h
 nmap <C-l> <C-W>l
 
-" window resizing
-noremap + <C-w>10+
-noremap - <C-w>10-
-
 " mapping to make movements operate on 1 screen line in wrap mode
 function! ScreenMovement(movement)
     if &wrap