pyratelog

personal blog
git clone git://git.pyratebeard.net/pyratelog.git
Log | Files | Refs | README

commit 2ea46cc1d5eba50900eff957ad54ddbb4442c3b7
parent c4841c08e5d6a3846d0f26fa40c5e33e75126fc8
Author: pyratebeard <root@pyratebeard.net>
Date:   Wed, 12 Apr 2023 21:07:51 +0100

buffer_me_up

Diffstat:
Mentry/buffer_me_up.md | 26++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)

diff --git a/entry/buffer_me_up.md b/entry/buffer_me_up.md @@ -1,4 +1,4 @@ -This is the first entry in a three part series on everyone's favourite text editor, [Vim](https://www.vim.org/){target="_blank" rel="noreferrer"}. There are plenty of Vim guides and tutorials on the internet already, from first steps to hardcore power user tips. My entries are going to be somewhat of a middle ground. +This is one of a few entries I am working on about everyone's favourite text editor, [Vim](https://www.vim.org/){target="_blank" rel="noreferrer"}. There are plenty of Vim guides and tutorials on the internet already, from first steps to hardcore power user tips. My entries are going to be somewhat of a middle ground. I have been using Vim as my main (read "_only_") text editor for many years. Over this time I have continuously learnt new ways of working and how to use Vim's functions properly. @@ -72,4 +72,26 @@ To vertical split a loaded buffer incant :vert sb<number> ``` -https://vim.fandom.com/wiki/Quick_tips_for_using_tab_pages +## tabulous +As mentioned previously Vim does have [tabs](https://vim.fandom.com/wiki/Quick_tips_for_using_tab_pages){target="_blank" rel="noreferrer"} but they aren't designed to be used like other text editors. If you have a few buffers open in splits, then maybe opening another file for a quick change, such as a 'scratchpad', could mess up your layout. Opening a tab will allow you to edit another file without disturbing your split layout. + +To open a new file in a tab incant +``` +:tabe <filename> +``` + +Similarly to open a buffer in a tab incant +``` +:tab sb<number> +``` + +Navigating tabs can be done in a number of ways, just like navigating buffers. To get started, in normal mode `gt` and `gT` will switch to the next and previous tab respectively. + +There are other uses for tabs of course, although since learning to use buffers correctly I haven't missed them. + +To find out more about tabs incant +``` +:help tabs +``` + +Vim is such a powerful and interesting editor. There isn't a week that goes by where I don't learn something new or figure out how to use Vim more efficiently. If you learnt something from this post, or even if you have any tips for working buffers, splits, or tabs, I would love to hear about it; contact information can be found on my [homepage](https://pyratebeard.net){target="_blank" rel="noreferrer"}.