Questions tagged [keymapping]

keymapping refers to binding keyboard input to specified output or specified commands

keymapping covers configuration techniques and scripting, rather than tools and devices.

References

384 questions
1
vote
3 answers

mapping # in vim

In my .vimrc I have mapped the #-key to a macro for commenting out/in lines of code. Unfortunately # in vim already has a function - it searches backwards for the word beneath the cursor. What I would now like to have is a way to map this…
0
votes
1 answer

ReBinding Right-Alt Key in XEmacs

I'm using XEmacs on Windows 7 installed in MacBookPro. So I don't have a Control-Key on the right side. I would like to make the right-option key to work as right-ctrl. I googled and tried the code below, but it is not working: (setq…
Prabu
  • 2,313
  • 2
  • 28
  • 31
0
votes
1 answer

How can I get a hotkey with ":" (colon) that works in AutoHotKey?

I am trying the following but only the first part works: *^!;:: Send < return *^!`::: Send > return Apparently it is not the proper way to escape the colon ":". Do you have any idea on how to do this?
Erwin Mayer
  • 18,076
  • 9
  • 88
  • 126
0
votes
2 answers

macports vim with +keymap option

I've got a Mac OS X Lion. And there's a vim, that is installed from macports. Unfortunately, it lacks a +keymap option. Is there a way I can install vim from macports with this additional option? As far as I know, ports fetch vim sources and compile…
Andrey Lushnikov
  • 3,143
  • 3
  • 22
  • 21
0
votes
2 answers

Overriding Ctrl+H in vim

I'm sorry, for some reason I'm having a lot of trouble figuring out how to map my backspace button to Ctrl+H in my vimrc file. I've looked a lot online, and haven't found anything that seems to work. Any help is much appreciated.
Mason
  • 6,893
  • 15
  • 71
  • 115
0
votes
0 answers

Karabiner Disable right_command key to use it for other complex modifications

I wan't to create a shortcut ( right command and r to } ) because it is easier and I don't use the right command a lot , I modified my complex modification json (and there are no errors in it) but when i try it in a browser tab ( for instance ) it…
0
votes
0 answers

How to preserve yanked text in buffer after pasting over selection in Visual mode using VSCode Vim extension?

I am using the Vim extension in Visual Studio Code and I'm facing an issue with the buffer behavior. When I yank some text and then paste it over a selection in visual mode, the yanked text gets replaced in the buffer with the text that…
0
votes
2 answers

Unusual behoiur in tmux, Tab clears the pane when it's not set to

For some unknown reason in Tmux the 'Tab' key clears the pane I'm in, which is annoying when I use 'Tab' to indent in Neovim and 'Shift Tab' to unindent. Is there a way to fix this (stop 'Tab' clearing my panes and work as intended) I've tested this…
arkosno
  • 51
  • 5
0
votes
0 answers

How set the keymap of Ctrl+Backtick in vim?

I want to set a keymap for Ctrl+` in vim. I tried all of the following: ` ^` I want it to open the terminal similar to the functionality in VSCode. I expected this to work: nnoremap :terminal But it doesn't
an4s911
  • 411
  • 1
  • 6
  • 16
0
votes
0 answers

neovim :imap but stay printing before to replace

I'm writing a mapping in neovim. Here is: :imap abcd efgh When I type 'abcd', it replaces by 'efgh'. This is the expected behavior. But as typing 'abcd', it prints a, then replaces a by b, then replaces b by d and, finally when I type 'd', it…
Laurent Claessens
  • 547
  • 1
  • 3
  • 18
0
votes
0 answers

How to write vim script to continuously move to the next window until window has a specific filetype in vim?

for example I have multiple windows in a vim instance: +---+---+---+ | | | | | A | | | | | | | +---+---+---+ Different window has different filetypes, some are plugins (NvimTree/undotree/vista), others are real editing buffer…
linrongbin
  • 2,967
  • 6
  • 31
  • 59
0
votes
2 answers

Replace selected Text with String, via Keymap

I want to replace the selected Text (in Visual-Mode) with the current Date. Currently I am trying to call a cmd and then use the 'change' method. keymap.set("x", "nf", function() vim.cmd(string.format("insert\n%s",…
0
votes
1 answer

Mapping Media Keys to Seek Forward and Back in Spotify

I'm running Ubuntu, and I like to use the media keys on my keyboard to control Spotify. For basic functions such as Play, Pause, Skip to Next, and Skip to Previous, this is easy, since I can use dbus [1]. However, I'd also like to be able to seek…
123MilitaryNerd
  • 103
  • 2
  • 7
0
votes
0 answers

how to typing with dvorak / colemak while in insert mode, but retaining vim’s normal key bindings in vscode vim?

I want to use dvorak layout to code in vscode,but i have a mass configure file in vscode vim based on the qwerty keyboard layout and i dont want to change my configure file. So how to use dvorak when i was typing while in insert mode in vscode vim…
0
votes
0 answers

Matrox DSXLE5 mvConnectorConfig - how to check current -KeyMapping value

I'm looking if there is a way to call the board (DSXLE5) and request info of the current KeyMapping value? It is the first time I deal with DSX5 family, I've already identified that the firmware change process is different, as before, to change a…