Skip to content
Browse files

Throw away the custom quickfixdo command.

  • Loading branch information...
1 parent 7bdafae commit 46a0cf7e40c3d7462d89bad1d8683eac1ab6c993 @nelstrom committed Jan 21, 2012
Showing with 0 additions and 26 deletions.
  1. +0 −26 vimrc
View
26 vimrc
@@ -126,32 +126,6 @@ nnoremap <expr> gV "`[".getregtype(v:register)[0]."`]"
nnoremap & :&&<Enter>
xnoremap & :&&<Enter>
" Custom commands and functions {{{1
-" Create a :Quickfixdo command, to match :argdo/bufdo/windo {{{2
-command! -nargs=+ QFDo call QFDo(<q-args>)
-" Function that does the work
-function! QFDo(command)
- " Create a dictionary so that we can get the list of buffers rather than
- " the list of lines in buffers (easy way to get unique entries)
- let buffer_numbers = {}
- " For each entry, use the buffer number as a dictionary key (won't get
- " repeats)
- for fixlist_entry in getqflist()
- let buffer_numbers[fixlist_entry['bufnr']] = 1
- endfor
- " Make it into a list as it seems cleaner
- let buffer_number_list = keys(buffer_numbers)
-
- " For each buffer
- for num in buffer_number_list
- " Select the buffer
- exe 'buffer' num
- " Run the command that's passed as an argument
- exe a:command
- " Save if necessary
- update
- endfor
-endfunction
-" http://stackoverflow.com/questions/4792561/how-to-do-search-replace-with-ack-in-vim
" Show syntax highlighting groups for word under cursor {{{2
" Tip: http://stackoverflow.com/questions/1467438/find-out-to-which-highlight-group-a-particular-keyword-symbol-belongs-in-vim
nmap <Leader>m :call <SID>SynStack()<CR>

0 comments on commit 46a0cf7

Please sign in to comment.
Something went wrong with that request. Please try again.