diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/nvim/langs.vim | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/.config/nvim/langs.vim b/.config/nvim/langs.vim index e70d714..fb936b7 100644 --- a/.config/nvim/langs.vim +++ b/.config/nvim/langs.vim @@ -1,20 +1,19 @@ let g:asmsyntax = 'asm' let perl_include_pod = 1 autocmd BufNewFile,BufRead *.c - \ set - \ filetype=c + \ set filetype=c autocmd BufNewFile,BufRead *.h - \ set - \ filetype=c + \ set filetype=c autocmd BufNewFile,BufRead *.cxx - \ set - \ filetype=cpp + \ set filetype=cpp autocmd BufNewFile,BufRead *.hxx - \ set - \ filetype=cpp + \ set filetype=cpp autocmd FileType fish \ compiler fish autocmd FileType perl \ setlocal com-=:# kp=perldoc\ -f \| compiler perl +autocmd BufWritePost *.ms + \ let pdf=fnamemodify(bufname('%'), ':r') . ".pdf" + \| silent! execute "!nroff % -ms -Tpdf -Kutf8 > " . pdf let g:perl_compiler_force_warnings = 1 |