Compare commits

...

2 Commits

Author SHA1 Message Date
8298e74e22 Auto close and disable conceal
Added keybinding to approximate auto close of brackets and parentheses.
Disabled `conceal` so I can see full inks and code fences
2024-02-26 18:44:06 -05:00
376bfe60ee 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
2024-02-26 18:25:25 -05:00

28
.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,16 +265,32 @@ 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
" Toggle spell check highlights with <F10>
nnoremap <F10> :setlocal spell! spelllang=en_us<CR>
" auto-complete spelling suggestions with <ctrl-p>
set complete+=kspell
autocmd FileType markdown setlocal complete+=kspell
autocmd FileType text setlocal complete+=kspell
autocmd FileType gitcommit setlocal complete+=kspell
" Toggle spell check highlights with <F10>
nnoremap <F10> :setlocal spell! spelllang=en_us<CR>
" ==> Spellcheck: only certain file types
" https://robots.thoughtbot.com/vim-spell-checking
@@ -288,6 +307,7 @@ autocmd BufRead,BufNewFile *.md setlocal spell
autocmd BufRead,BufNewFile *.txt setlocal spell
" ==> Spellcheck Colors
"
" I hate spellcheck's default colors
" (http://stackoverflow.com/questions/6008921/how-do-i-change-the-highlight-style-in-vim-spellcheck)
" Vim Colors: (http://alvinalexander.com/linux/vi-vim-editor-color-scheme-syntax)