From 3c2961a0d7c16407428b1f8bdae3f9810ebf2049 Mon Sep 17 00:00:00 2001 From: Blubber Date: Mon, 10 Oct 2016 00:29:44 +0200 Subject: tmux changes prefix to C-s; vim changed leader to 'S' (capital s) --- .vim/vimrc_files/keymaps.vim | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to '.vim/vimrc_files/keymaps.vim') diff --git a/.vim/vimrc_files/keymaps.vim b/.vim/vimrc_files/keymaps.vim index f61663f..d520ad7 100644 --- a/.vim/vimrc_files/keymaps.vim +++ b/.vim/vimrc_files/keymaps.vim @@ -2,7 +2,8 @@ " author: johannst " set leader key -let mapleader="," +"execute "set =\es" +let mapleader="S" " re-source .vimrc map v :source ~/.vimrc @@ -20,33 +21,39 @@ noremap q :q map f mzgg=G`z " navigate between different splits -map j -map k -map l -map h +map j +map k +map l +map h +map j +map k +map l +map h " resize splits -map 5- -map 5+ -map 5< -map 5> +"map 5- +"map 5+ +"map 5< +"map 5> " navigate between different buffers nnoremap :bprevious nnoremap :bnext +nnoremap :bprevious +nnoremap :bnext " ctrl-ae jump to line start/end nnoremap 0 nnoremap $ -inoremap 0 -inoremap $ +inoremap 0 +inoremap $ vnoremap 0 vnoremap $ cnoremap cnoremap " Shortcut to toggle relative numbering mode -nnoremap :call ToggleRelativeNumber() +nnoremap :call ToggleRelativeNumber() " add a marker fold snippet (for C/C++) nnoremap o//{{{ o//}}}A -- cgit v1.2.3