Endless .vimrc tweaking
This commit is contained in:
26
.vimrc
26
.vimrc
@@ -9,8 +9,8 @@ set noerrorbells visualbell t_vb= " no sound on errors
|
|||||||
autocmd! bufwritepost .vimrc source ~/.vimrc " When vimrc is edited, reload it
|
autocmd! bufwritepost .vimrc source ~/.vimrc " When vimrc is edited, reload it
|
||||||
|
|
||||||
set autoread " set to auto read when a file is changed from the outside
|
set autoread " set to auto read when a file is changed from the outside
|
||||||
set cursorcolumn " highlight current column
|
"set cursorcolumn " highlight current column
|
||||||
set cursorline " highlight current row
|
"set cursorline " highlight current row
|
||||||
set incsearch " make search act like search in modern browsers
|
set incsearch " make search act like search in modern browsers
|
||||||
set showmatch " show matching brackets when text indicator is over them
|
set showmatch " show matching brackets when text indicator is over them
|
||||||
|
|
||||||
@@ -24,8 +24,8 @@ set hidden " Allow background buffers
|
|||||||
set splitright " Split to right by default
|
set splitright " Split to right by default
|
||||||
|
|
||||||
" Text Wrapping
|
" Text Wrapping
|
||||||
set textwidth=119
|
set textwidth=120
|
||||||
set colorcolumn=120
|
set colorcolumn=121
|
||||||
set nowrap
|
set nowrap
|
||||||
|
|
||||||
" Search and Substitute
|
" Search and Substitute
|
||||||
@@ -78,7 +78,8 @@ call plug#end()
|
|||||||
" ==> Colors
|
" ==> Colors
|
||||||
"
|
"
|
||||||
"set termguicolors
|
"set termguicolors
|
||||||
colorscheme slate
|
"colorscheme slate
|
||||||
|
colorscheme marklar
|
||||||
|
|
||||||
" ----------------------------------------------------------------------------------------------------
|
" ----------------------------------------------------------------------------------------------------
|
||||||
" ==> Autocompletion
|
" ==> Autocompletion
|
||||||
@@ -171,6 +172,9 @@ imap <F4> <C-R>=strftime("%H:%M")<CR>
|
|||||||
" (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)
|
||||||
|
|
||||||
|
" Toggle spell check with F10
|
||||||
|
nnoremap <F10> :setlocal spell! spelllang=en_us<CR>
|
||||||
|
" Save custom dictionary in ~/Documents
|
||||||
set spell spelllang=en_us
|
set spell spelllang=en_us
|
||||||
set spellfile=$HOME/Documents/en.utf-8.add
|
set spellfile=$HOME/Documents/en.utf-8.add
|
||||||
hi clear SpellBad
|
hi clear SpellBad
|
||||||
@@ -179,8 +183,8 @@ hi clear SpellErrors
|
|||||||
hi clear SpellLocal
|
hi clear SpellLocal
|
||||||
hi clear SpellRare
|
hi clear SpellRare
|
||||||
hi SpellBad cterm=underline,bold ctermfg=red
|
hi SpellBad cterm=underline,bold ctermfg=red
|
||||||
hi SpellCap cterm=underline,bold ctermfg=cyan
|
hi SpellCap cterm=underline,bold ctermfg=blue
|
||||||
hi SpellErrors cterm=underline,bold ctermfg=cyan
|
hi SpellErrors cterm=underline,bold ctermfg=blue
|
||||||
|
|
||||||
" -----------------------------------------------------------------------------------------------------
|
" -----------------------------------------------------------------------------------------------------
|
||||||
" ===> Spellcheck: only certain file types https://robots.thoughtbot.com/vim-spell-checking
|
" ===> Spellcheck: only certain file types https://robots.thoughtbot.com/vim-spell-checking
|
||||||
@@ -230,3 +234,11 @@ autocmd BufWritePre,filewritepre *.md,*.mkd execute "normal ma"
|
|||||||
autocmd BufWritePre,filewritepre *.md,*.mkd exe "g/Updated:.*/s//Updated: " .strftime("%c")
|
autocmd BufWritePre,filewritepre *.md,*.mkd exe "g/Updated:.*/s//Updated: " .strftime("%c")
|
||||||
autocmd bufWritePost,filewritepost *.md,*.mkd execute "normal `a"
|
autocmd bufWritePost,filewritepost *.md,*.mkd execute "normal `a"
|
||||||
|
|
||||||
|
" -----------------------------------------------------------------------------------------------------
|
||||||
|
" ==> netrw - NERDtree like setup (https://shapeshed.com/vim-netrw/)
|
||||||
|
let g:netrw_banner = 0
|
||||||
|
let g:netrw_liststyle = 3
|
||||||
|
let g:netrw_browse_split = 4
|
||||||
|
let g:netrw_altv = 1
|
||||||
|
let g:netrw_winsize = 25
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user