For files of a certain filetype
, specifying "file-type-specific" mappings is simple.
If Vim opens a fill and return
filetype=python
after issuing command:set filetype?
through command-line (native to Vim), then python-specific mappings could be defined directly through~/ftplugin/python.vim
;However, where shall I specify the mappings for files that return
filetype=
after issuing command:set filetype?
. This applies to cases where one does not give a file any extension.