Monday, May 21, 2018

Re: vi commands

On 2018-05-21 13:32, sampei02@tiscali.it wrote:
> I tried to select rows by ctrl-v but with '>' key text is indented
> to different space vs tabstop. E.g. my tabstop is set to default as
> 4 value and > indent rows to 8 spaces. how can I tune it?

You'll want to check your 'shiftwidth', 'softtabstop', and
'expandtab' settings.

Most folks recommend leaving 'tabstop' to the default of 8, while
setting shiftwidth & softtabstop to the same value for the
indentation you want (4). Either set expandtab if you prefer spaces,
or set noexpandtab if you want literal tabs when you hit <tab>

-tim




--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: