I want to make :f do the same thing as :find so if I type :f abc.txt, it should run :find abc.txt.
I tried to do something like cmap f find but that just make any f into find
I want to make :f do the same thing as :find so if I type :f abc.txt, it should run :find abc.txt.
I tried to do something like cmap f find but that just make any f into find
try this maybe:
cabbrev f find
/f<cr>. I would recommend using an expression abbrevation and checking getcmdtype() == ":". See vim change :x function to delete buffer instead of save & quit
– Peter Rincker
Jul 12 '18 at 23:05
:w'to:w, to avoid creating files named '?, How to make command-line abbreviations that only trigger at begining of line, and vim change :x function to delete buffer instead of save & quit – Peter Rincker Jul 12 '18 at 23:02