diff --git a/vim/init.vim b/vim/init.vim index 96c1fdc..a928b03 100644 --- a/vim/init.vim +++ b/vim/init.vim @@ -22,6 +22,7 @@ set tabstop=2 set scrolloff=5 set laststatus=2 set shiftwidth=2 +set showtabline=2 set softtabstop=2 set winminheight=0 set backspace=eol,start,indent @@ -31,6 +32,10 @@ nmap w nmap :wq! nmap :Files nmap :term +nmap :tabnew +nmap :tabclose +nmap :tabprev +nmap :tabnext map b :set cc=79 map nb :set cc=0 @@ -87,15 +92,10 @@ let g:lightline = { \ [ 'filetype' ] ] \ }, \ 'component_function': { - \ 'fugitive': 'LightLineFugitive', - \ 'readonly': 'LightLineReadonly', - \ 'modified': 'LightLineModified'} + \ 'fugitive': 'FugitiveHead', + \ 'readonly': 'LightLineReadonly'} \ } function! LightLineReadonly() return &readonly && &filetype !=# 'help' ? 'RO' : '' endfunction - -function! LightLineFugitive() - return exists('*fugitive#head') ? fugitive#head() : '' -endfunction