Comments (11)
For newer releases (I'm using 15.10) that use dconf instead of gconf:
- Go to All
Settings -> Keyboard -> Shortcuts -> Custom Shortcuts
. - Add custom keyboard shortcut:
- Name:
vim-anywhere
- Command:
/home/username/.vim-anywhere/bin/run
- select the new shortcut and press
ctrl+alt+v
- Name:
To see these settings, open dconf
editor and navigate to org -> gnome -> settings-daemon -> plugins -> media-keys -> custom-keybindings -> custom0
or in terminal:
dconf read /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name
dconf read /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding
dconf read /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command
from vim-anywhere.
This worked for me (ubuntu 16.04) after adding the entry via Go to All Settings -> Keyboard -> Shortcuts -> Custom Shortcuts. (couldn't get it to actually assign the key map):
dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding "'<Ctrl><Alt>v'"
from vim-anywhere.
Hey, sorry for the trouble.
What was the output of the installer? It should fail the install if you are missing any dependency. You are using Gnome right? I know you said Ubuntu, but just double checking.
from vim-anywhere.
Hi, @cknadler!
According the installer everything is installed and I already had Gnome and gVim installed.
Apparently everything is alright; vim-anywhere simply doesn't work... =(
from vim-anywhere.
Thats pretty strange. By nothing happens, I'm assuming you mean that gVim doesn't show up? What happens if you run the script directly?
$ ~/.vim-anywhere/bin/run -v # this will run what the shortcut would run with verbose output
If it still doesn't show up, paste me the output of that script.
from vim-anywhere.
I had the same problem, but manually setting the key-binding resolved it for me. After a little testing though, I think gconftool isn't setting key-bindings even if it is installed, I'm on Linux Mint.
from vim-anywhere.
I had the same problem on Ubuntu 13.10.
Here is what I've got:
- vim-anywhere is properly configured, and
gconftool --get /desktop/gnome/keybindings/vim-anywhere/binding
properly returns<CTRL><ALT>v
. - Newer versions of Ubuntu seem to use
dconf
rather thangconf
. - setting keyboard shortcut for
~/.vim-anywhere/bin/run
manually (from All Settings -> Keyboard -> Shortcuts -> Custom Shortcuts) and rebooting (essentially, logging out and in) solves the issue.
After setting shortcut manually, in my environment,
dconf list /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0
shows 'binding', 'command' and 'name', where settings are stored.
dconf read /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command
shows '/home/(my_user_name)/.vim-anywhere/bin/run'.
from vim-anywhere.
We are aware that newer versions of gnome don't use gconf anymore. The current solution is to use gconftool if it is installed and use gsettings (dconf) as a fallback to set the shortcut. The real issue here is that people obviously have both gconf and dconf installed on their systems. We need a better solution to detect if a user has dconf as their main settings daemon vs gconf.
from vim-anywhere.
@pyrated good point. We will have to look at an alternate way to detect wether to use gconftool
or gsettings
. Clearly the current solution isn't working in all cases.
from vim-anywhere.
Incidentally, I was running into (what looked like) this problem with Ubuntu 14.04 and Gnome 3.10.4. ctrl + alt + v
didn't launch gvim. But setting the shortcut in Keyboard -> Shortcuts -> Custom Shortcuts didn't resolve it.
I found that using the full path to vim-anywhere in Custom Shortcuts, e.g. /home/user/.vim-anywhere/bin/run
instead of ~/.vim-anywhere/bin/run
, worked as expected. The shortcut had been created successfully, but for some reason tilde expansion wasn't happening.
from vim-anywhere.
[Yes, I know that the following is neither a code issue nor Linux. Please feel free to add it to the FAQ or README or something; just pls don't merely delete it. Thx. I've put it here because, when I was looking for guidance, this is where I ended up. And I'm sharing the resolution in case anyone else hits it in the future.]
FYI, the keyboard shortcut didn't work for on MacOS Big Sur until I restarted my machine.
from vim-anywhere.
Related Issues (20)
- macOS - No hotkey in Services HOT 3
- feature proposition: Automatic pasting HOT 5
- Can't auto refocus the previous editer after quit vim in Ubuntu18.04 HOT 2
- How to open a new buffer in current MacVim window? HOT 1
- Doesnt work on only i3wm? Really needs gnome? HOT 1
- Can't lock the PC, the lock file doesn't exist HOT 1
- Keybind Not Working in Chrome HOT 1
- Workflow starts, but nothing else happens HOT 1
- change key board shortcut on ubuntu HOT 1
- Switch to soft wrap on launch?
- Use without temp files on mac [suggestion]
- Plugin not working HOT 2
- Vim takes a long time to start after being invoked.
- Open Vim with selected text
- On Linux Mint Cinnamon: use `cinnamon-settings` or `dconf`
- Support without gvim. HOT 9
- Changing xclip to xsel for Linux HOT 2
- not working? (with screencast) HOT 2
- Windows version HOT 3
- put vim in insert mode automatically HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-anywhere.