hlsearch and incsearch

This commit is contained in:
Yash Karandikar 2022-06-24 23:06:43 +05:30
parent 4cfe18fcec
commit b069f55faa
1 changed files with 5 additions and 0 deletions

5
.vimrc
View File

@ -6,6 +6,8 @@ set showtabline=2
set number
set expandtab
set encoding=UTF-8
set hlsearch
set incsearch
" install vim-plug if it's not installed already
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
@ -41,6 +43,9 @@ map <C-z> :tabp<CR>
map <C-x> :tabn<CR>
map <C-c> :tabnew<CR>
" keybinding for removing search highlights
nnoremap \\ :noh<CR>
" NERDTree settings
nnoremap <C-t> :NERDTreeToggle<CR>
let g:NERDTreeAutoDeleteBuffer = 1