Added some yaml specific tweaks
This commit is contained in:
parent
14aad81894
commit
05e06f83b0
18
.vimrc
18
.vimrc
@@ -8,7 +8,7 @@ set scrolloff=8 " number of lines to keep a
|
|||||||
set belloff=all " no sound/flash on errors
|
set belloff=all " no sound/flash on errors
|
||||||
|
|
||||||
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
|
||||||
@@ -97,8 +97,10 @@ call plug#end()
|
|||||||
"colorscheme automation
|
"colorscheme automation
|
||||||
colorscheme advantage
|
colorscheme advantage
|
||||||
|
|
||||||
highlight colorcolumn ctermbg=darkgray guibg=darkgray
|
highlight colorcolumn ctermbg=darkgray guibg=darkgray
|
||||||
highlight VertSplit ctermbg=black guibg=black ctermfg=darkgray guifg=darkgray
|
highlight VertSplit ctermbg=black guibg=black ctermfg=darkgray guifg=darkgray
|
||||||
|
highlight cursorcolumn cterm=NONE ctermbg=darkblue ctermfg=white guibg=darkred guifg=white
|
||||||
|
|
||||||
|
|
||||||
" In split windows - active buffer status bar is yellow, inactive is black
|
" In split windows - active buffer status bar is yellow, inactive is black
|
||||||
hi statuslinenc ctermbg=gray ctermfg=black
|
hi statuslinenc ctermbg=gray ctermfg=black
|
||||||
@@ -174,6 +176,11 @@ 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>
|
||||||
|
|
||||||
|
" ---------------------------------------------------------------------------------------------------------------------
|
||||||
|
" ==> Toggle row/column cursor
|
||||||
|
"
|
||||||
|
nnoremap <Leader>c :set cursorline! cursorcolumn!<CR>
|
||||||
|
|
||||||
" ---------------------------------------------------------------------------------------------------------------------
|
" ---------------------------------------------------------------------------------------------------------------------
|
||||||
" ==> Spellcheck
|
" ==> Spellcheck
|
||||||
" Horrible colors! I hate spellchecker's red highlight, so I changed it
|
" Horrible colors! I hate spellchecker's red highlight, so I changed it
|
||||||
@@ -256,3 +263,10 @@ let g:netrw_browse_split = 4
|
|||||||
let g:netrw_altv = 1
|
let g:netrw_altv = 1
|
||||||
let g:netrw_winsize = 25
|
let g:netrw_winsize = 25
|
||||||
|
|
||||||
|
|
||||||
|
" ---------------------------------------------------------------------------------------------------------------------
|
||||||
|
" ==> yaml stuff (https://lornajane.net/posts/2018/vim-settings-for-working-with-yaml)
|
||||||
|
"
|
||||||
|
autocmd BufNewFile,BufReadPost *.{yaml,yml} set filetype=yaml
|
||||||
|
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user