LoginSignup
4

More than 5 years have passed since last update.

Vimで、デフォルト定義されているEXコマンドを独自のものでおきかえる

Last updated at Posted at 2013-10-16

問題

たとえば、:bdでwindowまで消えちゃうのがうざい。bufkill.vimを使うと、:BDでバッファをkillしつつ、windowはそのまま残すということができる。しかし、そもそも:bdがそのような挙動であってほしい。

解決

vim-altercmdを使う。

これを用いて、以下のように設定する。

AlterCommand bd BD
AlterCommand BD bd

これで、:bd:BDを交換することができた。

議論

特になし。

この件、以下でご教示いただいた。
http://lingr.com/room/vim/archives/2013/10/16#message-17075846

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