From 04ff9e9a86bcb4b2be5f6222fac5deca96cb78ba Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 8 Jul 2019 18:33:50 +0200 Subject: [PATCH] Add map to preview markdown file with grip --- vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index e935b54..e2788e7 100644 --- a/vimrc +++ b/vimrc @@ -173,6 +173,11 @@ noremap :set paste!:set paste? " Remap de Echap sur jj imap jj +imap -j :silent! nohls + +" Preview current markdown file in browser +imap :w:!grip "%" --export - > /tmp/apercu.html ; qutebrowser "file:///tmp/apercu.html" +nmap :w:!grip "%" --export - > /tmp/apercu.html ; qutebrowser "file:///tmp/apercu.html" """""""""""""""""""""""""""""""""""""""""""""""" " Vim-Scripts : @@ -185,7 +190,6 @@ imap jj " 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()