]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Include line number also
authorSergey Matveev <stargrave@stargrave.org>
Sun, 26 Jul 2020 16:42:53 +0000 (19:42 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 26 Jul 2020 16:42:53 +0000 (19:42 +0300)
vim/.vim/plugin/buftabline.vim

index e40885cdea8dac37a5c30076bb42e9a62513f8ef..2c28fd3ef30a7e3b9929c943f47d208def3055e2 100644 (file)
@@ -10,6 +10,7 @@ function! BufTabline()
             if len(ent) == 0 | continue | endif
             let ents = add(ents, substitute(ent, "%", "%%", "g"))
         endfor
             if len(ent) == 0 | continue | endif
             let ents = add(ents, substitute(ent, "%", "%%", "g"))
         endfor
+        let ents[-3] = ents[-3] . ":" . ents[-1]
         let ents = ents[:-3]
         if len(ents) == 4 | let ents = [ents[0], ents[1] . ents[2], ents[3]] | endif
         if len(ents) == 3 | let ents = [ents[0] . ":" . ents[1], ents[2]] | endif
         let ents = ents[:-3]
         if len(ents) == 4 | let ents = [ents[0], ents[1] . ents[2], ents[3]] | endif
         if len(ents) == 3 | let ents = [ents[0] . ":" . ents[1], ents[2]] | endif