atom-vim-mode-plus icon indicating copy to clipboard operation
atom-vim-mode-plus copied to clipboard

Question: Any plans to port this to VSC?

Open compostbrain opened this issue 6 years ago • 22 comments

I would like to have this available in Visual Studio Code. There is a Vim emulation extension but it seems to be missing some features I enjoy in this package.

compostbrain avatar Apr 23 '18 23:04 compostbrain

Currently no. But I think if you think vmp is better tha VsCodeVim, putting that impression to them might lead them to do more research on vmp. Which is very honor to me as one vim-plugin author among tons of similar projects.

t9md avatar Apr 24 '18 06:04 t9md

This has been the best vim implementation I have ever used. I believe this particular vim implementation should be abstracted so that it can be consumed on any JS based editor. I keep atom around for the sheer power and productivity. Thanks @t9md for this gift!

image

admosity avatar Apr 27 '18 02:04 admosity

Thanks, and what you've suggested is just jordan suggested long before.

https://github.com/t9md/atom-vim-mode-plus/issues/182

Theoretically it's possible, and what vmp shines is each operator/motion is very declaratively defined which might make editor-agnostic abstraction easy. But still vmp greatly depends on Atom's super granular APIs. And I myself am happy with Atom. Feeling nor particular motivation to move to VsCode. If I forced to use VSCode, then I might consider to implement it on top of VSCode or collaborate with already existing VSCodeVim.

t9md avatar Apr 27 '18 06:04 t9md

The problem with VS Code (and unfortunately with VS Code Vim) is that there's not enough information in the public API to enable a fully compatible (or even as good as atom's) vim extension. See https://github.com/Microsoft/vscode/issues/22276#issuecomment-302061827 for more details on this. Because of the architecture of VS Code, extensions cannot know some of the things the core does.

I agree it would be cool if vim-mode-plus were editor agnostic, but I don't think VS Code will (soon, or maybe ever) support all the API needed to do it.

calebmeyer avatar May 14 '18 21:05 calebmeyer

This is a very good discussion. For me, it would be better to use vscode as scala integration is better. But, vmp is so good that it keeps me firmly in Atom

Thanks @t9md for the best vim emulation I've used

cquiroz avatar May 27 '18 15:05 cquiroz

VMP is a beast. I'm totally hooked. Thank you @t9md for producing this excellent software.

With Facebook shutting down nuclide and Atom-IDE, and with VSCode growing in popularity, I'm worried that a day might come in the future when atom is no longer relevant, and I'll have to give up on c o i p, etc., which have become integral to my workflow.

I hope work on abstracting the core of VMP will succeed so that many more users can enjoy these features.

bennypowers avatar Dec 20 '18 12:12 bennypowers

Oh, I didn’t know FB shut down nuclide. Surprised, and sad. For me, I’m really looking forward to see xray editor become generally available. Hopefully vmp works on top of xray with slight modifications. In case that will not happen and Atom is also decided to shut down, then I think I can create vmp for VSCode!!

t9md avatar Dec 20 '18 13:12 t9md

Yeah, I'd switch to xray in a heartbeat if it's as fast as what's out there make it seem. It would be the best of atom and sublime text.

I don't think atom will be shut down any time soon, per the community manager, Lee: https://discuss.atom.io/t/the-microsoft-intervention/55744

If it does get shut down, I hope VS Code will be able to support all the cool features of VMP that aren't in vscodevim

  • additional text objects like inner entire (y i e is 100% my most used shortcut, so much nicer than ggVGy and leaves your cursor in place)
  • Flash on changes made is so nice
  • Occurrences are awesome too

calebmeyer avatar Dec 20 '18 15:12 calebmeyer

Lack of subword movements in VSCode is so critical for me, as well as occurrences. But I personally have no choice because I work a lot with TypeScript recently and VSCode works just flawlessly with it.

Would love to see VMP ported to VSCode ❤️

deepsweet avatar Dec 20 '18 16:12 deepsweet

It's unfortunate that atom-ide is no longer being supported by Facebook. That said I've found a combination that gives me close to a VSCode type experience with TypeScript. Hope this helps out!

Install the following plugins:

atom-ide ide-typescript atom-typescript language-typescript intentions

Hover: image

Using ctrl+space: image

Using vim-mode-plus gd (goto definition): image

Adding the following keyboard shortcut gives the cmd-. quick suggestions/imports from VSCode (mainly because I am so used to using ctrl-n and ctrl-p to navigate the options):

'atom-text-editor:not([mini])':
  'cmd-.': 'diagnostics:show-actions-at-position',

image

EDIT: Looks like I had these configured as well. Using gh I can get typescript hover functionality.

'atom-text-editor.vim-mode-plus.normal-mode':

  ###
  TYPESCRIPT
  ###
  'g h': 'typescript:show-tooltip'
  'g d': 'typescript:go-to-declaration'

admosity avatar Jan 02 '19 14:01 admosity

For me, I’m really looking forward to see xray editor become generally available. Hopefully vmp works on top of xray with slight modifications. In case that will not happen and Atom is also decided to shut down, then I think I can create vmp for VSCode!!

@t9md, Github has decided not to move forward on x-ray in any capacity 😞

Spirarel avatar Aug 28 '19 14:08 Spirarel

I'm still using Atom ... but I fear that they're going to shut it down in the near future. Development has slowed significantly in the last half of the year.

image

mauricecruz avatar Oct 31 '19 13:10 mauricecruz

Is that Atom's activity?

t9md avatar Oct 31 '19 14:10 t9md

https://github.com/atom/atom/graphs/commit-activity

Spirarel avatar Oct 31 '19 14:10 Spirarel

Yes @t9md. Thanks for posting the link @Spirarel.

mauricecruz avatar Oct 31 '19 14:10 mauricecruz

xray

so love you

kerwin6182828 avatar Jan 29 '20 03:01 kerwin6182828

Note for anyone coming here from Google, if you have atom-ide-ui and atom-ide-typescript, but not atom-typescript installed, you can bind g d to hyperclick word under cursor with:

'atom-text-editor.vim-mode-plus.normal-mode':
  'g d':      'hyperclick:confirm-cursor'
  'g h':      'datatip:toggle'

bennypowers avatar Jan 29 '20 10:01 bennypowers

this might be of interest to the discussion

https://theia-ide.org/

bennypowers avatar Mar 31 '20 22:03 bennypowers

Also of interest is https://github.com/asvetliakov/vscode-neovim which bypasses type bindings

bennypowers avatar Apr 16 '20 09:04 bennypowers

For what it's worth, github announced the sunsetting of Atom: https://github.blog/2022-06-08-sunsetting-atom/

keevan avatar Jun 08 '22 23:06 keevan

@keevan Thank you for sharing this. It is sad. very sad.

t9md avatar Jun 08 '22 23:06 t9md

@keevan Thank you for sharing this. It is sad. very sad.

Indeed. Thanks so much for creating this plugin though, it was by far the best Vim integration I've used in any editor/IDE by far. Atom + vim-mode-plus will be missed.

The bright side is that some Atom devs are working on a new editor called Zed (https://zed.dev). Hoping that will be a good successor

saadq avatar Jun 15 '22 23:06 saadq