On Mon 4-Dec-06 5:56pm -0600, C.G.Senthilkumar. wrote: > I use the following autocmd in my ~/.vimrc to load a source file with my > personal vim mappings while editing a tex file: > > autocmd FileType tex source ~/Dot.vilatexrc > > This works fine. However, the mappings continue to exist even after I > open a different filetype without restarting vim. Is there an "unsource" > command? If yes, how do I tell vim to do that each time I open another > filetype.
You could make those mappings local. When you delete a buffer with local mappings, those mappings are cleared. See :help map-local -- Best regards, Bill