From 98a83e13c70dbe6b2fe9b9f2fdd3ade8c78e9114 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Fri, 5 Jan 2018 20:43:32 -0600 Subject: [PATCH] .vimrc: Use vim-pandoc for syntax=markdown --- .vimrc | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index e7abf52..178b4ac 100644 --- a/.vimrc +++ b/.vimrc @@ -26,7 +26,6 @@ Plug 'kopischke/vim-fetch' Plug 'mileszs/ack.vim' Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'sjl/gundo.vim' -Plug 'tangledhelix/vim-octopress' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-git' Plug 'tpope/vim-scriptease' @@ -34,6 +33,8 @@ Plug 'tpope/vim-surround' Plug 'tpope/vim-unimpaired' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' +Plug 'vim-pandoc/vim-pandoc' +Plug 'vim-pandoc/vim-pandoc-syntax' Plug '~/.vim/bundle/autofolds' Plug '~/.vim/bundle/matchit' @@ -115,6 +116,11 @@ endfunction autocmd! User GoyoEnter nested call goyo_enter() autocmd! User GoyoLeave nested call goyo_leave() +" vim-pandoc +let g:pandoc#syntax#conceal#use = 0 " disable conceal pretty display +let g:pandoc#folding#fdc = 0 " disable foldcolumn +let g:pandoc#folding#level = 6 " open all folds by default + " --------------------------------------------------------------------------- " Terminal Settings " --------------------------------------------------------------------------- @@ -337,6 +343,12 @@ nmap ev :edit $MYVIMRC nmap sv :source $MYVIMRC " find merge conflict markers nmap fc /\v^[<=>]{7}( .*\|$) +" markdown headings +nnoremap h1 m`yypVr=`` +nnoremap h2 m`yypVr-`` +nnoremap h3 m`^i### ``4l +nnoremap h4 m`^i#### ``5l +nnoremap h5 m`^i##### ``6l " toggle hlsearch nmap hls :set hlsearch! hlsearch? " upper/lower word @@ -442,8 +454,6 @@ augroup vimrc_autocmds au Filetype gitcommit set tw=68 spell " don't use cindent for javascript au FileType javascript setlocal nocindent - " use Octopress syntax-highlighting for *.markdown files - au BufNewFile,BufRead *.markdown set filetype=octopress spell " in Makefiles, use real tabs not tabs expanded to spaces au FileType make setlocal noexpandtab augroup END -- 2.47.1