c - how to draw vertical lines between braces in vim? -


how can have vertical line shown between braces in vim editor. helpful when writing c code.

upto now, while using vim editor, if want know position of closing brace, following:

  1. in normal mode, take cursor opeining brace { , press % take cursor closing }.

  2. and (try) remember line numbers of opening , closing brace.

but when forget line numbers of opening , closing braces. plus, many times brace pairs nested makes more confusing remember.

so want have vertical line drawn between braces, can following:

  1. in normal mode, take cursor open { , press j or k (or % or other motion command) navigate through file. added line on left side can know block in.

so, if code indented properly, looking @ line on left side have track of block in. , can use j , k (or other motion command) without having remember line number of opening , closing brace.

how can in vim ?

update: got answer here is possible display indentation guides in vim? .

the indentline plugin can indentline plugins http://vim.sourceforge.net/scripts/script.php?script_id=4354


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -