Closed bunglegrind closed 8 months ago
Mmm...I don't think it's working...the command is correctly registered but it does not output anything
expand("<sfile>:p:h")
gives you the path of the directory you're in, not the path of .vim or vimfiles, because it is inside a function. You may:
Mmm...I don't think it's working...the command is correctly registered but it does not output anything
~/.vim/
and file ~/.vimrc
from my home directory~/vimfiles/
and ~/.vimrc
:
(set -e
mkdir -p ~/vimfiles/
cd ~/vimfiles/
curl -O "https://www.jslint.com/jslint.mjs"
curl -O "https://www.jslint.com/jslint_wrapper_vim.vim"
ls -la ~/vimfiles/
#
cd ~/
printf ":source ~/vimfiles/jslint_wrapper_vim.vim\n" > .vimrc
ls -la ~/.vimrc
)
~/vimfiles/
can you download the alpha-version @ https://raw.githubusercontent.com/jslint-org/jslint/alpha/jslint_wrapper_vim.vim and see if it works?
can you download the alpha-version @ https://raw.githubusercontent.com/jslint-org/jslint/alpha/jslint_wrapper_vim.vim and see if it works?
I've just replaced jslint_wrapper_vim.vim with the alpha version and now it works! Thanks!
Is your feature request related to a problem? Please describe. As stated in the title, the vim integration assumes jslint files in .vim directory. But in Windows, the default directory is vimfiles
Describe the solution you'd like Passing the directory as a parameter in .vimrc
Describe alternatives you've considered Change the path according to the platform vim is running
See: https://superuser.com/questions/119991/how-do-i-get-vim-home-directory