Add map to preview markdown file with grip
This commit is contained in:
		
							parent
							
								
									a4cfa56fe1
								
							
						
					
					
						commit
						04ff9e9a86
					
				
							
								
								
									
										6
									
								
								vimrc
								
								
								
								
							
							
						
						
									
										6
									
								
								vimrc
								
								
								
								
							|  | @ -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() | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue