Compare commits
2 Commits
d81ebbc07a
...
8298e74e22
| Author | SHA1 | Date | |
|---|---|---|---|
| 8298e74e22 | |||
| 376bfe60ee |
28
.vimrc
28
.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,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 <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
|
||||||
|
|
||||||
" Toggle spell check highlights with <F10>
|
|
||||||
nnoremap <F10> :setlocal spell! spelllang=en_us<CR>
|
|
||||||
|
|
||||||
" auto-complete spelling suggestions with <ctrl-p>
|
" auto-complete spelling suggestions with <ctrl-p>
|
||||||
set complete+=kspell
|
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
|
" ==> Spellcheck: only certain file types
|
||||||
" https://robots.thoughtbot.com/vim-spell-checking
|
" https://robots.thoughtbot.com/vim-spell-checking
|
||||||
|
|
||||||
@@ -288,6 +307,7 @@ autocmd BufRead,BufNewFile *.md setlocal spell
|
|||||||
autocmd BufRead,BufNewFile *.txt setlocal spell
|
autocmd BufRead,BufNewFile *.txt setlocal spell
|
||||||
|
|
||||||
" ==> Spellcheck Colors
|
" ==> Spellcheck Colors
|
||||||
|
"
|
||||||
" I hate spellcheck's default colors
|
" I hate spellcheck's default colors
|
||||||
" (http://stackoverflow.com/questions/6008921/how-do-i-change-the-highlight-style-in-vim-spellcheck)
|
" (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)
|
" Vim Colors: (http://alvinalexander.com/linux/vi-vim-editor-color-scheme-syntax)
|
||||||
|
|||||||
Reference in New Issue
Block a user