Vim: defining own comand in command mode with?

The way I've always written colon-mode commands in vim is like this.

Up vote 0 down vote favorite share g+ share fb share tw.

I want to define a command that is executed by ":command" I tried something like this: cmap hello exec "normal aHello World" I have two problems with the result: If I type slowly then there stand ":hello" in the bottom line and after pressing return I get Not an editor command: hello If I type fast then there doesn't stand :hello somewhere and it doesn't wait for me to hit the Return key. But at least it works. Can somebody please points out to me how I have to define the hello command in a way that typing slowly will work?

Vim link|improve this question asked Jun 5 '11 at 10:59Tim31.

The way I've always written colon-mode commands in vim is like this: command! BASH! Start bash note the command must be in uppercase.

2 Only first letter must be uppercase. – ZyX Jun 5 '11 at 11:57 2 after defining command as in the answer you can use cmap to use lower case: cmap bash BASH – skeept Jun 5 '11 at 14:11.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions