summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-13 16:35:40 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-13 16:35:40 +0100
commit41b7856828234b2807a58c7f985d403a1e45ae33 (patch)
tree1e16efb4bb77686f798c2a0d017bda987b8f7453 /.config/nvim
parentRemoved coc.vim bullshit (diff)
downloaddotfiles-bsd-41b7856828234b2807a58c7f985d403a1e45ae33.tar.gz
dotfiles-bsd-41b7856828234b2807a58c7f985d403a1e45ae33.tar.bz2
dotfiles-bsd-41b7856828234b2807a58c7f985d403a1e45ae33.tar.xz
dotfiles-bsd-41b7856828234b2807a58c7f985d403a1e45ae33.tar.zst
dotfiles-bsd-41b7856828234b2807a58c7f985d403a1e45ae33.zip
Added vim function to auto export ms files to pdf
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/langs.vim15
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