Skip to content

nekoju/showcontext

This branch is up to date with mpjuers/showcontext:master.

Repository files navigation

What it is:

showcontext.vim opens a scratch buffer in the current window that shows the last line with less than or equal indentation to the current line. This allows you to see where you are in a file without scrolling back up. You can then jump to any line shown in the window with a configurable binding (Default: Enter).

Out of the box, showcontext.vim does nothing; you must map the function ShowContext_toggle() like so: nnoremap <leader>lc :call ShowContext_toggle()<CR>

That's it!

Credit to Rich at vi.stackexchange for doing most of the work. https://vi.stackexchange.com/questions/20078/plugin-to-show-enclosing-indentation-levels/20089#20089

Installation

I use Vim-Plug.

Simply add Plug "mpjuers/showcontext" to your .vimrc in the appropriate place and :PlugInstall. Should work with other plugin managers or manual installation (see docs) as well.

About

Find yourself when you're lost!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 100.0%