Thursday 12 September 2013

Getting rid of the brace matching in VIM

For some strange reason VIM has a very bad habit of matching braces rather greedily.  Every time you get on top of a brace, the cursor jumps willy nilly trying to find the matching brace and possibly making strange noises when it cannot find one.

I personally hate that behaviour as much as I like my VIM so here is how you turn it off.  On your ~/.vimrc add the following


let matchparen=1
 
Thats all there is to it.  No more jumping greedy cursors looking for matching braces ;)

No comments:

Post a Comment