LoginSignup
4
2

More than 5 years have passed since last update.

VIMでmanを読む

Last updated at Posted at 2013-11-23

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

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>' -" }   

キーバインド

使えます。

Key Behavior
<C-]> カーソル下の単語を更にmanで調べる
<C-t> 戻る
4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2