From caec6bca4ccd486b658052c151c719a31a8577d9 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sun, 7 Feb 2021 16:21:39 -0500 Subject: Organizing vimrc and removing bloat --- .config/nvim/init.vim | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 3b9b644..66c1466 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -47,8 +47,6 @@ Plug 'turbio/bracey.vim', { 'for': [ 'html', 'stylesheet', 'javascript'] } Plug 'ChausseBenjamin/friffle-vim' " Elly colorscheme Plug 'ryuta69/elly.vim' -" Nord colorscheme -Plug 'arcticicestudio/nord-vim' " Vim Fugitive Plug 'tpope/vim-fugitive' " Vim-Surround @@ -111,18 +109,21 @@ let g:deoplete#enable_at_startup = 1 set wrap set lbr +" Custom semicolon leader +let mapleader=";" + " Spelling set complete+=kspell " Better Spell Checking set spl=fr " French prose " Tag Editing inoremap t <++> -inoremap :; /<++>"_c4l +inoremap : /<++>"_c4l -" Space is my leader -nmap +" Quickly save +nnoremap w :update -" Logical yanks +" Logical way to Y ank nnoremap Y y$ " Easily escape terminal mode @@ -136,13 +137,22 @@ nnoremap l " Saving and quitting buffers nnoremap ZF ZQ -nnoremap s :update +nnoremap w :update " Remove trailing white spaces autocmd BufWritePre * %s/\s\+$//e " }}} +" Workflow specific {{{ + +" 'o'pen pdf for the current document +nnoremap o :!opout % +nnoremap c :update \| :!compiler % +nnoremap r :update \| :!compiler % \| :!sage %:r.sagetex.sage && compiler % + +" }}} + " Plugin related {{{ " Todoist.nvim @@ -186,6 +196,8 @@ let g:user_emmet_leader_key=',' nnoremap :VimtexTocToggle " Underscore errors let g:tex_no_error=1 +" Consistent conceal highlighting + hi clear Conceal " Nvim-R " Folding -- cgit v1.2.3