Explorar el Código

Add pandoc omni-completion and text wrapping

80 characters is the default width for this vimrc and Goyo.
Weiyi Lou hace 9 años
padre
commit
4298938395
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      vim/settings/pandoc.vim

+ 8 - 0
vim/settings/pandoc.vim

@@ -8,8 +8,16 @@ let g:pandoc#filetypes#pandoc_markdown = 0
 " complement Pandoc.
 let g:pandoc#syntax#conceal#use = 0
 
+" Hard-wrap lines to 80 characters, except for headers and code blocks.
+let g:pandoc#formatting#mode = 'hA'
+let g:pandoc#formatting#textwidth = 80
+
 " Write `docx` versions of `pandoc` files on save.
 let g:pandoc#command#autoexec_on_writes = 1
 let g:pandoc#command#autoexec_command = 'Pandoc docx --smart'
 
+" Correct spelling using first suggestion from spell check.
 map <leader>z 1z=
+
+" Omni-complete from bibliographic sources e.g. bibtex. Citekeys start with '@'.
+autocmd FileType pandoc let b:vcm_omni_pattern = '@'