# HG changeset patch # User Ludovic Chabant # Date 1427986831 25200 # Node ID 8bc056d80c397d1858a3baab1c5882d1e7a660d1 # Parent e2a48fb5e1436737bc555c78a4e30cc73c24ea61 Remove unused stuff, add grepping, shorter status line. diff -r e2a48fb5e143 -r 8bc056d80c39 vim/vimrc --- a/vim/vimrc Thu Apr 02 07:59:41 2015 -0700 +++ b/vim/vimrc Thu Apr 02 08:00:31 2015 -0700 @@ -449,9 +449,6 @@ " Simple way to close a buffer without closing the window. nnoremap bd :bprevious:bdelete # -" File-type switching. -nnoremap ftmd :set ft=markdown - " Use sane regexes. nnoremap / /\v vnoremap / /\v @@ -472,14 +469,17 @@ " Quick search and replace. function! s:VSetSearch() - let temp = @@ - norm! gvy - let @/ = '\V' . substitute(escape(@@, '\'), '\n', '\\n', 'g') - let @@ = temp + let temp = @@ + norm! gvy + let @/ = '\V' . substitute(escape(@@, '\'), '\n', '\\n', 'g') + let @@ = temp endfunction vnoremap * :call VSetSearch()// vnoremap # :call VSetSearch()?? +nnoremap fa :vimgrep // +vnoremap fa "zy:vimgrep /z/ + " Jump to tags by keeping things better in view. Option for jumping to a tag " in a split window where everything is folded except what you need to see. function! JumpToTag() @@ -551,7 +551,7 @@ set statusline+=) " Line and column position and counts. -set statusline+=\ (line\ %l\/%L,\ col\ %03c) +set statusline+=\ (%l\/%L,%03c) " }}}