From 05e06f83b0dd2c3254d66a7b60760ec641a8d072 Mon Sep 17 00:00:00 2001 From: "HQ\\chawley (chawley-admin.hq.overdrive.com)" Date: Fri, 6 Sep 2019 14:14:18 -0400 Subject: [PATCH] Added some yaml specific tweaks --- .vimrc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index adef59f..6ec9308 100644 --- a/.vimrc +++ b/.vimrc @@ -8,7 +8,7 @@ set scrolloff=8 " number of lines to keep a set belloff=all " no sound/flash on errors 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 incsearch " make search act like search in modern browsers set showmatch " show matching brackets when text indicator is over them @@ -97,8 +97,10 @@ call plug#end() "colorscheme automation 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 cursorcolumn cterm=NONE ctermbg=darkblue ctermfg=white guibg=darkred guifg=white + " In split windows - active buffer status bar is yellow, inactive is black hi statuslinenc ctermbg=gray ctermfg=black @@ -174,6 +176,11 @@ imap =strftime("%Y-%m-%d %H:%M:%S") imap =strftime("%Y-%m-%d %a") imap =strftime("%H:%M") +" --------------------------------------------------------------------------------------------------------------------- +" ==> Toggle row/column cursor +" +nnoremap c :set cursorline! cursorcolumn! + " --------------------------------------------------------------------------------------------------------------------- " ==> Spellcheck " 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_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 +