

GitHub - jez/vim-superman: Read Unix man pages faster than a speeding bullet!
source link: https://github.com/jez/vim-superman
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Vim SuperMan
Read Unix man
pages faster than a speeding bullet!
Unix man pages by default open with the less
pager. Getting them to open with
Vim can be a little bit of a pain, but in recent versions of Vim there's a
plugin ($VIMRUNTIME/ftplugin/man.vim
) that makes this easy.
This is a simple Vim plugin and sh function that makes replacing man
from the
command line a cinch.
Installation
Use your favorite plugin manager. If you don't have one, I'd recommend Vundle, though you should probably also take a look at Pathogen, as it's more common.
# if your ~/.vim folder isn't under source control:
git clone https://github.com/jez/vim-superman ~/.vim/bundle/vim-superman
# if your ~/.vim folder is under source control:
git submodule add https://github.com/jez/vim-superman ~/.vim/bundle/vim-superman
Then, add the following to your .bashrc
, .bash_profile
, .zshrc
, or
whatever file you use to configure your shell:
export PATH="$PATH:$HOME/.vim/bundle/vim-superman/bin"
(Note: you'll have to change this location if you installed Vim SuperMan somewhere else.)
Close and reopen your terminal and you're set! You can even add
compdef vman="man"
to your ~/.zshrc or
complete -o default -o nospace -F _man vman
to your ~/.bashrc to get tab completion. (Thanks to texasflood for the Bash completion snippet.)
Usage
This predominantly a command line tool. To open the man page for vim
:
$ vman vim
It's that simple. The underlying :Man
command supports specifying a specific
section, so you could also do something like
$ vman 3 printf
To see the man page for the C printf()
library call.
For more information, see the associated blog post.
Jake, why not just name the bash function man
?
The actual man
command supports many more features than the Vim plugin does
(for a complete list, see man(1)
). If you shadow the real man
command,
things start to break, for example apropos
, which uses man
under the hood.
When I install vim-superman
it looks nothing like this!
There are a couple other plugins of mine featured prominently here, including Solarized Dark for the color scheme and Vim Airline for the statusbar. If you're curious about my whole setup, be sure to check out my dotfiles repository.
License
MIT License. See LICENSE.
Recommend
-
41
Speeding up WSL I/O up than 5x fast + saving a lot of battery life & CPU usage @leandrw Posted on:
-
45
标星★公众号 爱你们 ♥ 作者:Max Pechyonkin 编译:公...
-
12
CW's Superman & Lois Show Recasts DC Character Morgan EdgeLois and Clark are ready to face a familiar foe, with a new face.Image: The CWMorning SpoilersIf there’s news abou...
-
7
Setting Goals for Superman
-
17
Superman/Witcher star Henry Cavill upgrades to an Nvidia RTX 3090 How did he find one? By
-
11
Stronger Than Steel, Able to Stop a Speeding Bullet--It's Super Wood!
-
9
‘Fortnite’ Season 7 introduces Rick Sanchez, SupermanBy Gene ParkJune 8, 2021 at 10:00 a.m...
-
9
Speeding up IndexedDB reads and writes Posted August 22, 2021 by Nolan Lawson in performance, Web. Tagged:
-
9
README.md ...
-
5
Date: 2023-01-15 Git: https://gitlab.com/mort96/blog/blob/published/content/00000-home/00015-fast-interpreters.md...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK