Tricky Tricks ›› Programming Tricks ›› C Languages Tricks ›› Quick Man Lookup In Vim Or Emacs

Quick Man Lookup In Vim Or Emacs

C Programming Tricks

Quick man Lookup in vim or emacs:

In vim, move your cursor over the standard function library call you want to lookup, or any other word that might be in the man pages. Press K (capital k).

In emacs, open up your .emacs file and this line:

(global-set-key [(f1)] (lambda () (interactive) (manual-entry (current-word)))) Now you can load up emacs put the cursor on the word in question and press the F1 key to load up the man page on it. You can replace the F1 key with anything you wish.

Partners