Added auto close & disabled conceal

Added some lines to approximate auto closing of brackets and parentheses
and turned off `conceal` allowing me to see full links and code fencing
This commit is contained in:
2024-02-26 18:25:25 -05:00
parent d81ebbc07a
commit 376bfe60ee

17
.vimrc
View File

@@ -31,6 +31,9 @@ augroup end
syntax enable
filetype plugin on
" Enable Omnicomplete features
set omnifunc=syntaxcomplete#Complete
" Personal Notes settings
" export NOTES_DIR=<your notes directory>
" before use
@@ -124,7 +127,7 @@ call plug#end()
" 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
set conceallevel=0
" strikethrough
let g:vim_markdown_strikethrough = 1
" follow anchors - allow <ge> to follow anchors just like links
@@ -262,6 +265,18 @@ imap <F2> <C-R>=strftime("%Y-%m-%d %H:%M:%S")<CR>
imap <F3> <C-R>=strftime("%Y-%m-%d %a")<CR>
imap <F4> <C-R>=strftime("%H:%M")<CR>
" ---------------------------------------------------------------------------------------------------------------------
" ==> Keymaps: Autoclosing
" Autoclose brackets, parens...etc
" from: https://stackoverflow.com/a/34992101
inoremap " ""<left>
inoremap ' ''<left>
inoremap ( ()<left>
inoremap [ []<left>
inoremap { {}<left>
inoremap {<CR> {<CR>}<ESC>O
inoremap {;<CR> {<CR>};<ESC>O
" ---------------------------------------------------------------------------------------------------------------------
" ---------------------------------------------------------------------------------------------------------------------
" ==> Spellcheck