2025/5/10

Upgrade Node to 20.X --- for copilot in vim


ubuntu 24.04 的 nodee 版本是 18。copilot for vim 要 20.X,
所以要手動 upgrade. ref: 大概就是先 remove nodejs…然後 run
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
然後再 apt install nodejs

裝完是 20.19

進入 vi 後
:Copilot help
會 show copilot command,就是 copilot.txt
要先 authenticate..
:Copilot setup
果然不知道怎麽用...

告訴它
:set filetype=c
看狀態
:Copilot status

沒有留言:

張貼留言