summaryrefslogtreecommitdiffstats
path: root/.config/nvim/langs.vim
blob: a2ad1f7f0515f897fbdf49730ec10741dfb7b659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 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