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 ++++++++++++++++++++++---------------- .vim/vimrc_files/plugin_config.vim | 5 ++++ .vim/vimrc_files/vundle.vim | 3 +++ 3 files changed, 36 insertions(+), 21 deletions(-) (limited to '.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 diff --git a/.vim/vimrc_files/plugin_config.vim b/.vim/vimrc_files/plugin_config.vim index 844aa65..ec61660 100644 --- a/.vim/vimrc_files/plugin_config.vim +++ b/.vim/vimrc_files/plugin_config.vim @@ -17,3 +17,8 @@ if !exists('g:airline_symbols') let g:airline_symbols = {} endif + +" +----------------------------+ +" | Tagbar | +" +----------------------------+ +let g:tagbar_ctags_bin='/u/jstolp/bin/ctags' diff --git a/.vim/vimrc_files/vundle.vim b/.vim/vimrc_files/vundle.vim index 4e7092e..17d5786 100644 --- a/.vim/vimrc_files/vundle.vim +++ b/.vim/vimrc_files/vundle.vim @@ -15,4 +15,7 @@ Plugin 'jlanzarotta/bufexplorer' Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' +Plugin 'majutsushi/tagbar' + + call vundle#end() -- cgit v1.2.3