> This is the second and last post in a series of things I've always 
> wondered about vim.  :-)

Oh, trust me...it's not likely your last -- I've been using vim 
for about 10yrs (since the 5.x days), and answering lots of 
questions here (I think I'm in the top-5 loudmouths-of-all-time 
on the list stats), and I still have the occasional question for 
the list. :-)

> Again, I've searched for the answer several times over the
> years, and I'm surprised that it seems nobody else has asked.

Because some folks who want this may have found an adequate 
solution? ;-)

> When you turn wrapping on in vim (:set wrap), you can't tell
> from looking at the screen where a line starts. I sometimes
> type /^ to highlight the first character in a line, but as
> soon as I search for something else, this effect disappears. I
> know there's :set list, but that messes up tabs, which I use
> for indentation sometimes

Well, in addition to sc's suggestion of 'showbreak', you can use 
'listchars' to make a tab still appear as a tab 
(indentation-wise) if you want within 'list':

   :set list listchars+=tab:\ \

(that's "plus equal t-as-in-tango a-as-in-alpha b-as-in-bravo 
colon backslash space backslash space" in case it's unclear via 
email-munging).

If your search-highlighting solution works for you, you could 
also do something like either

   :match Error /^\|$/

or if you like differing colors for SOL/EOL

   :match Error /^/
   :2match Comment /$/

(adjust your highlighting link from Error/Comment to whatever you 
prefer)

Hopefully one of the 3 suggestions will help you get close to 
what you want.

-tim




--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to