[Solved] Urxvt, vim and ctrl + arrow keys

I just switched to rxvt-unicode - mostly because of its ability to set the WM_CLASS variable (Xfce's terminal, my previous terminal application, was unable to do so, and I was tired of dragging all my apps to the virtual desktop I wanted to have them on). So far so good, but I bumped into a problem I knew from a previous encounter with urxvt: it maps ctrl+left/right differently than xterm (and Xfce's terminal), and I can't jump words in Vi anymore.
I have been trying to map them in my ~/.virc to reproduce the behaviour, but that's not working (and I'm clueless why). This is the excerpt from .virc:
map ^[Oc W
map ^[Od B
map! ^[Oc ^[Wa
map! ^[Od ^[Ba
Ctrl+Left generates ^[Od, Ctrl+Right generates ^[Oc. Vi will put itself in insert mode (if it isn't already) when i press those combinations and insert a d or c, depending on the combination pressed, but no jumping words.
Does someone know what I'm doing wrong?

@ davvil & hbekel: Awesome, I'll try that when I get back home and report .
skottish wrote:
The solution that RedHat uses is to modify /etc/inputrc. I assume that means that ~/.inputrc can be used also. These are the two lines that they added in the rxvt section for Ctrl <Right, Left>:
"\eOc": forward-word
"\eOd": backward-word
Skottish, I already have those in my ~/.inputrc. The thing is, I understood /etc/inputrc and ~/.inputrc are used by readline and apps using it, but vim is not one of them. Those sequences make Ctrl+Right/Left work like in xterm and similar terminals (Xfce's terminal e.g.) - you can jump words - but Vim won't pick it up, since it doesn't use readline.

Similar Messages

  • Solved My left and right arrow keys are not working

    I just installed gnome (been using kdemod) and now, while in gnome, my left and right arrow keys are not working. Please help me solve this. I am not using compiz.
    Last edited by patrickaupperle (2009-03-25 11:19:04)

    Hi!
    I had that problem with Debian and later Arch, after I messed something up (never found out what). There was a chaotic but easy cure though (I've got no idea, why it did that on 3 different installations the exact same way - might be a logitech-keyboard issue or something... me-as-user-related)?:
    - do all keyboard changes needed in xorg.conf NOW, had to repeat "strange steps" after each change.
    - add new keyboard layout (no changes to default) in gnome keyboard settings
    - delete old keyboard layout
    - browse trough the keyboard layout "previews" of the newly added layout until it crashes (this step might be optional *g*)
    - restart gnome, add "new new" layout, delete "new old" keyboard layout, and set the "new new" layout right (try evdev-manages first, then switch to youkeyboard/yourlocal if that didn't do it).
    good look!

  • Globally map Ctrl   B and ctrl   F to left and right arrow keys, respectively

    Does anyone know how I would *globally* map Ctrl + B and ctrl + F to left and right arrow keys, respectively? This keystroke works for some applications, but not all. I'd like it to always work.

    So, it is now June and still no fix.  This is incredibly annoying when you are giving a professional presentation in front of an audience and the speaker wants to go back a slide.  It's enough to change presentation software.
    In truth, the Presentation Module in LR5 is vastly inferior to other dedicated software.  For instance, you can't add a text slide as a divider between "chapters," as far as I can figure out, you can't merge slideshows or go from one to another without exposing your entire screen, the order of slides is over-ridden by some predetermined metadata rather than being able to choose two catalogs and put them into one slideshow, deciding yourself which catalog should play first.
    Are any of these changes in the works?
    Any eta on the right/left arrow fix?
    This could be SO great.  I hope it is moving in that direction.

  • Up and Down Arrow Keys Not Working

    I have had the HP Pavilion g6t-1b00 CTO Notebook PC for a year or two now. I've been having a couple of problems with internet connectivity and putting my computer on "sleep".
    However, few days ago, my keyboard randomly started acting weirdly. When I would try to type certain letter/numbers, they would come out differently. 
    Ex. pressing the space bar would show up " ./M" instead
    I tried restarting my computer many times and installed a BiOS update which fixed all of my issues except for my up and down arrow keys. As of now, they have no function; I can't scroll with them and they don't seem to be taking on the role of another key. I have tried using the keys on different programs. Using the touch pad to scroll works but I still can't use the up and down keys.
    Is there anyway to get the up and down arrow keys to work again?
    This question was solved.
    View Solution.

    Hello Larasoft,
    I understand you’re up and down arrow keys are not functioning, is that accurate? I will do all I can to help you with this issue.
    I want you to access the setup menu to test the keys out, see instructions below.
    1.       Shut down the computer.
    2.       Locate the F10 key across the top.
    3.       When you turn the computer back on immediately start tapping the F10 key repeatedly.
    4.       If successful you should be on setup utility screen. What’s different about this is you can only use you arrow keys to navigate.  
    5.       Try working the arrow keys  up and down on different menus and see if they work.
    6.       Once you tested it press F9 to setup defaults and then press F10 to save and exit.
    If I have been helpful or if you’d like to say thanks you can click the white star under my name to give me Kudos.  I really appreciate it.
    Please respond at your earliest convenience with you results.
    Thanks
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

  • Oracle 10g and JAWS -- use of Up and Down Arrow keys

    We are in the process of converting an Oracle 6i application to 10g and applying Accessibility standards to our application so that it will work with the JAWS screen reader.
    The version of JAWS we are using is 7.10.452 Unicode, The Java Access Bridge version required is version 1.2.
    THis problem manifests itself when using the UP and Down arrow keys to move between rows in a mutli-record screen.
    The problem is that on using either the Up or Down key JAWS read the content of the current field before moving to the new record and announcing the prompt and content.
    Has any one got any solution to this.

    Hello Larasoft,
    I understand you’re up and down arrow keys are not functioning, is that accurate? I will do all I can to help you with this issue.
    I want you to access the setup menu to test the keys out, see instructions below.
    1.       Shut down the computer.
    2.       Locate the F10 key across the top.
    3.       When you turn the computer back on immediately start tapping the F10 key repeatedly.
    4.       If successful you should be on setup utility screen. What’s different about this is you can only use you arrow keys to navigate.  
    5.       Try working the arrow keys  up and down on different menus and see if they work.
    6.       Once you tested it press F9 to setup defaults and then press F10 to save and exit.
    If I have been helpful or if you’d like to say thanks you can click the white star under my name to give me Kudos.  I really appreciate it.
    Please respond at your earliest convenience with you results.
    Thanks
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

  • Spacebar,Enter,Delete,up and down Arrow keys are not working...

    Hello Everyone,
    My Hp Laptop has gone through a serious problem. Its Spacebar,Enter,Delete,up and down Arrow keys have stopped working . I am not sure how this problem caused . So i gone  through varios fixes, that were -
    1. Rstoring to an earliar date.
    2. Re-installling Keyboard driver
    3. Formating the System.
    The third fix Formating helped me and my keys started working . After some day I installed a software HP Network Manager but this after installing it again those keys stopped working and also the LED lights on Caps Lock and Wi- fi are not turning on but these two are functioning normally.
    the some of the information related my HP laptop are-
    Model: Pavilion G6
    ram 4 gb.
    OS: Windows 7 Home Basic
    can anyone please suggest me is it a hardware related problem or some software/driver  related ? And also what next i do to fix this serious issue...
    Thanks in Advance.
    This question was solved.
    View Solution.

    Hi Alien004,
    You and Advance23 have pretty much covered everything at this point and I believe that it is a hardware issue. I would advise that you contact HP regarding a possible repair. You can reach HP Total Care at 1-800-474-6836 in North America or start here outside of North America.
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • Up and down arrow keys are not working properly when using SQL CLI on Linux

    Every time I hit up, down, left, and right arrow keys to return to a previous sql command I got ^[[D, please any hints to fix this issue?
    The backspace works fine with me. I tried to use stty to fix this issue with no luck.
    Thanks
    Mohamed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Which SQL client and Linux version are we talking about?
    Assuming you are using the Oracle sqlplus client... it does not support command line editing and history using the arrow keys. For this to work you will have to install a product called Readline Wrapper. See my answer at the General Database forum:
    sqlplus command line editing

  • Using left and right arrow keys as accesskeys

    I am trying to remediate an online course and need to apply left arrow key to next button (advance to next page) and right arrow key to back button (return to previous page). Does anyone have javascript code that would allow this?

    This is already built into major browsers.  This assumes the browser history folder contains more than one page. If the browser's history folder is empty, nothing will happen.
    For Windows users:
    Alt+Left arrow = back one page.
    Alt+Right arrow = forward one page.
    http://en.wikipedia.org/wiki/Access_key
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Why after i update my left and right arrow keys stop working

    my left and right arrow keys stoped working after i updated to Mavericks now the dont work

    Hello ccombs2014,
    It sounds like 2 of your keys are not working after updating to Mavericks. I found this section of an article for you to help troubleshoot this issue named:
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    Some keys don't work as expected
    From the Apple menu, choose System Preferences.
    From the View menu, choose Speech.
    Click the Text to Speech tab.
    If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
    Click the Universal Access pane in System Preferences, click the Keyboard tab.
    Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
    In the Universal Access pane, click the Mouse tab, and make sure Mouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, see Unable to type while Mouse Keys is enabled in Mac OS X.
    If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
    If the issue persists, use Keyboard Viewer to help isolate the issue:
    Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
    Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
    Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
    From the Input (flag) menu, choose Show Keyboard Viewer.
    If the keyboard is connected and detected by Mac OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
    Start from the Mac OS X Install Disc, choose Terminal from the Utilities menu and test the keys which were previously not working.  If the keys work while started from the Install disc, then the keyboard itself is working correctly.  Use Mac OS X: How to troubleshoot a software issue to isolate the software issue that may be causing the keys to not respond.
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • Why am I recently unable to use my mouse to scroll email topics or content?  I can only use the up and down arrows keys to scroll.

    Why am I recently unable to use my mouse to scroll email topics or content?  I can only use the up and down arrows keys to scroll. I am able to use my mouse to scroll through internet searches.  It only seems to have affected my email messages.

    Try a restart.
    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode - Mavericks
    Safe Mode - About

  • I would like to capture L and R arrow key action when recording a captivate 5 project

    Hi All out there,
    I would like to capture L and R arrow key actions besides left or right mouse clicks.
    Enter is possible if a click has preceeded :-)
    Right mouse interactions are captured :-)
    and now the tricky one, what about those L and R arrow keys?
    In the user interface that I capture there is the possibility to  increase or decrease values by use of the arrow keys on the keyboard.
    These actions need to be captured in the demo, assessment and training mode.
    Can you help me with the needed settings to succeed?
    PS: I have found out that up down arrow keys are not possible as this is a  functionality that eould be taken over by browsers like Explorer for  navigation.
    I am hoping U out there can help !!!
    Stephanie

    Hi,
    Currently, Captivate capture does not generate captions for Left, Right, Down, Up arrow keys.
    If you think it is something you would like to see in captivate, please log a feature request here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=5.
    Thanks,
    Sushma

  • Move to previous or next magnified photo     Press Left Arrow and Right Arrow keys does not work

    Move to previous or next magnified photo
    Press Left Arrow and Right Arrow keys
    This command no longer works in iPhoto. The photo just bounces for a moment, then all the photos begin scrolling. I used to be able to just hit the key to scroll one at a time.

    What version of iPhoto and system are you running?  What mode are you in, edit, full view, full screen, ???
    OT

  • Controlling a projector (presentation) using left and right arrow keys

    Hello i have a cdr-rom im producing, im creating an
    interactive presentation and i would like the user to be able to
    move from page to page using the left and right arrow keys on the
    keyboard how (1) do you add the script ie, on the timeline etc (2)
    what is the exact script i need to use. Im fairly new to director
    so could you please make it as easy as possible to understand. Any
    help would be great thank you.

    You want to create a keyDown script in a movie script window.
    You can get the keycodes for the arrow keys here:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15887
    Do a search in the Lingo forum for more info on writing a
    keydown script. There are many examples to choose from.

  • Left and right arrow keys are not working properly now

    I searched the forum and didn't see this posted. My left and right arrow keys are not working properly now.
    For example, when typing, left arrow does not produce the desired action (move cursor one spot to the left), and right arrow does not produce the desired action (move cursor one spot to the right). Also, control + left no longer activates spaces, and control + right no longer activates spaces.
    Interestingly, in investigating the problem, I noticed that my shortcut keys for activating spaces and for activating expose had been changed (software update?). Before, I had set F5 (without pressing fn) for expose and had set F6 (without pressing fn) for spaces. Now, I noticed spaces was set back to the default of F8 (requiring fn).
    The issue persists after shut down, and even when logged on to other users, e.g. Guest.
    All other keys seem to be working fine, including the up and down arrows.
    I don't think it's a cleaning issue because fn + left + right produces the "[" character on the screen.
    Any ideas?

    I'm having the same type of issue on my MacBook except not with arrow keys. The volume keys do different things when I click on them. For example, the mute key brings up the dashboard and the volume up key makes all the open screens smaller (don't know what this feature is called). I did a software update then restarted the computer when this starting happening. Any help would be greatly appreciated, thanks.

  • My left and right arrow keys are not working

    I am having problems with my left and right arrow keys no longer working. I have tried restarting, running Mac hardware check, and nothing has come up. I haven't spilled anything on it, so I don't know why they have stopped working.

    Sorry I didn't get to this thread sooner. From your posts it actually sounds like you may have a defective keyboard. Going to the nearest Apple store for assistance is a good idea. Be sure to [make an appointment|http://www.apple.com/retail] first or you may have to wait a long time to talk to a Mac Genius.
    Best of luck.

Maybe you are looking for

  • Firefox wont open webpage when linked from another program

    When linking from other programs, a new firefox window will open, but displaying a blank page instead of loading the page. I checked for firefox being the default web browser, but I cant figure out what other options may be important. It actually sta

  • Silly question I am sure....but do you have to pay for iTunes radio?  Thanks

    Silly question.....Do you have to pay for Itunes Radio ....for my Mac?

  • Hands free problem

    Have a Bury car kit installed and have used it without problem with a 6820. Have changed the cradle to suit my new 6020 but does not cut out car radio when ringing. Manual tells tyou to go to enhancement setting but this does not appear on the phone

  • PPPOE Client vpdn group

    Hi I need to use a Cisco ASA 5505 on a BT Openreach connection, The configs that I have ben using are below - interface vlan2 nameif outside security-level 0 pppoe client vpdn group BTINFIITY ip address pppoe setroute Everytime I enter pppoe client v

  • Problems accessing SWF info using load

    i am really trying to use AS3 but having many difficulties using common tasks that seemed straightforward before. i want to find out the totalframes of an SWF that has been externally loaded using the load method. my script is this so far: import fla