What is a good way to execute “:file
” (“display menu of programs set for the file type of the current file.”)? Any idea on a standard keyboard shortcut?
I have a directory tree with some files with which I do two things:
1. (on a single file) gvim -O ../known/%c ../unknown/%c ../unneeded/%c
2. (on one, several, or — by default — all files) cd .. && ./do.sh %f:p %m
- For the first action, I gave the files an extension and made a
filextype
definition.
- For the second action, I made a “
command!
”.
I hope to avoid having to add an extension or type an Ex command.
I added the second action to the filextype
definition and added “nnoremap <cr> :file<cr>
”. It’s usable, because I usually use l
to switch between directories, but is obviously confusing.