summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2016-12-17 11:28:53 +0100
committerjohannst <stoelp@eit.uni-kl.de>2016-12-17 11:28:53 +0100
commit775b731a3040baac6cb92ff94b54664999b73abf (patch)
treecdb1b8cfe8d72101e5e31c378c26e00807bf9a39 /vimrc
parent1c2e37e6a15c25170e85d58fb44db01f97d7e1e0 (diff)
downloaddotfiles-775b731a3040baac6cb92ff94b54664999b73abf.tar.gz
dotfiles-775b731a3040baac6cb92ff94b54664999b73abf.zip
vimrc removed buffer movement in Tagbar
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc17
1 files changed, 17 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 04c66b1..01efae0 100644
--- a/vimrc
+++ b/vimrc
@@ -70,6 +70,11 @@ if index(s:gEnabledPlugins, 'majutsushi/tagbar')!=-1
augroup aug:TagbarKeymaps
autocmd!
autocmd FileType c,cpp nnoremap <buffer> <leader>tb :TagbarToggle<CR>
+ autocmd FileType tagbar nnoremap <buffer> <leader>tb :TagbarToggle<CR>
+ autocmd FileType tagbar nnoremap <buffer> <S-Left> <NOP>
+ autocmd FileType tagbar nnoremap <buffer> <S-Right> <NOP>
+ autocmd FileType tagbar nnoremap <buffer> <S-h> <NOP>
+ autocmd FileType tagbar nnoremap <buffer> <S-l> <NOP>
augroup end
else
echom "[vimrc]: ctags not detected, please link to " g:tagbar_ctags_bin
@@ -154,6 +159,11 @@ set listchars=tab:>-,eol:$,trail:-,precedes:<,extends:>
"}}}
"{{{ Basic Movement
+augroup aug:HelpPageKeyMaps
+ autocmd!
+ autocmd FileType help nnoremap <buffer> <CR> <C-]>
+augroup end
+
" ctrl-ae jump to line start/end
nnoremap <C-a> 0
nnoremap <C-e> $
@@ -501,6 +511,13 @@ endif
let s:sandbox_enable = 1
if s:sandbox_enable
+
+" TODO: backup file creation
+" when opening file (of given filetype? maybe start with c/c++) create copy in this file in file_path/.bak/file_name
+" filter file creation somehow, that it does not try to create backups when opening for example /usr/include/*.h
+
endif
"}}}
+
+"% vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1