How to define vim commands


I’v seen how to set keybindings but what I would like is to define some commands.

For example, I’d like for :vs to run “duplicate view”.

Or something like :tabedit and file name, etc.


I believe it is defined in the .vimrc file
A quick google shows
and what looks to be a cool project :


I understood c9 ignored vimrc


Sorry I have no idea on that one. I answered on my basic Linux knowledge. I suggest trying it and see if it works or not. I’m interested to know.


@dwaynemac vim commands are defined in and
It should be possible to add cli commands using init script and api provided from these two plugins, but :vs and :tabedit are default commands in vim so adding them to the plugin would be better.