Просмотр исходного кода

add ackmore vim plugin for visual range ack and remove our own shortcuts

There is a problem: Ack's 'q' shortcut overrides Ackmore's, and Ack's shortcut
only closes quickfix windows, whereas Ackmore closes both quickfix and location
lists. Also, Ackmore's default settings are to open in location lists, making us
lose the quick close function. How can we remedy this?
Weiyi Lou 13 лет назад
Родитель
Сommit
34b8053c71
3 измененных файлов с 4 добавлено и 7 удалено
  1. 3 0
      .gitmodules
  2. 1 0
      vim/bundle/ackmore
  3. 0 7
      vim/vimrc

+ 3 - 0
.gitmodules

@@ -31,3 +31,6 @@
 [submodule "vim/bundle/fugitive"]
 [submodule "vim/bundle/fugitive"]
 	path = vim/bundle/fugitive
 	path = vim/bundle/fugitive
 	url = git://github.com/tpope/vim-fugitive.git
 	url = git://github.com/tpope/vim-fugitive.git
+[submodule "vim/bundle/ackmore"]
+	path = vim/bundle/ackmore
+	url = https://github.com/jordansissel/vim-ackmore.git

+ 1 - 0
vim/bundle/ackmore

@@ -0,0 +1 @@
+Subproject commit 62c6f93f5fec2da9ae86a6d3f821640ba2edbf9e

+ 0 - 7
vim/vimrc

@@ -56,7 +56,6 @@ if has("autocmd")
  
  
     " if the last window is NERDTree, then close Vim
     " if the last window is NERDTree, then close Vim
     "autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif 
     "autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif 
- 
 else
 else
     set autoindent on
     set autoindent on
 endif
 endif
@@ -186,12 +185,6 @@ vnoremap <silent> <leader>,    <ESC>:call NERDComment("x", "toggle")<CR>
 " Traverse undo tree with Gundo!
 " Traverse undo tree with Gundo!
 nnoremap <leader>u :GundoToggle<CR>
 nnoremap <leader>u :GundoToggle<CR>
 
 
-" Search under cursor with ack!
-nnoremap <leader>a :Ack <cword><CR>
-nnoremap <leader>A :Ack -a <cword><CR>
-vnoremap <leader>a :Ack <cword><CR>
-vnoremap <leader>A :Ack -a <cword><CR>
-
 
 
 """"""""
 """"""""
 "" Key Remaps - Movement and Windows
 "" Key Remaps - Movement and Windows