Tuesday, November 2, 2010

Re: and set list problem

thanks for help.

What does Vim answer to

:verbose set list? listchars? lazyredraw?
:if !has('gui_running') | verbose set t_kb? t_kD? | endif

and what appears if (in Insert or Command-line mode) you hit Ctrl-
V (or Ctrl-Q if you use Ctrl-V to paste into Vim) followed by
Backspace?


:verbose set list? listchars? lazyredraw?
set list listchars=eol:$ nolazyredraw


if !has('gui_running') | verbose set t_kb? t_kD? |endif
t_kb? <BS> t_kD? <DEL>

Ctrl-Q followed by Backspace <BS>

:set backspace? backspace=indent,start,eol
this seems that all these options were default ?

but it seems that the backspace didn't work properly when i ": set
list" (i didn't change "listchars")

for instance
i type FOUR hardtabs in a new line
it appears as "^I^I^I^I" and then i just type ONE <BS>, these four
tabs were deleted....

but when i :set listchars=tab:\ \ or someothers or ":set nolist" it
works properly just as i wanted,i.e. these tabs were deleted after i
type FOUR <BS>

o, i think that maybe <BS> just delete the display "tabstop"
characters a time.
thus it will delete 8 chars and "^I^I^I^I" is 8 chars,so it was
deleted........
or other reasons?

Best regards
itx

On 11月2日, 上午3时34分, Tony Mechelynck <antoine.mechely...@gmail.com>
wrote:
> On 01/11/10 17:08, itx wrote:
>
> > when i set list and then type four tab in a newline like
>
> > \t\t\t\t
> > when i "set list" , i type backspce for juse one time
> > this four tabs were delete ,
>
> > but when i "set nolist" ,i works well
> > why
>
> > my settings
>
> > set tabstop=8
> > set noexpandtab
> > set backspace=indent,eol,start
>
> If you ":set list", and 'listchars' is unset, every hard tab you type
> should appeat as ^I
>
> If you ":set list", and 'listchars' has a properly set "tab:" subentry,
> then that should be used to display hard tabs. To display them as
> spasces, use for instance
>
> :set list listchars=tab:\ \ ,eol:$
>
> (two backslash-escaped spaces: see :help option-backslash ).
>
> In both cases, the backspace ought to work properly...
>
> What does Vim answer to
>
> :verbose set list? listchars? lazyredraw?
> :if !has('gui_running') | verbose set t_kb? t_kD? | endif
>
> and what appears if (in Insert or Command-line mode) you hit Ctrl-V (or
> Ctrl-Q if you use Ctrl-V to paste into Vim) followed by Backspace?
>
> Best regards,
> Tony.
> --
> Eternal nothingness is fine if you happen to be dressed for it.
> -- Woody Allen

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

No comments: