Fix markdown preview mapping with <leader>

Cause C-m is also the enter key…
This commit is contained in:
gardouille 2019-07-09 08:56:41 +02:00
parent 1dc133f28a
commit 4d64f4c6df
Signed by: gardouille
GPG Key ID: E759BAA22501AF32

8
vimrc
View File

@ -134,6 +134,10 @@ 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 <-
@ -175,10 +179,6 @@ noremap <F5> :set paste!<cr>:set paste?<cr>
imap jj <ESC>
imap <C-j> <ESC>
" 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 :
""""""""""""""""""""""""""""""""""""""""""""""""