Git Product home page Git Product logo

Comments (14)

cknadler avatar cknadler commented on July 3, 2024

Hey, thanks for the compliments. They make my day. ^_^

So I was definitely inspired by Vimperator. It's pretty sweet. There are some major differences between vim-anywhere and it though. Quoting the Vimperator docs:

Vimperator is a Firefox browser extension

vim-anywhere runs gVim or MacVim native on your system so you can use it anywhere. For instance, I commonly use vim-anywhere to type up emails. I've had a few people mention other use cases that I thought were really interesting. For instance, corresponding over chat involving code and you want to quickly write up an example that is properly formatted.

However, Vimperator does not try to be a 100% Vim clone

vim-anywhere is just invoking Vim, so it it is 100% everything you would expect and nothing more.

Hopefully that clears things up. Cheers!

from vim-anywhere.

wikimatze avatar wikimatze commented on July 3, 2024

Hi Chris,

that's something I can work with. I installed it and now I opened thunderbird and press to edit the text in gVim but nothing happens. Do I have to restart my system after installing it? Don't know if I'm the first Ubuntu user ... :).

from vim-anywhere.

cknadler avatar cknadler commented on July 3, 2024

Hmn, thats interesting. Can you provide me with more details? What exactly happens? Does gVim open? Do you :wq gVim or are you closing it by closing the window?

Also, what version of Ubuntu are you running?

from vim-anywhere.

cknadler avatar cknadler commented on July 3, 2024

The problem could either be the shortcut isn't getting set properly, or there is something wrong with the script. I'm better on the former.

from vim-anywhere.

wikimatze avatar wikimatze commented on July 3, 2024

I'm running Xubuntu (Ubuntu) 13.10 and I don't have a running gVim session. I just installed the script and did no configuration. You can find my vim configuration here: https://github.com/matthias-guenther/vim-settings

from vim-anywhere.

cknadler avatar cknadler commented on July 3, 2024

Hmn, I definitely haven't tested anything on Xubuntu. Right now we only officially support Gnome. That said, I believe newer versions of Xubuntu use dconf so we should be able to get it to work.

The problem is, we are using the gnome interface to dconf, gsettings right now. @pyrated or I will open up a pull request to fix this sometime later tonight.

from vim-anywhere.

wikimatze avatar wikimatze commented on July 3, 2024

Okay, yeah did not thought about xfce :). Thanks for taking responsibility in this issue.

from vim-anywhere.

cknadler avatar cknadler commented on July 3, 2024

Apparently using plain old dconf through the command line is a huge pain. gsettings (what we currently depend on) is much simpler. Until I can figure out dconf I can't really fix the installer. That said, it should fail because you would be missing gsettings and gconftool. Did it succeed? If so, thats definitely a bug.

from vim-anywhere.

wikimatze avatar wikimatze commented on July 3, 2024

I executed curl -fsSL https://raw.github.com/cknadler/vim-anywhere/master/install | bash and the installation was a success but running gconftool -t str --set /desktop/gnome/keybindings/vim-anywhere/binding Ctrl+Alt+v as well as disabling vimperator doesn't change anything. I could not find the /desktop/gnome/keybindings/vim-anywhere/binding folder on my system beginning from the /desktop directory. I think keybindings are stored under xfce under another location.

from vim-anywhere.

lavignes avatar lavignes commented on July 3, 2024

@matthias-guenther /desktop/gnome/keybindings/vim-anywhere/binding isn't an actual directory. It's a path inside of a configuration file.

There is currently an issue with systems that use dconf (including Xubuntu) but also have gconftool installed.
If you have gsettings installed then running:

gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['others', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/vim-anywhere']"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybindings:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/vim-anywhere name "vim-anywhere"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybindings:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/vim-anywhere binding "<CTRL><ALT>v"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybindings:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/vim-anywhere command "~/.vim-anywhere/bin/run"

Should correctly bind the keys. These commands are supposed to be running during install on systems like yours but they are not at the moment. I currently have no way of testing for xfce-based desktops right now, so your milage may vary.

You can also graphically modify these settings using dconf-editor.

from vim-anywhere.

wikimatze avatar wikimatze commented on July 3, 2024

Hi @pyrated thanks for your help. I actually could set gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['others', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/vim-anywhere']" option and it showed up in the settings when I fire up dconf-editor.

But when I run gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybindings:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/vim-anywhere name "vim-anywhere" I get No such schema 'org.gnome.settings-daemon.plugins.media-keys.custom-keybindings'.

Again, I'm a little bit lost :).

from vim-anywhere.

ansatz avatar ansatz commented on July 3, 2024

having same error as wikimatze first gsettings command works, second give No such schema ... error was this resolved ?

from vim-anywhere.

cknadler avatar cknadler commented on July 3, 2024

Hey, are you guys still having this issue? Let me know and I can dig a little more into it. Thanks!

from vim-anywhere.

wikimatze avatar wikimatze commented on July 3, 2024

Almost forgot this issue 😄, I tried gconftool -t str --set /desktop/gnome/keybindings/vim-anywhere/binding "<CTRL><ALT>v" and it is still not working. I'm now using Xubuntu 14.04.

from vim-anywhere.

Related Issues (20)

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.