From d586ad2480561363c6a4eb6af818c8d59d6923ce Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 29 Sep 2019 16:02:21 +0200 Subject: Switched to firefox and did vim stuff --- vim/.vimrc | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) (limited to 'vim/.vimrc') diff --git a/vim/.vimrc b/vim/.vimrc index a9c191e..02db41d 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -40,16 +40,23 @@ set shellslash " File support Plugin 'cespare/vim-toml' + Plugin 'vim-scripts/TagHighlight' + Plugin 'lervag/vimtex' + Plugin 'LnL7/vim-nix' - " Tagbar use - Plugin 'majutsushi/tagbar' - + Plugin 'junegunn/vim-easy-align' call vundle#end() " required filetype plugin indent on " required colorscheme rakr +" Start interactive EasyAlign in visual mode (e.g. vipga) +xmap ga (EasyAlign) + +" Start interactive EasyAlign for a motion/text object (e.g. gaip) +nmap ga (EasyAlign) + " Completion " let g:LanguageClient_serverCommands = { " \ 'rust': ['/usr/bin/rustup', 'run', 'stable', 'rls' ], @@ -131,3 +138,31 @@ set completeopt=menuone,preview autocmd BufRead,BufNewFile *.asc set filetype=asciidoc autocmd FileType python setlocal completeopt-=preview +" Highlightning + let g:DoNotGenerateTags = 1 + " Remove pink color from functions + highlight clear Function + " Remove color from struct members + highlight link Member NonText + + +" Spell check + set spelllang=en + autocmd FileType tex set spell + +" Latex support + let g:vimtex_quickfix_blgparser = {'disable': 1} + let g:vimtex_quickfix_open_on_warning = 0 + let g:vimtex_compiler_latexmk = { + \ 'backend' : 'nvim', + \ 'background' : 0, + \ 'build_dir' : '', + \ 'callback' : 1, + \ 'continuous' : 0, + \ 'executable' : 'latexmk', + \ 'hooks' : [], + \ 'options' : [ + \ '-file-line-error', + \ '-synctex=1', + \ ], + \} -- cgit v1.2.3