From de962a6d97282a3f90f5c697e309c33d1b37cebd Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 10 Nov 2015 13:00:48 +0100 Subject: vim: make 'W' write and enable case insensitive Search --- vimrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 4acf905..01eff31 100644 --- a/vimrc +++ b/vimrc @@ -34,7 +34,7 @@ set colorcolumn=80 " differently from regular Vi. They are highly recommended though. set showcmd " Show (partial) command in status line. set showmatch " Show matching brackets. -"set ignorecase " Do case insensitive matching +set ignorecase " Do case insensitive matching "set smartcase " Do smart case matching "set incsearch " Incremental search "set autowrite " Automatically save before commands like :next and :make @@ -87,6 +87,14 @@ set laststatus=2 " Format the status line set statusline=\ %{HasPaste()}%F%m%r%h\ \ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l +"""""""""""""""""""""""""""""" +" => Custom commands +"""""""""""""""""""""""""""""" +" make 'W' write +command W w +command WQ wq +command Wq wq + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Helper functions """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -- cgit v1.2.3