From f9fa4661fcc0b2344509966ab74d07eca6b124dc Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Thu, 18 Jun 2020 13:08:01 -0400 Subject: updated nvim --- nvim/.config/nvim/init.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'nvim/.config') diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 896d282..67e8384 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -86,6 +86,20 @@ call plug#end() noremap l :set list! set list +" Latex settings +" Compile document, be it groff/LaTeX/markdown/etc. + map c :w! \| !compiler % + +" Open corresponding .pdf/.html or preview + map p :!opout % + +" Runs a script that cleans out tex build files whenever I close out of a .tex file. + autocmd VimLeave *.tex !texclear % + +" Ensure files are read as what I want: + let g:vimwiki_ext2syntax = {'.Rmd': 'markdown', '.rmd': 'markdown','.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'} + autocmd BufRead,BufNewFile *.tex set filetype=tex + " Ansible settings au BufRead,BufNewFile */playbooks/*.yaml set filetype=yaml.ansible au BufRead,BufNewFile */tasks/*.yaml set filetype=yaml.ansible @@ -136,3 +150,8 @@ call plug#end() let g:UltiSnipsJumpForwardTrigger = "" let g:UltiSnipsJumpBackwardTrigger = "" let g:UltiSnipsRemoveSelectModeMappings = 0 + +" Turns off highlighting on the bits of code that are changed, so the line that is changed is highlighted but the actual text that has changed stands out on the line and is readable. +if &diff + highlight! link DiffText MatchParen +endif -- cgit v1.2.3