From: Samir Benmendil Date: Tue, 20 May 2014 08:46:38 +0000 (+0100) Subject: vim: don't allow arrows anywhere X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/6bdcde0655ded222e6ed9c50759754e4cc5ddc28 vim: don't allow arrows anywhere move around with ^{hjkl} --- diff --git a/vim/vimrc b/vim/vimrc index 033b90d..a32bbe6 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -65,15 +65,24 @@ nmap n :silent nohl nmap # :%s:/::gn " center cursor after search nnoremap n nzz + " disable arrows -inoremap -inoremap -inoremap +noremap +noremap +noremap +noremap +inoremap +inoremap +inoremap inoremap -noremap -noremap -noremap -noremap +cnoremap +cnoremap +cnoremap +cnoremap +cnoremap +cnoremap +cnoremap +cnoremap set nostartofline " don't move the cursor to the first non-blank char of a line set path=.,include/,../include/,/usr/include/c++/*,/opt/ros/hydro/include