diff --git a/README.md b/README.md index 1c94978..cb9074b 100644 --- a/README.md +++ b/README.md @@ -86,19 +86,23 @@ add snippets/ruby-1.9.snippets (1.9 only) then configure github.com/garbas/vim-snipmate this way: - let g:snipMate = {} - let g:snipMate.scope_aliases = {} - let g:snipMate.scope_aliases['ruby'] = 'ruby,ruby-rails,ruby-1.9' + +```vim +let g:snipMate = {} +let g:snipMate.scope_aliases = {} +let g:snipMate.scope_aliases['ruby'] = 'ruby,ruby-rails,ruby-1.9' +``` or github.com/MarcWeber/UltiSnips this way: - let g:UltiSnips = {} - - let g:UltiSnips.snipmate_ft_filter = { - \ 'default' : {'filetypes': ["FILETYPE"] }, - \ 'ruby' : {'filetypes': ["ruby", "ruby-rails", "ruby-1.9"] }, +```vim +let g:UltiSnips = {} +let g:UltiSnips.snipmate_ft_filter = { + \ 'default' : {'filetypes': ["FILETYPE"] }, + \ 'ruby' : {'filetypes': ["ruby", "ruby-rails", "ruby-1.9"] }, +``` If it happens that you work on a project requiring ruby-1.8 snippets instead, consider using vim-addon-local-vimrc and override the filetypes.