From 9e5058fa72727cad5c6933b8a748e264af74ca3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Thu, 27 Aug 2020 09:20:53 +0200 Subject: [PATCH] Added markdown-preview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .vimrc-gentoo | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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!