pvk7 / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

make `:vim` an alias for `:edit` #178

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On numerous occasions, I've found myself trying to open files--typically when 
I'm in a hurry--using ':vim' instead of ':edit', so I thought I might as well 
suggest the addition of a `:vim` alias for `:edit`.  

Original issue reported on code.google.com by ale...@ifit.com on 11 Nov 2013 at 7:20

GoogleCodeExporter commented 9 years ago
This is NOT a bug report, this is simply a feature request, most of which are 
usually done through the project's `issues` framework thing.  Also, I don't 
mind adding support for this feature on my own with a patch, but if it'd only 
like take a few minutes to add something like this, then I figure it'd be more 
efficient for somebody more familiar with the Vim source code to add this.  
I'll see if I can add support for this and then I'll submit a patch thingy.  

Original comment by ale...@ifit.com on 11 Nov 2013 at 7:23

GoogleCodeExporter commented 9 years ago
:vim is :vimgrep. This will not be changed due to backwards compatibility. You 
can use cnoreabbrev/cnoremap to make an alias yourself like in e.g. 
http://stackoverflow.com/questions/3878692/aliasing-a-command-in-vim/3879737#387
9737 (replace “\<W\>” with “vim” and “\<w\>” with “edit”).

Original comment by zyx....@gmail.com on 11 Nov 2013 at 7:27

GoogleCodeExporter commented 9 years ago
As mentioned ":vim" already has a meaning, and we don't want to change that.

Original comment by brammool...@gmail.com on 11 Nov 2013 at 7:31

GoogleCodeExporter commented 9 years ago
Point taken; thank you for yalls' time and sorry for any inconvenience caused.  

Original comment by ale...@ifit.com on 11 Nov 2013 at 7:35