preservim / nerdcommenter

Vim plugin for intensely nerdy commenting powers
Creative Commons Zero v1.0 Universal
4.99k stars 445 forks source link

readme.md needs to include autoload vim file #506

Closed yschaeff closed 1 year ago

yschaeff commented 1 year ago

README.md states the following for a manual install on Unix:

curl -fLo ~/.vim/plugin/NERD_Commenter.vim --create-dirs \
  https://raw.githubusercontent.com/preservim/nerdcommenter/master/plugin/nerdcommenter.vim
curl -fLo ~/.vim/doc/NERD_Commenter.txt --create-dirs \
  https://raw.githubusercontent.com/preservim/nerdcommenter/master/doc/nerdcommenter.txt

But Vim would tell me the function nerdcommenter#comment was unknown. To get it working I also needed:

curl -fLo ~/.vim/autoload/nerdcommenter.vim --create-dirs \
  https://raw.githubusercontent.com/preservim/nerdcommenter/master/autoload/nerdcommenter.vim

cheers!