summaryrefslogtreecommitdiffstats
path: root/.config/nvim/langs.vim
blob: fe5aa25c113350cfe15db68a4e2a4bf2d46440ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 BufNewFile,BufRead *.ms,*.1,*.2,*.3,*.4,*.5,*.6,*.7,*.8,*.9
			\ set filetype=groff
autocmd FileType fish
			\ compiler fish
autocmd FileType perl
			\  setlocal com-=:# kp=perldoc\ -f
			\| compiler perl
autocmd BufNewFile,BufRead *.conf
			\ set filetype=conf
autocmd BufWritePost *.ms
			\ let pdf=fnamemodify(bufname('%'), ':r') . ".pdf"
			\| silent! execute "!nroff % -ms -Tpdf -Kutf8 > " . pdf
let g:perl_compiler_force_warnings = 1