Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to indicate wrapped line? [duplicate]

Tags:

vim

In vim I am now using wrap on. I need to indicate wrapped line by prepending character. I know it is possible - I was using it years ago, but my old .vimrc is lost. Or any other useful indication of wrapped line would be helpful.

like image 407
Stepan Avatar asked Dec 15 '22 19:12

Stepan


2 Answers

Check :h showbreak

'showbreak' 'sbr' string (default "")

String to put at the start of lines that have been wrapped. Useful values are "> " or "+++ ":
:set showbreak=>\

like image 198
Eugene Yarmash Avatar answered Dec 21 '22 09:12

Eugene Yarmash


Interesting :) Why won't you just use line numbers on the left? You'll see when new line starts, because new number appears only on new line, and not on line broken on the screen, no matter how long it is.

:set nu
like image 40
Piotr Wadas Avatar answered Dec 21 '22 09:12

Piotr Wadas