Skip to content

walterl/centerfold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Contributors

Languages