joshnajera / godot-vim Goto Github PK
View Code? Open in Web Editor NEWVIM bindings for godot 4
License: MIT License
VIM bindings for godot 4
License: MIT License
Hey! Thank you for this fantastic asset!
Unfortunately, I'm not familiar with building such addons for Godot, but maybe it's possible to port this addon to Godot 3.5?
The percentage symbol jumps between paired symbols on normal mode.
Expected behavior: it should work the same when the window is popout
Current behavior: it does not work (only the caret is correct). After some debugging I found out it considers the key pressed of each input to have the value of 'false' when pressing buttons when the main godot window is out of focus (so this might be a Godot issue actually?)
OS: tested on win11 and mac Sonoma 14.2.1
Plugin version: 0.3
Godot version: 4.1.2
I can't seen to find a way to select an autocomplete option, if there's already a way to do this please let me know
Most people would expect double D press to delete the line. And DIW
to delete inside word or DI(
to delete inside ()
The i
motion doesn't seem to work for me, for anything besides iw
. (i"
, i)
For example: ciw
"change in word" works as expected. However, ci"
, ci)
don't.
Something interesting I've found is in the bottom right view of the current command buffer, the "surround" motions appear at the start rather than the end. ciw
stays as ciw
, ci"
becomes "ci
, etc.
When pressing d
it can be followed up with:
d, e, b, w
but does not seem to work with vertical motions like j
or k
.
Hello! Great plugin, very excited for this new version.
When editing a file with the following contents and the cursor in the position marked <cursor>
:
first line
third li<cursor>ne
In vim, pressing o
would add a new line under the existing line and move your cursor to it.
first line
third line
<cursor>
This currently works as expected in godot-vim except for the final line of the file.
Instead, the current line contents are moved down as well:
first line
<cursor>third line
When doing "daw" "vaw" "da(" nothing happens, but they work with the "i" motion correctly.
Try any "a" motion like those written above.
NA
Godot 4.1.2 stable, editor, normal mode.
Not very much seems to work in godot 4.1.2 on Ubuntu 22.04.3 LTS. I can switch to insert mode with i, but that's about it. Can't seem to enter visual mode, no copy/paste etc. I tried on the godot snap for Ubuntu prior to this (was godot 4.0) but the plugin wouldn't even load for that version.
Hello, great addon hope to see this improved with maybe more with c++ source editing, like better cursor visuals (faster blinks or solid block cursor etc.)
I think most of the binding there but w is missing, its the most important one I think.
Secondly when cursor at middle of a word, if you do dw, it deletes the whole word, so its doing diw, where it is the most useful, to delete half of the word.
Third one is probably easy too, D should delete everything after the cursor.
I tried to implement the first one, it is working I think, have no idea what I'm doing but here it is:
func move_to_next_word():
var current_text = code_editor.get_line(curr_line())
var i = curr_column()
while i < len(current_text) - 1:
i+= 1
if current_text[i] in [' ',':','(',')','.',',']:
break
move_column_relative(1)
move_column_relative(2)
if i == len(current_text):
move_line_relative(1)
code_editor.set_caret_column(1)
update_selection()
It's not fully functioning as it should, when cursor at end of the line and the end character is listed in that if statement, you have to press 2 times w to go next word,
and if next line's first character is tab, it select the tab instead of the word.
Godot 4.1 was lanched these days, I downloaded this awesome addon but it doesn't seem it work at this environment. Any chances for it to work on godot 4.1 ?
Pressing * on normal mode does nothing.
Dont have permissions for the repo so figured I would write out the markdown to be easily copied.
General plugin enabling instructions can be found here.
To enable Godot-Vim:
Note: If you already have an existing addons folder in your Godot project, move the contents of the downloaded addon folder to that folder
Navigating back to your editor, you should now see your vim keybindings enabled
Hope this helps save some time for people in the future!
Maybe I'l being stupid. But for me the autocomplete accept doesn't work with this plugin active. Thanks!
gt and gT are used to move back and forth between tabs in vim. Would be nice to let this switch which file you are currently editing.
While in normal mode, a user can type t<letter>
or f<letter>
to move their cursor before or on a character, respectively.
However, you cannot type dt<letter>
to delete all characters up until <letter>
, or ct<letter>
to delete all characters until <letter>
and be in edit mode.
Being able to easily ct_
to change a single word in a const MULTIPLE_WORD_CONST
is extremely useful!
In Vim, G
takes you to line 1. This is actually a special/default case of [count]G
, which takes you to line [count]
, e.g. 5G
takes you to line 5. This plugin does not have the latter feature. It would be very handy to be able to specify the line number to easily jump to a particular line.
Commands such as dw
and cw
work singularly, but if you d2w
or c3w
the action is not performed but the cursor is instead moved to the first character of the next word.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.