Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vim unset listchars ?

2,271 views
Skip to first unread message

David

unread,
Jan 2, 2004, 7:57:37 AM1/2/04
to
Hello list,

I use the very handy vi "listchars" option as follows:
set listchars=tab:»·,trail:·

For example, when this option is set, my code will look
like this:

< 164 lines snipped>
165 foreach ($i = 0; $i < scalar(@$nessusIDs); $i++)
166 {
167 »····if ($i eq 0)
168 »····{
169 »····»····$nessusIDsString = "\'@$nessusIDs[$i]\'";
170 »····}else
< .. snip..>

When I want to copy&paste certain lines of code, the "»·"
listcharacters will be copied as well (as you can see).
Is there an option to "uset" the "listchars"? I've tried
"set nolistchars" but that wont work. Does someone have
a "trick" for this one ?

Thanks in advance,

David

Sven Guckes

unread,
Jan 2, 2004, 9:23:58 AM1/2/04
to
* David <d...@quicknet.nl>:

> Is there an option to "uset" the "listchars"?

just turn off the "list" with "set nolist".
you can also use "set list!" to switch from
"list" to "nolist" with the benefit that you
can recall this command from the command line
history and execute it again to toggle back.
you could map this to some function key, too:
map <f12> :set list!<cr>

Sven

--
Sven Guckes(at)vim.org
http://www.vim.org/
VIM-6.2 [2003-06-01]
VIM-6.2.170 [2003-12-29]

0 new messages