New plug to preview markdown
This commit is contained in:
parent
fb2c601fb4
commit
e20133878b
33
vimrc
33
vimrc
@ -129,10 +129,6 @@ map <leader>l <C-w>l
|
||||
nmap <leader>s :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
|
||||
" 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 <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:
|
||||
"##########################
|
||||
@ -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: 😈
|
||||
|
Loading…
Reference in New Issue
Block a user