From bb9d63abbddef01fd15405f786ea375516bdceff Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 29 Jun 2020 00:01:25 +0200 Subject: vim: load vimwiki when using goto command --- .vim/init.vim | 7 +------ .vim/plug.vim | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to '.vim') 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 (git-messenger-close) au FileType vista nmap :wincmd p au FileType help,qf,vista nmap 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', -- cgit 1.4.1