When I am doing

inoremap "" ``"<++><esc>4hi

it is working perfectly.

But, what I actually want is:

inoremap "" ""<++><esc>4hi
au FileType *.tex inoremap "" ``"<++><esc>4hi

Now, with this setting, in foo.tex, I am still getting the inoremap, not the ``"" for the tex file.

What I am doing wrong here?

1 Answer 1


The pat for the FileType autocommand event should be a file type, not a file name. Try this instead:

au FileType tex inoremap "" ``"<++><esc>4hi

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.