Add syntax highlighting to README.md
This commit is contained in:
parent
93c3e46b9f
commit
2f72d327ec
@ -86,19 +86,23 @@ add snippets/ruby-1.9.snippets (1.9 only)
|
|||||||
|
|
||||||
then configure github.com/garbas/vim-snipmate this way:
|
then configure github.com/garbas/vim-snipmate this way:
|
||||||
|
|
||||||
|
|
||||||
|
```vim
|
||||||
let g:snipMate = {}
|
let g:snipMate = {}
|
||||||
let g:snipMate.scope_aliases = {}
|
let g:snipMate.scope_aliases = {}
|
||||||
let g:snipMate.scope_aliases['ruby'] = 'ruby,ruby-rails,ruby-1.9'
|
let g:snipMate.scope_aliases['ruby'] = 'ruby,ruby-rails,ruby-1.9'
|
||||||
|
```
|
||||||
|
|
||||||
or github.com/MarcWeber/UltiSnips this way:
|
or github.com/MarcWeber/UltiSnips this way:
|
||||||
|
|
||||||
|
|
||||||
|
```vim
|
||||||
let g:UltiSnips = {}
|
let g:UltiSnips = {}
|
||||||
|
|
||||||
let g:UltiSnips.snipmate_ft_filter = {
|
let g:UltiSnips.snipmate_ft_filter = {
|
||||||
\ 'default' : {'filetypes': ["FILETYPE"] },
|
\ 'default' : {'filetypes': ["FILETYPE"] },
|
||||||
\ 'ruby' : {'filetypes': ["ruby", "ruby-rails", "ruby-1.9"] },
|
\ 'ruby' : {'filetypes': ["ruby", "ruby-rails", "ruby-1.9"] },
|
||||||
|
```
|
||||||
|
|
||||||
If it happens that you work on a project requiring ruby-1.8 snippets instead,
|
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.
|
consider using vim-addon-local-vimrc and override the filetypes.
|
||||||
|
Loading…
Reference in New Issue
Block a user