From 4d64f4c6df4e3d1fe1ede1a84a4dce4cfccacf13 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 9 Jul 2019 08:56:41 +0200 Subject: [PATCH] Fix markdown preview mapping with MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cause C-m is also the enter key… --- vimrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index f203906..c0c7202 100644 --- a/vimrc +++ b/vimrc @@ -134,6 +134,10 @@ map l l nmap s :w !sudo tee % imap s :w !sudo tee % +" Preview current markdown file in browser +imap mm :w:!grip "%" --export - > /tmp/apercu.html ; qutebrowser "file:///tmp/apercu.html" +nmap mm :w:!grip "%" --export - > /tmp/apercu.html ; qutebrowser "file:///tmp/apercu.html" + """""""""""""""""""""""""""""""""""""""""""""""" " UN PEU D'EXERCICE " H pour <- @@ -175,10 +179,6 @@ noremap :set paste!:set paste? imap jj imap -" 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 : """"""""""""""""""""""""""""""""""""""""""""""""