From 775b731a3040baac6cb92ff94b54664999b73abf Mon Sep 17 00:00:00 2001 From: johannst Date: Sat, 17 Dec 2016 11:28:53 +0100 Subject: vimrc removed buffer movement in Tagbar --- gitconfig | 2 +- vimrc | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/gitconfig b/gitconfig index 5f97391..64ec836 100644 --- a/gitconfig +++ b/gitconfig @@ -10,7 +10,7 @@ prompt = false [alias] lol = log --graph --decorate --pretty=oneline --abbrev-commit --all - d = difftool + vimdiff = difftool [core] editor = vim [color] 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 tb :TagbarToggle + autocmd FileType tagbar nnoremap tb :TagbarToggle + autocmd FileType tagbar nnoremap + autocmd FileType tagbar nnoremap + autocmd FileType tagbar nnoremap + autocmd FileType tagbar nnoremap 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 +augroup end + " ctrl-ae jump to line start/end nnoremap 0 nnoremap $ @@ -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 -- cgit v1.2.3