Add map to preview markdown file with grip

This commit is contained in:
gardouille 2019-07-08 18:33:50 +02:00
parent a4cfa56fe1
commit 04ff9e9a86
Signed by: gardouille
GPG Key ID: E759BAA22501AF32

6
vimrc
View File

@ -173,6 +173,11 @@ noremap <F5> :set paste!<cr>:set paste?<cr>
" Remap de Echap sur jj
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 :
@ -185,7 +190,6 @@ imap jj <ESC>
" git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/vundle
set nocompatible " be iMproved
""" User interface {{{
""" Custom highlighting, where NONE uses terminal background {{{
function! CustomHighlighting()