hello Eli, On Fri, Apr 18, 2025 at 12:08:56AM -0400, Eli the Bearded wrote: > > autocommand suffices. It could even map more than one key, perhaps. > > I use autocommands like: > > " Set up macros for Rnmail > autocmd BufRead .letter.* :so ~eli/.lettervimrc > " > " Set up macros for Pnews > autocmd BufRead .article.* :so ~eli/.news_vimrc
you're so close to a package you can share with the community: ~/.vim/pack/start/Pnews/ftplugin/pnews.vim # your news_vimrc ~/.vim/pack/start/Pnews/ftdetect/pnews.vim # autocmd BufRead .article.* setf pnews regards -- Marc Chantreux -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/aAH_zLvkOpiTqqFN%40prometheus.