From 2ff75113e7f459eb794ceed4280546c5f3602f98 Mon Sep 17 00:00:00 2001 From: Eliran Gonen <31196036+elig0n@users.noreply.github.com> Date: Fri, 14 Aug 2020 22:58:26 +0300 Subject: [PATCH] Use virtual column instead of column in lineinfo i.e. when 'wrap' is set 'showbreak' characters gets counted in in column position. This seems to be like a more common use, better default. --- autoload/lightline.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index ea2a6e7..d506b3e 100644 --- a/autoload/lightline.vim +++ b/autoload/lightline.vim @@ -110,7 +110,7 @@ let s:_lightline = { \ 'paste': '%{&paste?"PASTE":""}', 'readonly': '%R', 'charvalue': '%b', 'charvaluehex': '%B', \ 'spell': '%{&spell?&spelllang:""}', 'fileencoding': '%{&fenc!=#""?&fenc:&enc}', 'fileformat': '%{&ff}', \ 'filetype': '%{&ft!=#""?&ft:"no ft"}', 'percent': '%3p%%', 'percentwin': '%P', - \ 'lineinfo': '%3l:%-2v', 'line': '%l', 'column': '%c', 'close': '%999X X ', 'winnr': '%{winnr()}' + \ 'lineinfo': '%3l:%-2c', 'line': '%l', 'column': '%c', 'close': '%999X X ', 'winnr': '%{winnr()}' \ }, \ 'component_visible_condition': { \ 'modified': '&modified||!&modifiable', 'readonly': '&readonly', 'paste': '&paste', 'spell': '&spell'