# HG changeset patch # User Steve Losh # Date 1285029723 14400 # Node ID 369014a3a03855533d44b215d8d1000c0e1041c5 # Parent 21748aa456d4b2cc95506f444b15cf23d879d632 Fix some mistakes in the Vim entry. diff -r 21748aa456d4 -r 369014a3a038 content/blog/2010/09/coming-home-to-vim.html --- a/content/blog/2010/09/coming-home-to-vim.html Mon Sep 20 18:17:20 2010 -0400 +++ b/content/blog/2010/09/coming-home-to-vim.html Mon Sep 20 20:42:03 2010 -0400 @@ -368,7 +368,7 @@ set incsearch set showmatch set hlsearch - nnoremap :let @/='' + nnoremap :noh nnoremap % vnoremap % @@ -397,10 +397,6 @@ `,`. This gets rid of the distracting highlighting once I've found what I'm looking for. -Some people use a mapping that turns search highlighting off and on, but -I don't like that solution. It means I have to remember to turn it back on -later once I've probably already forgotten about the original search. - The last two lines make the tab key match bracket pairs. I use this to move around all the time and `` is a hell of a lot easier to type than `%`. @@ -519,7 +515,7 @@ here's a `,S` mapping that sorts them for me: :::vim - nnoremap S ?{jV/^\s*\}?$k:sort:let @/='' + nnoremap S ?{jV/^\s*\}?$k:sort:noh This next mapping imitates TextMates `Ctrl+Q` function to re-hardwrap paragraphs of text: @@ -822,7 +818,7 @@ that has lots of nesting I simply hit `R` and get some color that helps me keep my place. -[Rainbow Parentheses]: http://www.vim.org/scripts/script.php?script_id=1230 +[Rainbow Parentheses]: http://www.vim.org/scripts/script.php?script_id=1561 [myRainbow]: http://bitbucket.org/sjl/dotfiles/src/tip/vim/bundle/rainbow/ Things I Want