Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

GMEdit

A high-end code editor for GameMaker: Studio / GameMaker Studio 2 · By YellowAfterlife

Problems with Vim mode editing

A topic by Chaoclypse created May 11, 2019 Views: 248 Replies: 4
Viewing posts 1 to 2
(1 edit)

Hi! I'm a newcomer to GM and GMEdit is making my life a lot easier by having a vim mode! However, there is a problem that I found with it, hopefully this illustrates it - 

Vim mode

Normal mode


Basically, once it reaches a line shorter than the previous line, it will save the cursor position as the current position. Is there any way to remedy this?


In addition, in Vim, once you go into edit mode, you can actually make a bunch of edits then exit out, and when you hit undo, it will undo all the changes you made at once. In Vim mode here, it's just a normal undo. This isn't as bad, but I just wanted to see if there could be a quick fix!


Thanks!


PS: The vague title is in case I find any other problems with vim mode editing - I don't want to spam up the message boards!

Developer

This seems to be the problem with code editor component as it also happens in its demo. I'd suggest to look around and ask on their issues page for fixes/recommendations.

Hi YellowAfterLife, thanks for the quick reply! I took a look at the issues page and saw that my first issue was already reported - and coincidentally, fixed fairly recently! https://github.com/ajaxorg/ace/issues/3943


Could you update GMEdit to use this updated commit? That should fix it - thanks so much!

Developer

That's a surprisingly small fix, you could even open keybinding-vim.js in GMEdit's directory, find that one line, and add "!" to the condition as in the commit.

Thanks so much, that works! :D