indentation - Vim: TABs of different widths in visual modes and insert mode? -


this thing works below if set tabstop=55, not work: tab in insert mod , tab in visual-block mode totally different tabs.

  1. visual block mode (or visual mode)
  2. select part of column and
  3. then press >

i indenting large column file -- inserting tabs here-and-there , other trivial changes -- need able see things correctly without having different tab widths.

how can tabs same tab same width on different modes?

you need set shiftwidth 55.

from vim help

                                                'shiftwidth' 'sw' 'shiftwidth' 'sw'       number  (default 8)                         local buffer         number of spaces use each step of (auto)indent.  used         'cindent', >>, <<, etc. 

so in vimrc add

set shiftwidth=55 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -