preservim / nerdcommenter

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

readme.md needs to include autoload vim file #506

Closed yschaeff closed 2 years ago

yschaeff commented 2 years 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!