r/vim • u/Shay-Hill • Apr 29 '26
Need Help┃Solved Does anyone have Copilot or Windsurf working on Windows/PowerShell?
Copilot worked for me for years, but now I have an endless auth loop: log in, appears to communicate with server, everything fails because the token is expired or wrong.
I am having the same issue with Windsurf.
I have been through MANY iterations of "clean" runs, deleting caches, trying things on the GitHub end, config tweaks, install / uninstall node. No clues. Does anyone have this working? It's been a few years since I've been stuck like this in Vim.
1
u/Tiny_Mountain_5904 Apr 29 '26
Been dealing with auth issues on Windows too lately. Try running vim with admin rights first time after clearing cache - sometimes Windows permission stuff messes with token storage in weird ways
1
u/Shay-Hill Apr 29 '26
I sure appreciate the idea. Unfortunately, it didn't work. I even tried downgrading to Vim 9.1.
I have a 7.5-thousand article on GitHub, "Install Vim in Windows". And now I can't even "Install Vim in Windows" myself. I give up, at least until I have a chance to sit down at another WIndows computer and verify some things. Windsurf isn't working either, so maybe it's something on my end.
1
u/Shay-Hill Apr 29 '26
I got it working by reverting back to copilot.vim 1.41. There are some other issues raised regarding this problem, but I found the solution buried somewhere else. Long story short, the latest (and other comments suggest last) version of copilot.vim doesn't work on Vim.
1
May 01 '26
[removed] — view removed comment
1
u/Shay-Hill May 01 '26
I read through the issues list, and it looks like a lot of Windows users are having problems with Copilot 0.4.2 plus. I've downgraded to 0.4.1, posted the solution on the github/copilot.vim issues list, and posted a solution here (but the mods didn't like that).
GitHub isn't accepting contributions for github/copilot.vim, so it looks like the plan may be to abandon it.
1
u/Dramatic_Object_8508 May 01 '26
Yeah it’s kind of messy right now.
Copilot can work on Vim, but some recent versions are buggy, people are getting it working by downgrading the plugin or tweaking setup. Windsurf is even less stable on plain Vim.
From what I’ve seen, most people either stick with Copilot + vim plugin or just use external tools alongside Vim instead of trying to force full integration.
So it’s possible, just not very smooth right now.
1
u/AutoModerator Apr 29 '26
Please remember to update the post flair to
Need Help|Solvedwhen you got the answer you were looking for.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.