From 12815ebd0efb70bda91285792ec49c9b497a162e Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Tue, 22 Oct 2019 22:54:19 +0200 Subject: [PATCH] Update vim matching and searching conf --- .vim/vimrc | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.vim/vimrc b/.vim/vimrc index 5f107d2..fc6ee64 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -20,15 +20,24 @@ set softtabstop=4 set shiftwidth=4 set expandtab -" Highlight searches -set hlsearch + +set wildignorecase " Ignore case in command completion +set laststatus=2 " Always show statusline + +" Search settings +set smartcase " If an uppercase letter is the query, be case sensitive +set incsearch " Highlight matches while typing query +set hlsearch " Highlight all search matches + +" Highlight matching brackets set showmatch +set mps+=<:> " Also, match < and > " Use TAB to switch between buffers noremap :bn noremap :bp -" Highlight trailing whitespace (darker red) and remove all with Ctrl+k +" Trailing whitespace - highlight in darker red, clean buffer with Ctrl+k highlight WhitespaceEOL ctermbg=red guibg=#ab0d0d match WhitespaceEOL /\s\+\%#\@ :let _s=@/:%s/\s\+$//e:let @/=_s @@ -54,7 +63,7 @@ nmap :set nonumber! nmap :NERDTreeToggle set pastetoggle= -" Enable vimrc files per project, e.g: ./project/.vimrc +" Enable vimrc files per project set exrc " Disable unsafe commands in project vimrc set secure