Fix markdown preview mapping with <leader>
Cause C-m is also the enter key…
This commit is contained in:
parent
1dc133f28a
commit
4d64f4c6df
8
vimrc
8
vimrc
@ -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 :
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
Loading…
Reference in New Issue
Block a user