This Neovim plugin adds the :CenterFold
command that
will center the last visual selection, opening all folds under the cursor,
recursively.
I recommend installing it with vim-plug:
Plug 'walterl/centerfold'
This is useful to quickly select and center a block of code. For example, the following mapping will center the top-level Clojure form the cursor is in (requires vim-sexp):
nmap <silent> <Leader>jj vaF:CenterFold<CR>
This is my first Neovim plugin written in Fennel, using Aniseed.