Navigate Vim With Windows, Tabs and Buffers
First of all, prefer buffers over tabs. Josh Davis wrote a comprehensive blog post which explains why: Vim Tab Madness. Buffers vs Tabs.
I followed Josh's Solution #1 and added support for visualizing opened buffers with lightline-bufferline and added a key mapping for closing a buffer and moving to the previous buffer:
" Close the current buffer and move to the previous one" This replicates the idea of closing a tabnmap <leader>bq :bp <BAR> bd #<CR>
I also use Tim Pope's vim-unimpaired which already ships with shortcuts to move between buffers with
Sometimes I like to open two windows. For example, my command line window where npm/yarn runs, and an editor window. Per default, split windows have the same size.
You can resize them with
[count]<C-w>> increases the width of the current window by
You could check the Upcase tutorial on Vim for all sorts of commands.