Closed habamax closed 4 years ago
Wow... I didn't know that the function local variable conflicts with the global variable...... Thanks for the report. I'll consider ways to avoid that.
Prob. #205 fix the issue. Please try @habamax
@lambdalisue thx, it works now
But I think there is another issue appeared:
" Open vim configs
command! Init :silent only
\<bar>:exe printf("e %s/vimrc", fnamemodify($MYVIMRC, ":p:h"))
\<bar>:exe printf("bo vs %s/plugin/mappings.vim", fnamemodify($MYVIMRC, ":p:h"))
\<bar>:exe printf("bo vs %s/plugin/pack_list.vim", fnamemodify($MYVIMRC, ":p:h"))
\<bar>:exe printf("bo vs %s/plugin/pack_setup.vim", fnamemodify($MYVIMRC, ":p:h"))
\<bar>:exe printf("bo vs %s/after/plugin/setup.vim", fnamemodify($MYVIMRC, ":p:h"))
\<bar>:1wincmd w
C-w w
PS, and it is actually even simpler: just toggle fern drawer with:
nnoremap <F8> :Fern . -drawer -toggle -reveal=%<CR>
Ah sorry. I've noticed that bug. I've applied nonrelated changes as well on that PR by mistake. I'll fix that before the merge 👍
Thx!
I press
?
to get available mappings and it errors with:If I remove/rename function
Sort
everything works.