Replaced vimwiki
With: * godlygeek/tabular * preservim/vim-markdown Inspired by [Writing Markdown in Vim](https://codeinthehole.com/tips/writing-markdown-in-vim/), in an effort to get better Markdown productivity.
This commit is contained in:
46
.vimrc
46
.vimrc
@@ -34,7 +34,6 @@ filetype plugin on
|
|||||||
" Native Markdown syntax highlighting for specified languages
|
" Native Markdown syntax highlighting for specified languages
|
||||||
let g:markdown_fenced_languages = ['html', 'python', 'sh', 'vim']
|
let g:markdown_fenced_languages = ['html', 'python', 'sh', 'vim']
|
||||||
|
|
||||||
|
|
||||||
" Open my personal helpfile
|
" Open my personal helpfile
|
||||||
nmap <leader>h :e $HOME/.vim/vim-keys-help.md<CR>
|
nmap <leader>h :e $HOME/.vim/vim-keys-help.md<CR>
|
||||||
|
|
||||||
@@ -99,10 +98,37 @@ Plug 'dense-analysis/ale'
|
|||||||
|
|
||||||
" VimWiki - VimWiki is a personal wiki for Vim
|
" VimWiki - VimWiki is a personal wiki for Vim
|
||||||
" [VimWiki](https://mkaz.blog/working-with-vim/vimwiki/)
|
" [VimWiki](https://mkaz.blog/working-with-vim/vimwiki/)
|
||||||
Plug 'vimwiki/vimwiki'
|
" Plug 'vimwiki/vimwiki'
|
||||||
|
" Removed 2024-02-22 - might not be using this after all
|
||||||
|
|
||||||
|
" Vim Markdown
|
||||||
|
" Suggestions from [Writing Markdown in Vim](https://codeinthehole.com/tips/writing-markdown-in-vim/)
|
||||||
|
" [Vim Markdown](https://github.com/preservim/vim-markdown)
|
||||||
|
Plug 'godlygeek/tabular'
|
||||||
|
Plug 'preservim/vim-markdown'
|
||||||
|
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
" ---------------------------------------------------------------------------------------------------------------------
|
||||||
|
" ==> Plugin Options
|
||||||
|
" Options and overrides for installed plugins
|
||||||
|
"
|
||||||
|
|
||||||
|
" Vim Markdown
|
||||||
|
" Set default conceallevel to hide links and some formatting
|
||||||
|
set conceallevel=2
|
||||||
|
" strikethrough
|
||||||
|
let g:vim_markdown_strikethrough = 1
|
||||||
|
" follow anchors - allow <ge> to follow anchors just like links
|
||||||
|
let g:vim_markdown_follow_anchor = 1
|
||||||
|
" multi-line bullets in markdown
|
||||||
|
" r - Continue comments when pressing Enter
|
||||||
|
" n - Recognize numbered lists
|
||||||
|
" t - autowrap lines using text width value
|
||||||
|
" j - remove a comment leader when joining lines.
|
||||||
|
autocmd FileType markdown set formatoptions=jlnrt
|
||||||
|
|
||||||
" ---------------------------------------------------------------------------------------------------------------------
|
" ---------------------------------------------------------------------------------------------------------------------
|
||||||
" ==> Colors
|
" ==> Colors
|
||||||
" Term GUI Colors
|
" Term GUI Colors
|
||||||
@@ -110,8 +136,8 @@ call plug#end()
|
|||||||
" Only the last uncommented colorscheme will be used
|
" Only the last uncommented colorscheme will be used
|
||||||
"colorscheme slate
|
"colorscheme slate
|
||||||
"colorscheme marklar
|
"colorscheme marklar
|
||||||
"colorscheme automation
|
colorscheme automation
|
||||||
colorscheme advantage
|
"colorscheme advantage
|
||||||
|
|
||||||
"highlight colorcolumn ctermbg=darkyellow guibg=darkyellow
|
"highlight colorcolumn ctermbg=darkyellow guibg=darkyellow
|
||||||
"highlight VertSplit ctermbg=black guibg=black ctermfg=darkgray guifg=darkgray
|
"highlight VertSplit ctermbg=black guibg=black ctermfg=darkgray guifg=darkgray
|
||||||
@@ -278,15 +304,15 @@ autocmd FileType netrw setl bufhidden=delete
|
|||||||
" ---------------------------------------------------------------------------------------------------------------------
|
" ---------------------------------------------------------------------------------------------------------------------
|
||||||
" ==> yaml stuff (https://lornajane.net/posts/2018/vim-settings-for-working-with-yaml)
|
" ==> yaml stuff (https://lornajane.net/posts/2018/vim-settings-for-working-with-yaml)
|
||||||
"
|
"
|
||||||
autocmd BufNewFile,BufReadPost *.{yaml,yml} set filetype=yaml
|
"autocmd BufNewFile,BufReadPost *.{yaml,yml} set filetype=yaml
|
||||||
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
"autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
||||||
|
|
||||||
" ---------------------------------------------------------------------------------------------------------------------
|
" ---------------------------------------------------------------------------------------------------------------------
|
||||||
" ==> VimWiki
|
" ==> VimWiki
|
||||||
" Use MarkDown
|
" Use MarkDown
|
||||||
" Default directory
|
" Default directory
|
||||||
let g:vimwiki_list = [{'path': '$HOME/repos/thevimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
|
"let g:vimwiki_list = [{'path': '$HOME/repos/thevimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
|
||||||
let g:vimwiki_global_ext = 0
|
"let g:vimwiki_global_ext = 0
|
||||||
let g:vimwiki_autowriteall = 1
|
"let g:vimwiki_autowriteall = 1
|
||||||
au FileType vimwiki setlocal shiftwidth=6 tabstop=6 noexpandtab
|
"au FileType vimwiki setlocal shiftwidth=6 tabstop=6 noexpandtab
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user