summaryrefslogtreecommitdiffstats
path: root/.config/nvim/langs.vim
blob: fb936b7e99b4135db0db2b1acb6a0f35a005a88c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
let g:asmsyntax = 'asm'
let perl_include_pod = 1
autocmd BufNewFile,BufRead *.c
			\ set filetype=c
autocmd BufNewFile,BufRead *.h
			\ set filetype=c
autocmd BufNewFile,BufRead *.cxx
			\ set filetype=cpp
autocmd BufNewFile,BufRead *.hxx
			\ 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