Cheat Sheet

NeoVim tips and tricks

status/tabline

mkdir -p ~/.config/nvim/pack/vim-airline/start/
cd ~/.config/nvim/pack/vim-airline/start/
git clone https://github.com/vim-airline/vim-airline.git

Add this to your ~/.config/nvim/init.vim

" Enable tabline
let g:airline#extensions#tabline#enabled = 1

" If you user buffers, show buffer number
" let g:airline#extensions#tabline#buffer_nr_show = 1

" If you use tabs, show tab number
let g:airline#extensions#tabline#tab_nr_type = 1

References

https://github.com/vim-airline/vim-airline

https://jdhao.github.io/2018/09/29/Switching_buffers_quickly_Neovim/

Last updated