aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2019-06-03 21:20:19 +0200
committerTeddy Wing2019-06-03 21:20:19 +0200
commit7d7c2b7e47f836c7e1be3ba63a6b5a6533e87c78 (patch)
tree69e1003d2643bee750deaf1f5a3f79d2f109212e /vimrc
parent7364a7ebdd25e8aa0893cfe15adfab5f81e937d4 (diff)
downloaddotvim-7d7c2b7e47f836c7e1be3ba63a6b5a6533e87c78.tar.bz2
vimrc: Focus Undotree window when toggled
Match Gundo's behaviour.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 9265b86..5cadfde 100644
--- a/vimrc
+++ b/vimrc
@@ -421,6 +421,7 @@
"
" 2019.06.03:
" * Use Gundo when -python3 and Undotree when +python3.
+" * Focus Undotree window when toggled.
"
@@ -612,6 +613,8 @@ endif
if has('python3')
let loaded_gundo = 1
+ let g:undotree_SetFocusWhenToggle = 1
+
nnoremap <leader>gu :UndotreeToggle<cr>
else
let g:loaded_undotree = 1