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:
in normal mode, take cursor opeining brace
{, press%take cursor closing}.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:
- in normal mode, take cursor open
{, pressjork(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
http://vim.sourceforge.net/scripts/script.php?script_id=4354
Comments
Post a Comment