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:
17
.vimrc
17
.vimrc
@@ -31,6 +31,9 @@ augroup end
|
|||||||
syntax enable
|
syntax enable
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
|
|
||||||
|
" Enable Omnicomplete features
|
||||||
|
set omnifunc=syntaxcomplete#Complete
|
||||||
|
|
||||||
" Personal Notes settings
|
" Personal Notes settings
|
||||||
" export NOTES_DIR=<your notes directory>
|
" export NOTES_DIR=<your notes directory>
|
||||||
" before use
|
" before use
|
||||||
@@ -124,7 +127,7 @@ call plug#end()
|
|||||||
" Markdown syntax highlighting for specified languages
|
" Markdown syntax highlighting for specified languages
|
||||||
let g:markdown_fenced_languages = ['html', 'python', 'ini', 'vim', 'bash', 'yaml']
|
let g:markdown_fenced_languages = ['html', 'python', 'ini', 'vim', 'bash', 'yaml']
|
||||||
" Set default conceallevel to hide links and some formatting
|
" Set default conceallevel to hide links and some formatting
|
||||||
set conceallevel=2
|
set conceallevel=0
|
||||||
" strikethrough
|
" strikethrough
|
||||||
let g:vim_markdown_strikethrough = 1
|
let g:vim_markdown_strikethrough = 1
|
||||||
" follow anchors - allow <ge> to follow anchors just like links
|
" 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 <F3> <C-R>=strftime("%Y-%m-%d %a")<CR>
|
||||||
imap <F4> <C-R>=strftime("%H:%M")<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
|
" ==> Spellcheck
|
||||||
|
|||||||
Reference in New Issue
Block a user