From 775770c3ee9465c1683ca8e7494f3e4bbd19f2e9 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 30 Jul 2014 02:34:26 -0400 Subject: [PATCH] Configured vimpager to use concealed markdown for reading purposes --- .gitignore | 2 ++ .gitmodules | 3 +++ vim/bundle.pager/vim-markdown-concealed | 1 + vim/config/after.vim | 2 +- vim/config/vimpager.vim | 4 ++++ 5 files changed, 11 insertions(+), 1 deletion(-) create mode 160000 vim/bundle.pager/vim-markdown-concealed diff --git a/.gitignore b/.gitignore index 2cbed57..91c1930 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ add-submodule delete-submodule +add-pager-submodule +delete-pager-submodule vim/bundle.user/* vim/vimrc.user diff --git a/.gitmodules b/.gitmodules index 5c97627..bd56b42 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/vim/bundle.pager/vim-markdown-concealed b/vim/bundle.pager/vim-markdown-concealed new file mode 160000 index 0000000..f1858c6 --- /dev/null +++ b/vim/bundle.pager/vim-markdown-concealed @@ -0,0 +1 @@ +Subproject commit f1858c68377b5a57b5642efdc346db0ddae95575 diff --git a/vim/config/after.vim b/vim/config/after.vim index b51b4ea..e7b05c3 100644 --- a/vim/config/after.vim +++ b/vim/config/after.vim @@ -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 diff --git a/vim/config/vimpager.vim b/vim/config/vimpager.vim index a031126..919d533 100644 --- a/vim/config/vimpager.vim +++ b/vim/config/vimpager.vim @@ -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