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 +++++++++++++++++++------------ .vim/vimrc_files/vundle.vim | 2 ++ 2 files changed, 21 insertions(+), 12 deletions(-) (limited to '.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 diff --git a/.vim/vimrc_files/vundle.vim b/.vim/vimrc_files/vundle.vim index eb568ef..6b8b21a 100644 --- a/.vim/vimrc_files/vundle.vim +++ b/.vim/vimrc_files/vundle.vim @@ -18,6 +18,8 @@ Plugin 'vim-airline/vim-airline-themes' Plugin 'majutsushi/tagbar' +Plugin 'kien/ctrlp.vim' + " c++ modifief headers: http://www.vim.org/scripts/script.php?script_id=2358 "Plugin 'vim-scripts/OmniCppComplete' -- cgit v1.2.3