Sunday, October 31, 2010

Re: a question about softtabstop

Reply to message «a question about softtabstop»,
sent 17:12:58 31 October 2010, Sunday
by itx:

> but i found that when i type a TAB after a non-blank character it
> didn't insert softtabstop spaces
>
> for example
>
> 1. i\t
> 2. in\t
> 3. \t
>
> the end colum of these three lines are just the same ,why?
`softabstop' is ``pretend to insert a tab, but really insert spaces'' that is
``fill line with spaces till next virtual column that has 0 as a remainder in
division by a value of tabstop''. So, it does not insert a four spaces, it
inserts a spaces till fourth column.

Original message:
> I am using gvim 7.2
>
> my vimrc settings
>
> set tabstop=8
> set softtabstop=4
> set noexpandtab
>
> but i found that when i type a TAB after a non-blank character it
> didn't insert softtabstop spaces
>
> for example
>
> 1. i\t
> 2. in\t
> 3. \t
>
> the end colum of these three lines are just the same ,why?

No comments: