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