On 12/05/11 11:05 PM, Kevin Steinhardt wrote:
Forgive my ignorance once more, but is there a way to tell vim that I'd only like it to expand an abbreviation keyword if the file type is .htm, .html or .mkd?
:help :abbreviate-local You can combine that with a filetype plugin, e.g. put iab <buffer> ''l ‘ iab <buffer> ''r ’ in ~/.vim/ftplugin/html.vim or make them part of autocommands in your vimrc. I would use a function if taking the latter approach, to avoid confusing escaping. E.g.: function MyHTMLAbbrevs() iab <buffer> ''l ‘ iab <buffer> ''r ’ endfunction augroup MyAbbrevs autocmd! autocmd BufNewFile,BufRead *.htm,*.html,*.mkd call MyHTMLAbbrevs() augroup END Ben. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
