Configured vimpager to use concealed markdown for reading purposes

This commit is contained in:
Kevin MacMartin 2014-07-30 02:34:26 -04:00
parent 7c39a11401
commit 775770c3ee
5 changed files with 11 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,4 +1,6 @@
add-submodule
delete-submodule
add-pager-submodule
delete-pager-submodule
vim/bundle.user/*
vim/vimrc.user

3
.gitmodules vendored
View file

@ -94,3 +94,6 @@
[submodule "vim/bundle/tabular"]
path = vim/bundle/tabular
url = https://github.com/godlygeek/tabular
[submodule "vim/bundle.pager/vim-markdown-concealed"]
path = vim/bundle.pager/vim-markdown-concealed
url = https://github.com/prurigro/vim-markdown-concealed

@ -0,0 +1 @@
Subproject commit f1858c68377b5a57b5642efdc346db0ddae95575

View file

@ -42,7 +42,7 @@ endif
"filtype specific settings
autocmd FileType gitcommit,notes,mail,notmuch,mkd,text,taskreport setlocal nonumber spell nolist wrap linebreak breakat&vim "some defautls for word processing
autocmd Filetype mkd setlocal breakat-=* "prevent breaking *s from words to linewrap in markdown
autocmd Filetype mkd,mkdc setlocal breakat-=* "prevent breaking *s from words to linewrap in markdown
autocmd FileType help* wincmd L "help windows always open vertically
autocmd FileType help* vertical resize 80 "set the window size to 80 cols
autocmd FileType help* setlocal nocursorline "remove the horizontal cursor line

View file

@ -26,6 +26,10 @@ set clipboard+=unnamed "use '*' reg
if has('unnamedplus')|set clipboard+=unnamedplus|endif "if exists, use '+' reg
set autoread "track file changes
autocmd CursorHold * checktime "use CursorHold events to trigger checktime
set conceallevel=2 "enable the conceal feature to hide unnecessary elements
" Override Filetypes:
runtime bundle.pager/vim-markdown-concealed/ftdetect/mkdc.vim
" Mappings:
" Mouse