From 285bf3e61389325f7d229b154c695a293d92a453 Mon Sep 17 00:00:00 2001 From: Benjamin Kyd Date: Mon, 22 May 2023 08:40:13 +0100 Subject: [PATCH] missed one or two things --- common/.vimrc | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/common/.vimrc b/common/.vimrc index 2c74557..abff988 100644 --- a/common/.vimrc +++ b/common/.vimrc @@ -1,4 +1,8 @@ -colorscheme kanagawa +if has('nvim') + colorscheme kanagawa +else + colorscheme evening +endif set confirm set noswapfile @@ -7,11 +11,14 @@ set autoread set clipboard=unnamedplus -" Triger `autoread` when files changes on disk -autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' | checktime | endif -" Notification after file change -autocmd FileChangedShellPost * - \ echohl WarningMsg | echo "File changed on disk. Buffer reloaded." | echohl None +augroup setup + autocmd! + " Triger `autoread` when files changes on disk + autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' | checktime | endif + " Notification after file change + autocmd FileChangedShellPost * + \ echohl WarningMsg | echo "File changed on disk. Buffer reloaded." | echohl None +augroup end set scrolloff=4 set tabstop=4