Explorar o código

Add Riotjs vim syntax, pandoc smart punctuation

Smart punctuation translates dots and dashes into proper dash and
ellipses characters, and quotes into their left/right variants.
Weiyi Lou %!s(int64=10) %!d(string=hai) anos
pai
achega
474e19a837
Modificáronse 3 ficheiros con 8 adicións e 1 borrados
  1. 1 0
      vim/plugins.vim
  2. 6 0
      vim/settings/filetype-specifics.vim
  3. 1 1
      vim/settings/pandoc.vim

+ 1 - 0
vim/plugins.vim

@@ -75,6 +75,7 @@ Plug 'scrooloose/syntastic'
 Plug 'sheerun/vim-polyglot'
 Plug 'vim-pandoc/vim-pandoc-syntax'
 Plug 'vim-scripts/yaml.vim'
+Plug 'nicklasos/vim-jsx-riot'
 " }}}
 
 " Discarded {{{

+ 6 - 0
vim/settings/filetype-specifics.vim

@@ -12,3 +12,9 @@ autocmd FileType litcoffee runtime ftplugin/coffee.vim
 " Compile and Watch should open vertical splits by default
 let coffee_compile_vert = 1
 let coffee_watch_vert = 1
+
+" RiotJS Tag support
+au BufNewFile,BufRead *.tag setlocal ft=javascript
+
+" Add spelling to markdown files
+autocmd BufRead,BufNewFile *.md setlocal spell

+ 1 - 1
vim/settings/pandoc.vim

@@ -10,4 +10,4 @@ let g:pandoc#syntax#conceal#use = 0
 
 " Write `docx` versions of `pandoc` files on save.
 let g:pandoc#command#autoexec_on_writes = 1
-let g:pandoc#command#autoexec_command = 'Pandoc docx'
+let g:pandoc#command#autoexec_command = 'Pandoc docx --smart'