2

NerdCommenterプラグインを使ってvimコマンドを作ってみました。基本的に、ここでいくつかの助けを借りた後、それは次のようになります:

command! -nargs=? -range=% Ct :normal <line1>ggv<line2>gg<Leader>c<space>

を使用すると機能します:so .vimrcが、vimを再起動すると、が5ggv12ggなくても機能し,cspaceます。パーツがプラグインのものだからだと思い,cspaceますが、これを修正する方法はないかと思います。誰でも助けることができますか?

4

1 に答える 1

1

おそらく、.vimrcで「mapleader」を設定する前にコマンドを定義していますか?

差出人:help mapleader

Note that the value of "mapleader" is used at the moment the mapping is
defined.  Changing "mapleader" after that has no effect for already defined
mappings.
于 2012-02-25T07:15:03.050 に答える