Quantcast
Viewing all articles
Browse latest Browse all 5712

VIMでmanを読む

下記コマンドを入力するだけの簡単なお仕事です。

man <知りたいこと> -P "col -b | vim -Rc 'setl ft=man ts=8 nomod nolist nonu' -c 'nmap q :q<cr>' -"

zsh使っているなら、~/.zshrcにこんな感じで書いておくとデフォルトのmanを(大体)置き換えられて恍惚。

~/.zshrc
function man(){ /usr/bin/man $* -P "col -b | vim -Rc 'setl ft=man ts=8 nomod nolist nonu' -c 'nmap q :q<cr>' -"}

キーバインド

使えます。

KeyBehavior
<C-]>カーソル下の単語を更にmanで調べる
<C-t>戻る

Viewing all articles
Browse latest Browse all 5712

Trending Articles