diff --git a/.vimrc-gentoo b/.vimrc-gentoo index ec1bb4a..ebf4a0a 100644 --- a/.vimrc-gentoo +++ b/.vimrc-gentoo @@ -15,8 +15,9 @@ au BufWritePre * let &bex = '@' . strftime("%F.%H:%M") call plug#begin('~/.vim/plugged') Plug 'scrooloose/nerdtree', "{ 'on': 'NERDTreeToggle' } Plug 'nmante/vim-latex-live-preview' -Plug 'lervag/vimtex' +"Plug 'lervag/vimtex' Plug 'junegunn/goyo.vim' +Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} call plug#end() " Status-line @@ -82,6 +83,10 @@ colorscheme desert hi CursorLine cterm=NONE term=NONE ctermbg=NONE guibg=NONE hi CursorLine ctermbg=235 +" markdown preview +let g:mkdp_browser = '/home/yorune/.local/bin/browser-x' +let g:mkdp_echo_preview_url = 1 + " map nnoremap S :%s//g nnoremap ee :!mupdf $(echo % \| sed 's/tex$/pdf/') & disown @@ -99,3 +104,9 @@ autocmd BufWritePost *.tex silent! execute "!pdflatex --shell-escape -synctex=1 autocmd BufWritePost *.tex silent! execute "!latexmk -pdf -silent % > /dev/null" | redraw! autocmd BufWritePost *.tex silent! execute "!sudo rm -rf *.fls *.ilg *.nav *.snm *.toc *.idx *.lof *.lot *.synctex.gz *.aux *.fdb_latexmk *.fls *.log *.out > /dev/null" | redraw! autocmd BufWritePost *.tex silent! execute "!sudo pkill -HUP mupdf > /dev/null" | redraw! + +" mutt +autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80 +autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo | set bg=light +autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x! +autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!