summary refs log tree commit diff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc16
1 files changed, 10 insertions, 6 deletions
diff --git a/vimrc b/vimrc
index 6822361..0e1d648 100644
--- a/vimrc
+++ b/vimrc
@@ -3,7 +3,6 @@ scriptencoding utf-8
 
 set ttyfast       " assume fast terminal and send more chars for smooth redraw
 set lazyredraw    " don't redraw while executing macros, register and cmds
-set ttymouse=sgr  " like xterm2 but supporting beyond 223 columns
 
 let &statusline = '[%n] %<%F %m%r%w%y %= (%l,%c) %P of %L'
 set laststatus=2           " every window gets a statusline, always(=2)
@@ -11,13 +10,18 @@ set scrolloff=5            " scroll edge offset (to keep some context)
 set shortmess=a            " abbreviate all(=a) messages when possible
 set showcmd                " show last command
 
-set incsearch              " Shows the match while typing
-set nobackup               " Don't create annoying backup files
+" search related settings
+set ignorecase smartcase   " case insensitive search if all lowercase
+set incsearch              " incrementally move to match and highlight
+set hlsearch               " highlight previous search pattern
+
+" backups
+set nobackup               " don't create annoying backup files
 
-" command line completion similar to zsh default
 " complete up to longest match and display the list of possible matches
 set wildmode=list:longest
 
+" Plugins
 call plug#begin('~/.local/share/nvim/plugged')
 
 Plug 'fatih/vim-go'
@@ -42,7 +46,7 @@ autocmd BufNewFile,BufRead *.json setlocal tabstop=2 softtabstop=2 expandtab
 " Dockerfile settings
 autocmd FileType dockerfile set noexpandtab
 
-" Exit on j
-imap jj <Esc>
+" mapping
+imap jj <Esc>    " Exit on j
 
 syntax off