grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit bad6fc5e7cb19974cdfc2d99de3b600269eae2cd
parent a79cdb615f149a80bf58a485a04326dea9c523da
Author: pyratebeard <root@pyratebeard.net>
Date:   Tue, 23 Jan 2024 09:41:33 +0000

updates

Diffstat:
Msoftware/vim.md | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)

diff --git a/software/vim.md b/software/vim.md @@ -248,6 +248,26 @@ save file as new file in dir of current buffer * jump to topic - `Ctrl-]` * return - `Ctrl-o` +## folding +| key | desc | +| -- | -- | +| zf#j | creates a fold from the cursor down # lines | +| zf/ | string creates a fold from the cursor to string | +| zj | moves the cursor to the next fold | +| zk | moves the cursor to the previous fold | +| za | toggle a fold at the cursor | +| zo | opens a fold at the cursor | +| zO | opens all folds at the cursor | +| zc | closes a fold under cursor | +| zm | increases the foldlevel by one | +| zM | closes all open folds | +| zr | decreases the foldlevel by one | +| zR | decreases the foldlevel to zero -- all folds will be open | +| zd | deletes the fold at the cursor | +| zE | deletes all folds | +| [z | move to start of open fold | +| ]z | move to end of open fold | + [using_spellcheck]: https://www.linux.com/learn/using-spell-checking-vim [faq]: http://vim.wikia.com/wiki/Vim_buffer_FAQ [vanilla vim]: https://stackoverflow.com/questions/16082991/vim-switching-between-files-rapidly-using-vanilla-vim-no-plugins