willjp / vim-toggle-inline

Toggle inlining functions/collections under cursor in vim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-toggle-inline

Toggles inlining of functions/collections under cursor, by parsing quotes/brackets. Designed to be c-family language agnostic, but here are some sample use-cases.

  • function declarations/calls -- toggle inline vs one-line-per-param
  • lists/tuples/arrays -- toggle inline vs one-line-per-item
  • hashes/dicts -- toggle inline vs one-line-per-keypair
  • nested collections/functions -- cursor-based inlining (inline/expand only inner, or outer)

./media/demo.gif

Usage

" put your cursor on a line that is part of a function-call/declaration, and execute
:ToggleInline

You may consider setting this to a keybinding for convenience

nnoremap ti :ToggleInline<CR>

Contributing

make build  # build helptags
make test   # run tests

Bug Reports

Bugs tracking is managed by [git-bug](https://github.com/MichaelMure/git-bug). Please install.

git bug user create # create your user
git bug pull        # fetch latest bugs
git bug webui       # show bugs

About

Toggle inlining functions/collections under cursor in vim.


Languages

Language:Vim Script 82.2%Language:Shell 17.3%Language:Makefile 0.4%