~enan/dotfiles

67445a6a2cce84c906074e9185565070ced53b7a — Enan Ajmain 1 year, 9 months ago ddf37c7
vim: disable tabline and show tabnr in statusline
1 files changed, 2 insertions(+), 1 deletions(-)

M .config/nvim/plugin/user/statusline.vim
M .config/nvim/plugin/user/statusline.vim => .config/nvim/plugin/user/statusline.vim +2 -1
@@ 13,6 13,7 @@ let &statusline = " %{&modified?'Δ':&readonly||!&modifiable?'ø':'✓'}"
let &statusline .= " %<%{expand('%:~:.')!=#''?PathShortenIfLong(expand('%:~:.')):'[No Name]'}"
let &statusline .= "%="
let &statusline .= " %l: %v "
let &statusline .= "[%{winnr()},%{tabpagenr()}/%{tabpagenr('$')}]"


" -- Tabline -------------------------------------------------------------------


@@ 33,5 34,5 @@ function! MyTabLine() abort
  return s
endfunction

let &showtabline = 1
let &showtabline = 0
let &tabline = "%!MyTabLine()"