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:
2024-02-22 14:35:39 -05:00
parent eaa36969c3
commit 36bf857053

46
.vimrc
View File

@@ -34,7 +34,6 @@ filetype plugin on
" Native Markdown syntax highlighting for specified languages
let g:markdown_fenced_languages = ['html', 'python', 'sh', 'vim']
" Open my personal helpfile
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](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()
" ---------------------------------------------------------------------------------------------------------------------
" ==> 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
" Term GUI Colors
@@ -110,8 +136,8 @@ call plug#end()
" Only the last uncommented colorscheme will be used
"colorscheme slate
"colorscheme marklar
"colorscheme automation
colorscheme advantage
colorscheme automation
"colorscheme advantage
"highlight colorcolumn ctermbg=darkyellow guibg=darkyellow
"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)
"
autocmd BufNewFile,BufReadPost *.{yaml,yml} set filetype=yaml
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
"autocmd BufNewFile,BufReadPost *.{yaml,yml} set filetype=yaml
"autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
" ---------------------------------------------------------------------------------------------------------------------
" ==> VimWiki
" Use MarkDown
" Default directory
let g:vimwiki_list = [{'path': '$HOME/repos/thevimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
let g:vimwiki_global_ext = 0
let g:vimwiki_autowriteall = 1
au FileType vimwiki setlocal shiftwidth=6 tabstop=6 noexpandtab
"let g:vimwiki_list = [{'path': '$HOME/repos/thevimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
"let g:vimwiki_global_ext = 0
"let g:vimwiki_autowriteall = 1
"au FileType vimwiki setlocal shiftwidth=6 tabstop=6 noexpandtab