a question about softtabstop

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

a question about softtabstop

lingkun
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?

--
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
Reply | Threaded
Open this post in threaded view
|

Re: a question about softtabstop

Nikolay Aleksandrovich Pavlov
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?

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: a question about softtabstop

lingkun
Thanks for your help.
get the meaning of "TAB"

On 10月31日, 下午10时54分, ZyX <[hidden email]> wrote:>
> `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.

--
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