Some markdown mappings
This commit is contained in:
7
_vimrc
7
_vimrc
@@ -168,6 +168,13 @@ augroup pandoc_syntax
|
||||
au! BufNewFile,BufFilePre,BufRead *.md set filetype=markdown.pandoc
|
||||
augroup END
|
||||
|
||||
" Markdown table formatting
|
||||
fun FormatMarkdownDashes()
|
||||
s/\v([ -])@<= ([ -])@=/-/g
|
||||
endfun
|
||||
nnoremap ga- :call FormatMarkdownDashes()<enter>
|
||||
nmap ga\| gaip*\|
|
||||
|
||||
nnoremap <buffer> <CR> <C-]>
|
||||
map <Tab> >>
|
||||
map <S-Tab> <<
|
||||
|
||||
Reference in New Issue
Block a user