summary refs log tree commit diff
path: root/.vim
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-06-29 00:01:25 +0200
committerRobert Günzler <r@gnzler.io>2020-06-29 00:01:25 +0200
commitbb9d63abbddef01fd15405f786ea375516bdceff (patch)
tree6608f20c6a58640098199ccdced503519a4168d1 /.vim
parent133c4e48ddd410dd4a45fbc0dceb32dd319dd76c (diff)
vim: load vimwiki when using goto command
Diffstat (limited to '.vim')
-rw-r--r--.vim/init.vim7
-rw-r--r--.vim/plug.vim2
2 files changed, 2 insertions, 7 deletions
diff --git a/.vim/init.vim b/.vim/init.vim
index e2d6ca4..fa80da8 100644
--- a/.vim/init.vim
+++ b/.vim/init.vim
@@ -340,12 +340,7 @@ augroup SpecialBuffers
   au FileType gitmessengerpopup nmap <buffer><esc> <Plug>(git-messenger-close)
   au FileType vista nmap <buffer><space> :wincmd p<CR>
   au FileType help,qf,vista nmap <silent><buffer>q <c-w><c-q>
-
-  au FileType vimwiki
-        \ if filereadable(expand('%')) && line('$') == 1 && getline(1) == ''
-	\ | read !zet new
-	\ | endif
-  au FileType vimwiki Vista!!
+  " au FileType vimwiki call vista#sidebar#ToggleFocus()
 augroup END
 
 " augroup AutoSaveFolds
diff --git a/.vim/plug.vim b/.vim/plug.vim
index 3a45d98..012d237 100644
--- a/.vim/plug.vim
+++ b/.vim/plug.vim
@@ -26,7 +26,7 @@ call plug#begin('~/.vim/plugged')
   Plug 'SirVer/ultisnips'
     \| Plug 'honza/vim-snippets'
 
-  Plug 'vimwiki/vimwiki', { 'for': ['vimwiki'], 'on': 'VimwikiIndex' }
+  Plug 'vimwiki/vimwiki', { 'for': ['vimwiki'], 'on': ['VimwikiIndex', 'VimwikiGoto'] }
 
   " search
   " Plug 'junegunn/fzf',