GithubHelp home page GithubHelp logo

godot-vim's People

Contributors

adamency avatar joshnajera avatar wenqiangwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

godot-vim's Issues

Is it possible to port this to Godot 3.5?

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?

Does not work if the text editing window is popped out

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` motion doesn't work for pairs

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.
image
image

Pressing 'o' on last line shifts current line down.

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

"a" motion does nothing [GD 4.1.2 stable]

Description

When doing "daw" "vaw" "da(" nothing happens, but they work with the "i" motion correctly.

Steps to reproduce

Try any "a" motion like those written above.

Screenshots

NA

Context

Godot 4.1.2 stable, editor, normal mode.

Issues on godot 4.1.2 on Ubuntu 22.04.3 LTS?

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.

Missing bindings

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.

Any chance to porting it to Godot 4.1?

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 ?

Adding instructions for setup

Dont have permissions for the repo so figured I would write out the markdown to be easily copied.

Installing and Enabling the Plugin

General plugin enabling instructions can be found here.

To enable Godot-Vim:

  1. Download the Zip of this repository
  2. Within your Godot project, open the project folder in your file explorer
  3. Open the Zip of Godot-Vim, and find the addons folder
  4. Copy the addons folder into the root folder of your Godot project

Note: If you already have an existing addons folder in your Godot project, move the contents of the downloaded addon folder to that folder

  1. From Godot, navigate to Project > Project Settings > Plugins, and enable Godot-Vim

Navigating back to your editor, you should now see your vim keybindings enabled

Hope this helps save some time for people in the future!

Autocompletion broken

Maybe I'l being stupid. But for me the autocomplete accept doesn't work with this plugin active. Thanks!

'd' and 'c' do not interoperate with 't' and 'f'

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!

G binding is missing argument

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.