How to show vertical line to wrap the line in Vim?

前端 未结 5 1880
醉话见心
醉话见心 2021-01-29 22:26

I\'m interested in finding a way to show a vertical line at column 80 in Vim (not GVim).

I\'ve used set wrap, but I just want to show a vertical line so I c

5条回答
  •  悲&欢浪女
    2021-01-29 22:49

    Several answers here http://vim.wikia.com/wiki/Highlight_long_lines simple autocommand

    :au BufWinEnter * let w:m1=matchadd('Search', '\%<81v.\%>77v', -1)
    :au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
    

提交回复
热议问题