Add map to preview markdown file with grip

This commit is contained in:
Jeremy Gardais 2019-07-08 18:33:50 +02:00
parent a4cfa56fe1
commit 04ff9e9a86
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 5 additions and 1 deletions

6
vimrc
View File

@ -173,6 +173,11 @@ noremap <F5> :set paste!<cr>:set paste?<cr>
" Remap de Echap sur jj " Remap de Echap sur jj
imap jj <ESC> imap jj <ESC>
imap <ctrl>-j <ESC>:silent! nohls<CR>
" Preview current markdown file in browser
imap <C-m> <ESC>:w<CR>:!grip "%" --export - > /tmp/apercu.html ; qutebrowser "file:///tmp/apercu.html" <CR><CR>
nmap <C-m> <ESC>:w<CR>:!grip "%" --export - > /tmp/apercu.html ; qutebrowser "file:///tmp/apercu.html" <CR><CR>
"""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""
" Vim-Scripts : " Vim-Scripts :
@ -185,7 +190,6 @@ imap jj <ESC>
" git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/vundle " git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/vundle
set nocompatible " be iMproved set nocompatible " be iMproved
""" User interface {{{ """ User interface {{{
""" Custom highlighting, where NONE uses terminal background {{{ """ Custom highlighting, where NONE uses terminal background {{{
function! CustomHighlighting() function! CustomHighlighting()