0

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?

2

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, privacy policy and cookie policy

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