vim-auto-tabstop

A Vim plugin for automatically setting tabstop size
git clone https://git.ce9e.org/vim-auto-tabstop.git

commit
03fecaae3aa329e213de770ae28a2cea5d0b0094
parent
648103203b6a4fb7b64c0482804c624b405a2e3b
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-10-04 19:39
fix: keep empty columns at start (vartabs)

Diffstat

M plugin/fets.vim 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/plugin/fets.vim b/plugin/fets.vim

@@ -35,7 +35,7 @@ function! s:CalcTS()
   35    35 	for l:line in getline(0, "$")
   36    36 		let l:i = 0
   37    37 
   38    -1 		for l:item in split(l:line, '\t')[:-2]
   -1    38 		for l:item in split(l:line, '\t', 1)[:-2]
   39    39 			let l:len = len(l:item) + 1
   40    40 
   41    41 			if len(l:tabs) <= l:i