Make vim better for markdown editing
- Make vim-pandoc handle following md links wiki-style - Bring back concealing of formatting
This commit is contained in:
parent
58a993d84b
commit
9ac6a6ad11
2 changed files with 11 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
" Stop excessive concealing of markdown formatting markers
|
||||
:set conceallevel=0
|
||||
|
||||
" Remove the gutter that shows markdown nesting level by default
|
||||
:set foldcolumn=0
|
||||
|
||||
" Auto chdir to where the pandoc file is opened so pandoc calls and
|
||||
" markdown hypertext links work dir-relative.
|
||||
:lchdir %:p:h
|
||||
|
|
7
.vimrc
7
.vimrc
|
@ -90,6 +90,13 @@ let g:pandoc#syntax#codeblocks#embeds#langs = ["python", "bash=sh", "sh"]
|
|||
let g:pandoc#syntax#conceal#blacklist = ["ellipses", "quotes"]
|
||||
let g:pandoc#syntax#conceal#urls = 1
|
||||
|
||||
" Create the file if you follow an orphaned link
|
||||
let g:pandoc#hypertext#create_if_no_alternates_exists = 1
|
||||
|
||||
" Make link follows split horizontally since most of my terms are tall
|
||||
" Also work around a netrw bug that opens every no-modify
|
||||
let g:pandoc#hypertext#split_open_cmd = "botright split +set\\ modifiable"
|
||||
|
||||
" Unfold everything by default
|
||||
set foldlevel=99
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue