From 3db9b647308e3172979796a4c325c768878cc9a4 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Wed, 21 Mar 2018 22:52:31 +0000 Subject: [PATCH] autocmd/home/ray/.config/vim/vim/bundle/vim-gutentags/plat/unix/update_tags.sh -e "ctags" -t ".tags" -p "." -s "vimrc.d/autocommands.vim" -o "/home/ray/.config/vim/vim/bundle/vim-gutentags/res/ctags_recursive.options" -x "package.json" -x "Session.vim" -x "package-lock.json" -x "TODO.txt" >/dev/null 2>&1 & --- vimrc.d/autocommands.vim | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/vimrc.d/autocommands.vim b/vimrc.d/autocommands.vim index d8adfcf..d85b7c8 100644 --- a/vimrc.d/autocommands.vim +++ b/vimrc.d/autocommands.vim @@ -13,16 +13,18 @@ augroup END " Show trailing whitepace and spaces before a tab: augroup whitespaceerrors + autocmd! autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ containedin=ALL augroup END " automatically reload if color scheme file written augroup coloreload - au! - au BufWritePost customred256.vim so $MYVIMRC + autocmd! + autocmd BufWritePost customred256.vim so $MYVIMRC augroup end augroup linenumbering + autocmd! autocmd InsertEnter * :set norelativenumber autocmd InsertLeave * :set number relativenumber autocmd WinEnter * :set number relativenumber @@ -30,14 +32,15 @@ augroup linenumbering augroup END augroup colorcolumns + autocmd! autocmd WinEnter * call SetColorColumn() autocmd WinLeave * setlocal colorcolumn=0 augroup END " Automatically reload .vimrc if chanaged augroup myvimrc - au! - au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif + autocmd! + autocmd BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif augroup END " vim: foldmethod=marker