Hello, * On Sat, Mar 10, 2007 at 07:59:21AM +0000, Eric Leenman <[EMAIL PROTECTED]> wrote: > How do you making inoremap filetype depend? > What I want is > > if (filetype == vim) then > inoremap @a AAAAA > else if (filetype == c) > inoremap @a aaaaaa > else if (filetype == vhdl)
I use ftplugins, and buffer local mappings -> " {rtp}/ftplugin/vim/at_a.vim inoremap <buffer> @a AAAAA " {rtp}/ftplugin/c/at_a.vim HTH, -- Luc Hermitte http://hermitte.free.fr/vim/