I know about
autocmd FileType <TYPE> inoremap <MAPPING>
for files like *.html.
But i would like to create some keybinds for within my .vimrc
like this:
autocmd FileType vimrc inoremap ;; autocmd<Space>FileType ...
This should obviously only work inside the vimrc File as it does not make sense elsewhere. Using vimrc
as FileType does not work though. Any suggestions?
EDIT:
I have also tried
au Bufread,BufNewFile *.vimrc setfiletype vimrc
and
au Bufread,BufNewFile .vimrc setfiletype vimrc
which works fine for some custom filetypes I use, but not for .vimrc. I am aware that dot-files are not the same as file endings, but it was worth a shot.