Skip to content

Neovim plugin to center the last visual selection.

License

Notifications You must be signed in to change notification settings

walterl/centerfold

Repository files navigation

CenterFold

This Neovim plugin adds the :CenterFold command that will center the last visual selection, opening all folds under the cursor, recursively.

Installation

I recommend installing it with vim-plug:

Plug 'walterl/centerfold'

Usage

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>

Background

This is my first Neovim plugin written in Fennel, using Aniseed.

License

MIT

About

Neovim plugin to center the last visual selection.

Topics

Resources

License

Stars

Watchers

Forks

Languages