开发者

vim - cabbr for 30 <C-w> v

In vim I'd like to create a command abbreviation for the key strokes 30 <C-w> v, i.e. split the current window vertically at a width of 30 characters.

This in my .vimrc file, however, gives: E148: Regular expression missing from global:

cabbr SomeCommand 30 <C-w> v开发者_开发百科

Obviously I'm doing something wrong.


c_CTRL-W does not mean anything to vim. Is it for the normal mode? The equivalent of :vsplit? If so, just use vs. And in that case, I fail to see the point of a command abbreviation. 30vs is only 4 keys long.


Your command sequence won't work in command mode, use the following instead:

cabbr SomeCommand 30vs
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜