From 6a2299df8c0c8cb97be883f0e1dd0c8c7cf7a2ff Mon Sep 17 00:00:00 2001 From: Johannes Stolp Date: Tue, 12 Jul 2016 20:19:32 +0200 Subject: added tmux config file added tagbar support for vim --- .vim/vimrc_files/keymaps.vim | 49 +++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 21 deletions(-) (limited to '.vim/vimrc_files/keymaps.vim') diff --git a/.vim/vimrc_files/keymaps.vim b/.vim/vimrc_files/keymaps.vim index c5dfaed..f7cb026 100644 --- a/.vim/vimrc_files/keymaps.vim +++ b/.vim/vimrc_files/keymaps.vim @@ -4,17 +4,20 @@ " set leader key let mapleader="," +" re-source .vimrc +map v :source ~/.vimrc + "remap esc button imap jj " prevent quit accidentlty -map :q :close -map :wq :w -noremap :qq :q -noremap d :bd +map :q :bd +map :qa :bd +map :wq :w:bd +noremap q :q " re-adjust indentation -map mzgg=G`z +map f mzgg=G`z "let ArrowDisableMessage = "Arrow Keys disabled! Better learn hjkl ;)" @@ -50,30 +53,31 @@ cnoremap " 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> " 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 $ -vnoremap 0 -vnoremap $ +nnoremap 0 +nnoremap $ +inoremap 0 +inoremap $ +vnoremap 0 +vnoremap $ " Shortcut to toggle relative numbering mode @@ -83,6 +87,9 @@ nnoremap :call ToggleRelativeNumber() " Open BufferExplorer nnoremap :call BufExplorer() +" Toggle Tagbar +nnoremap t :TagbarToggle + " invoke grep and print output into current buffer nnoremap :read !grep -nI -- cgit v1.2.3