Hi there

Here is a sample . txt file I have:

bla bla bla bla bla bla (line break)
> bla bla bla bla bla bla (return)
>    bla bla bla bla bla (line break)
> bla bla bla bla bla bla.
>

The lines are broken because I set the 'linebreak' option in my vimrc file.
Note that the third line starts with a tab.

Here is what I'd like it to look like:

bla bla bla bla bla bla (line break)
> bla bla bla bla bla bla (return)
>    bla bla bla bla bla (line break)
>     bla bla bla bla bla (line break)
>    bla.
>

I want VIM to shift the text following a linebreak to the right. I want this
shift to be as wide as a tab.

I tried 'set showbreak=\ \ \ \ ' (my tab = 4 spaces). However, first of all
I'm thereby shifting by spaces and not a tab. Second, and most important,
this shifts text after every linebreak like this

bla bla bla bla bla bla (line break)
>    bla bla bla bla bla (line break)
>    bla (return)
>    bla bla bla bla bla (line break)
> bla bla bla bla bla bla.
>

and not only those at the end of a line starting with a tab.

It would be fantastic if I could put something like

if 'line starts with tab' do 'set showbreak = 'tab''
endif

How would that look in detail?

Thank you very much.

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

Reply via email to