I\'m wondering if it\'s possible in Vim to create a mapping (for normal mode) that allows user input before the mapping executes.
I want to create a mapping for a shortc
An alternative would be create a custom command and use a mapping to call the new command.
command! -nargs=+ -complete=file -bar Grep grep! |cw
Now you can create your mapping:
nnoremap :Grep
You probably also want to stay away from mapping the F
key as it a pretty handy mapping.
For more help see:
:h :command