New plug to preview markdown

This commit is contained in:
Jeremy Gardais 2021-10-22 11:43:04 +02:00
parent fb2c601fb4
commit e20133878b
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 28 additions and 5 deletions

33
vimrc
View File

@ -129,10 +129,6 @@ map <leader>l <C-w>l
nmap <leader>s :w !sudo tee %<cr> nmap <leader>s :w !sudo tee %<cr>
imap <leader>s <esc>:w !sudo tee %<cr> imap <leader>s <esc>:w !sudo tee %<cr>
" Preview current markdown file in browser
imap <leader>mm <ESC>:w<CR>:!grip "%" --export - > /tmp/apercu.html ; qutebrowser "file:///tmp/apercu.html" <CR><CR>
nmap <leader>mm <ESC>:w<CR>:!grip "%" --export - > /tmp/apercu.html ; qutebrowser "file:///tmp/apercu.html" <CR><CR>
"""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""
" UN PEU D'EXERCICE " UN PEU D'EXERCICE
" H pour <- " H pour <-
@ -542,6 +538,26 @@ let g:tagbar_type_puppet = {
" https://github.com/tpope/vim-fugitive " https://github.com/tpope/vim-fugitive
"Plug '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 <leader>mm
let vim_markdown_preview_hotkey='<leader>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: " openssl:
"########################## "##########################
@ -613,6 +629,9 @@ call plug#begin('~/.vim/plugged')
" Markdown syntax " Markdown syntax
Plug 'plasticboy/vim-markdown' Plug 'plasticboy/vim-markdown'
" Markdown preview
Plug 'JamshedVesuna/vim-markdown-preview'
" A pretty statusline, bufferline integration " A pretty statusline, bufferline integration
Plug 'itchyny/lightline.vim' Plug 'itchyny/lightline.vim'
Plug 'bling/vim-bufferline' Plug 'bling/vim-bufferline'
@ -700,6 +719,7 @@ iabbrev stp s'il-te-plaît
iabbrev pcq parce que iabbrev pcq parce que
" hand emoticon {{{ " hand emoticon {{{
iabbrev :ok: 👌
iabbrev :ok_hand: 👌 iabbrev :ok_hand: 👌
iabbrev :+1: 👍 iabbrev :+1: 👍
iabbrev :-1: 👎 iabbrev :-1: 👎
@ -711,7 +731,10 @@ iabbrev :v: ✌️
iabbrev :V: ✌ iabbrev :V: ✌
" }}} " }}}
" Smiley {{{ " Smiley {{{
iabbrev :-_-: 😑 iabbrev :D: 😀
iabbrev :grin: 😀
iabbrev :grinning: 😀
iabbrev -__- 😑
iabbrev :demon_happy: 😈 iabbrev :demon_happy: 😈
iabbrev :devil_happy: 😈 iabbrev :devil_happy: 😈
iabbrev :happy_demon: 😈 iabbrev :happy_demon: 😈