Suppose I have a folder with lots of .h and .cpp files. I frequently need to do the following:
prefix_SomeReallyLongFileName.h,
According to the Vim wiki there are quite a few suggested ways.
I will outline a few options from the article:
:e %<.c or :e %<.h. %< represents the current file w/o the extensionnnoremap :e %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp, . Add this to your ~/.vimrc.