Skip to content

TheLastProject/vim-betterK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

vim-betterK

vim comes with a K command, which runs a program to lookup the keyword under the cursor. However, by default, the K command uses man for everything.

vim-betterK improves the K command by using appropriate locally installed help viewers depending on the programming language in question, instead of using man for everything.

How to use

vim-betterK overwrites the regular K command, functioning in the same way. Put your cursor on some text, or select some text in visual mode, and press K to get keyword information.

To call a specific manpage, regardless of the filetype-specific behaviour, prefix K with a count. For example, to check out the selection in man 3, type 3K

How to install

If you're using Vundle, add Plugin 'TheLastProject/vim-betterK'

Default viewers

C: man 3; man 2
Haskell: hoogle; hoogle (online)
Perl: perldoc
PHP: pman
Python: pydoc
Ruby: ri
sh: man 1
vim: built-in :help

License

GPLv3+

About

Improve vim's K command by using programming language-specific help viewers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published