vim: markdown preview
This commit is contained in:
@@ -20,8 +20,6 @@ set history=1000
|
|||||||
|
|
||||||
" Remap the <leader> to ,
|
" Remap the <leader> to ,
|
||||||
nnoremap <Space> <Nop>
|
nnoremap <Space> <Nop>
|
||||||
" let mapleader=','
|
|
||||||
" let maplocalleader = ','
|
|
||||||
let mapleader=' '
|
let mapleader=' '
|
||||||
|
|
||||||
" Includes ftplugin.vim which is responsible for filetype detection
|
" Includes ftplugin.vim which is responsible for filetype detection
|
||||||
@@ -92,6 +90,8 @@ Plug 'tpope/vim-vinegar'
|
|||||||
" ======== Experimental =================================
|
" ======== Experimental =================================
|
||||||
|
|
||||||
Plug 'w0rp/ale'
|
Plug 'w0rp/ale'
|
||||||
|
Plug 'iamcco/markdown-preview.nvim',
|
||||||
|
\ { 'do': ':call mkdp#util#install()', 'for': 'markdown', 'on': 'MarkdownPreview' }
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
@@ -360,6 +360,8 @@ if has("autocmd")
|
|||||||
au filetype help nnoremap <buffer><BS> <c-T>
|
au filetype help nnoremap <buffer><BS> <c-T>
|
||||||
au filetype help set nonumber
|
au filetype help set nonumber
|
||||||
|
|
||||||
|
au filetype markdown nnoremap <silent> <leader><leader> :MarkdownPreview<CR>
|
||||||
|
|
||||||
au BufNewFile,BufRead Capfile,Gemfile,Vagrantfile setl ft=ruby
|
au BufNewFile,BufRead Capfile,Gemfile,Vagrantfile setl ft=ruby
|
||||||
au BufNewFile,BufRead *.rabl,*.jbuilder setl ft=ruby
|
au BufNewFile,BufRead *.rabl,*.jbuilder setl ft=ruby
|
||||||
|
|
||||||
@@ -636,7 +638,7 @@ xmap \ <Plug>Commentary
|
|||||||
nmap \ <Plug>Commentary
|
nmap \ <Plug>Commentary
|
||||||
nmap \\ <Plug>CommentaryLine
|
nmap \\ <Plug>CommentaryLine
|
||||||
|
|
||||||
nnoremap <BS> :tabnew ~/iCloud/Notebook/index.md<CR>
|
nnoremap <silent> <BS> :tabnew ~/iCloud/Notebook/index.md<CR>
|
||||||
|
|
||||||
nnoremap <silent>vv <c-w>v
|
nnoremap <silent>vv <c-w>v
|
||||||
" nnoremap <silent>ss <c-w>s TODO:
|
" nnoremap <silent>ss <c-w>s TODO:
|
||||||
|
|||||||
Reference in New Issue
Block a user