Template Improvements
Added a Reading List header template and added some functionality to the Markdown header making it easier to add headers to existing files
This commit is contained in:
7
.vimrc
7
.vimrc
@@ -31,8 +31,6 @@ augroup end
|
||||
syntax enable
|
||||
filetype plugin on
|
||||
|
||||
" Native Markdown syntax highlighting for specified languages
|
||||
let g:markdown_fenced_languages = ['html', 'python', 'sh', 'vim', 'yaml']
|
||||
|
||||
" Open my personal helpfile
|
||||
nmap <leader>h :e $HOME/.vim/vim-keys-help.md<CR>
|
||||
@@ -119,6 +117,8 @@ call plug#end()
|
||||
" Options and overrides for installed plugins
|
||||
|
||||
" Vim Markdown
|
||||
" Markdown syntax highlighting for specified languages
|
||||
let g:markdown_fenced_languages = ['html', 'python', 'ini', 'vim', 'bash', 'yaml']
|
||||
" Set default conceallevel to hide links and some formatting
|
||||
set conceallevel=2
|
||||
" strikethrough
|
||||
@@ -324,6 +324,9 @@ nnoremap ,begend :-1read $HOME/.vim/templates/begend<CR>jA
|
||||
" section shell script header
|
||||
"nnoremap ,sh :-1read $HOME/.vim/templates/sh<CR>jA
|
||||
|
||||
" section readinglist header
|
||||
nnoremap ,rl :0read $HOME/.vim/templates/readinglist<CR> <bar> :1<CR>dd $
|
||||
|
||||
" section markdown file header
|
||||
nnoremap ,md :0read $HOME/.vim/templates/md<CR> <bar> :1<CR>dd <bar> :%s/title/\=expand('%:t:r')/g<CR>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user