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
0
votes
1 answer

GM:S Keymap conflict code BUG

I've made a controls room for custom keymapping. I had an idea - if key is assigned to more than 1 control, then it shows up red. But it works only partially. Spawn code: with(instance_create(64,64,obj_button_key)) { mytext="UP: "; …
Martin
  • 15
  • 2
  • 7
0
votes
2 answers

mapping tab key in vim

I'm using Vim 7.4. I have mapped "Tab" key in normal mode to switch to insert mode. nnoremap a This works fine in .txt file but not in .cpp files. Why is that? Besides mapping, I also have clang_complete settings in my .vimrc file.
Gaurav
  • 744
  • 5
  • 8
0
votes
1 answer

change the keymapping under linux

Target make my system keymapping works in a way like vim; I want the cursor move down when pressing windowsKey + j I want the cursor move up when pressing windowsKey + k I want the cursor move right when pressing windowsKey + l I want the…
user1198331
  • 139
  • 2
  • 3
  • 10
0
votes
2 answers

How do I map keys to assign a value in vim?

I am using highlighted search in vim. So when I search for a word, all occurrences of the word get highlighted. After I'm done, I want to remove the highlighting. According to the Vim Documentation, :let @/="" clears the last searched pattern and…
Bonz0
  • 373
  • 2
  • 5
  • 17
0
votes
1 answer

Strange occurrences with controlling multiple keys being held down

With the below code, when a key is pressed its keycode is pushed to the keymap array if it's not already there and when a key is let up its keycode is taken out of the array. When testing this out by constantly shoving the keymap array to the…
Cains
  • 883
  • 2
  • 13
  • 23
0
votes
2 answers

Submlime Text 2 - Windows key behavior on Mac?

I'm using a Mac for development, but 15 years of Windows experience before that means certain keystrokes are hard-wired (like Home for beginning of line, etc). Is there a simple way to get Sublime Text 2 on my Mac to behave more like a Windows…
Steve Macdonald
  • 1,745
  • 2
  • 20
  • 34
0
votes
2 answers

Vim key mapping error

I am having a problem using omnicppcomplete with vim. Actually, I am not sure if it is a .vimrc problem or an omnicppcomplete problem. In my .vimrc, I have this command to generate tags for my project when I hit ctrl+F12: map :!ctags -R…
Sterling
  • 3,835
  • 14
  • 48
  • 73
0
votes
2 answers

Variable Types in Vim Functions

I want to conveniently remove an accidentally placed tab while using vim. The solution that jumped out to me is making an insert-mode mapping to the following vim function: function DeleteTab() redir => l:numSpaces "captures output of set set…
seewalker
  • 1,123
  • 10
  • 18
0
votes
2 answers

Cursor reset after key input - Vim

nmap gg=G imap gg=Ga I have this in my .vimrc, I'm in the middle of my source file and this lines works as expected which means that what is defined in equalprg is executed correctly, the problem is that after this execution my…
user2384250
  • 548
  • 5
  • 13
0
votes
1 answer

Vim key mapping not working correctly for Ctrl key not working

I'm trying to do the following mapping noremap :l l, or noremap l l, or some mapping that accomplishes the same effect, to make switching between window splits 100x easier. The issue is that I get an E20: Mark not…
Jonathan
  • 539
  • 4
  • 15
0
votes
1 answer

vimscript: make a key mapping works only in a specified buffer

I'a writing a plugin. I opened a buffer, and drap some menu items in it. I want to trigger some special function when a enter key is pressed. I used nmap :func() , but enter key triggered the func in other buffers as well. Can anybody tell me how…
DeanSinaean
  • 2,297
  • 4
  • 16
  • 19
0
votes
1 answer

Why won't Vim use my key mapping when I start a new session?

After mapping the F2 key in Vim in the following sequence, it does not work in a new Vim session: :map :ls Pressing F2 here displays the files. :mkexrc! Close Vim. Reopen Vim. Pressing F2 now does nothing. The mapping is visible in the…
zetter
  • 5
  • 2
0
votes
2 answers

qt setting QWSServer keymap from code

I need to a keymap for my embedded QWSServer application. Using environmental variables like this QWS_KEYBOARD="TTY:keymap=/german_keyboard.qmap" export QWS_KEYBOARD works, but isn't optimal for me. I tried to set it from code using QWSServer*…
Zulakis
  • 7,859
  • 10
  • 42
  • 67
0
votes
1 answer

Autohotkey isn't recognizing the active window?

WinGetPos,X,Y,W,H,A space::MsgBox,%H%,%W%,%X%,%Y% When this runs I get X and y to be 0 and I get the hidth and width to be the resolution to my screen I imagine something is happening where my desktop is being selected before this is run but I'm…
city
  • 261
  • 1
  • 5
  • 12
-1
votes
1 answer

Maping `:vs|term` to a single key is not working as expected in Vim

I want to open terminal in a vertical split with or possibly a single key. I tried :map :vs|term, but after this every time I open Vim, the terminal opens on its own (and still in horizontal view). I just wanna open terminal in a…
1 2 3
25
26