LoginSignup
26
19

More than 5 years have passed since last update.

面倒くさいVimコマンドにエイリアスを設定する

Last updated at Posted at 2016-02-06

いちいちvim画面でNERDTreeって打つのがめんどくさいので、エイリアス設定をした。

やり方は簡単で.vimrcに
:command <Alias名> <Aliasを付けたいコマンド>
って書けばよし。ただ注意が必要でAlias名は大文字から始まっている必要がある。

とりあえず以下の様に設定してみた。
:command Tr NERDTree

その後,.vimrcを再読み込みしてください。
使える様になっているはずです!

参考
http://stackoverflow.com/questions/3878692/aliasing-a-command-in-vim:title

26
19
2

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
26
19