]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Relative path to zshfe.zsh
authorSergey Matveev <stargrave@stargrave.org>
Mon, 13 Dec 2021 12:07:07 +0000 (15:07 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 27 Jan 2022 11:35:14 +0000 (14:35 +0300)
vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.vim

index af3540bb7b6377acdb1d92fc978f2ae00bd68e72..d85d531e07fb230ade35bc5a07d46d6613ee4fee 100644 (file)
@@ -3,7 +3,9 @@
 " License: GNU General Public License version 3 of the License or later
 
 if exists("*<SID>zshfe") | finish | endif
-if !exists("g:zshfe_path") | let g:zshfe_path=expand("~/.vim/plugin/zshfe.zsh") | endif
+if !exists("g:zshfe_path")
+    let g:zshfe_path=expand("<sfile>:p:h") . "/zshfe.zsh"
+endif
 
 function! s:zshfe(query, opencmd)
     silent let result = systemlist(g:zshfe_path . " " . a:query)