diff --git a/vimrc b/vimrc index 0a5abc9..12d70e3 100644 --- a/vimrc +++ b/vimrc @@ -129,10 +129,6 @@ map l l nmap s :w !sudo tee % imap s :w !sudo tee % -" Preview current markdown file in browser -imap mm :w:!grip "%" --export - > /tmp/apercu.html ; qutebrowser "file:///tmp/apercu.html" -nmap mm :w:!grip "%" --export - > /tmp/apercu.html ; qutebrowser "file:///tmp/apercu.html" - """""""""""""""""""""""""""""""""""""""""""""""" " UN PEU D'EXERCICE " H pour <- @@ -542,6 +538,26 @@ let g:tagbar_type_puppet = { " https://github.com/tpope/vim-fugitive "Plug 'tpope/vim-fugitive' +"########################## +" vim-markdown-preview: +"########################## +" https://github.com/JamshedVesuna/vim-markdown-preview +"Plug 'JamshedVesuna/vim-markdown-preview' +" Render markdown files in local + +" Change preview hotkey to mm +let vim_markdown_preview_hotkey='mm' + +" preview_toggle +" 0 (default): Preview with hotkey mapping +" 2 : Preview on buffer write +let vim_markdown_preview_toggle=0 + +" Preview with Github rendering tool (grip) +" 0 (default): Don't use Github +" 1 : Render with GitHub flavoured markdown +"let vim_markdown_preview_github=1 + "########################## " openssl: "########################## @@ -613,6 +629,9 @@ call plug#begin('~/.vim/plugged') " Markdown syntax Plug 'plasticboy/vim-markdown' + " Markdown preview + Plug 'JamshedVesuna/vim-markdown-preview' + " A pretty statusline, bufferline integration Plug 'itchyny/lightline.vim' Plug 'bling/vim-bufferline' @@ -700,6 +719,7 @@ iabbrev stp s'il-te-plaît iabbrev pcq parce que " hand emoticon {{{ +iabbrev :ok: 👌 iabbrev :ok_hand: 👌 iabbrev :+1: 👍 iabbrev :-1: 👎 @@ -711,7 +731,10 @@ iabbrev :v: ✌️ iabbrev :V: ✌️ " }}} " Smiley {{{ -iabbrev :-_-: 😑 +iabbrev :D: 😀 +iabbrev :grin: 😀 +iabbrev :grinning: 😀 +iabbrev -__- 😑 iabbrev :demon_happy: 😈 iabbrev :devil_happy: 😈 iabbrev :happy_demon: 😈