Using alt key in console vim.

Hi folks,
Does anyone out there have a working method for using alt-<key> mappings in vim on the console? I've read a fair amount and the consensus seems to be "tweak all these different things to find what works on your system". So, what works on Arch (on a standard PC)?
First off, I read this:
http://vimdoc.sourceforge.net/htmldoc/m … p-alt-keys
I am currently trying some vim maps like
nmap <a-s> <C-w>s
And I'm using urxvt, so have tried the following in my .Xdefaults:
URxvt*meta8:true
This stops urxvt from converting alt key presses into esc-<key> patterns, but it's not activating the vim map. (It works in gvim BTW).
Has anyone got this to work? Or is the consensus that esc-<key> patterns are the way to go, with a .vimrc adapted to accept them, e.g. as in this:
http://vim.wikia.com/wiki/Fix_meta-keys … nsert_mode
A working config would be much appreciated!
Pete.

petelewis wrote:
Mr.Elendig wrote:it returns ^[a as it should.
Ah ha - okay. So you're using escapes too, rather than meta8 (this is the default, so makes sense). Yeah, I got it working doing that, but had to adapt my .vimrc to get it to acknowledge the ^[ as "alt". Didn't you, or did a simple map of e.g. <A-a> suffice?
Are you running it in screen/tmux btw? and what is your TERM set to?
Yeah, I thought that too and though I do run it in tmux usually, I've been testing it both with and without (TERM is set to screen-256color BTW) and it made no difference. Still, unless I specifically map the ^[ to alt in vim, it doesn't work. With meta8 it works so long as the locale is not UTF-8.
Guess I've got a workaround for now, but it would be nice if meta8 and utf-8 worked nicely together.
Thanks.
Could you please show how your vimrc looks like? I have the same problem and I'm interested in your workaround.

Similar Messages

  • Re: Using Alt-Key combinations

    Unfortunately this happens not only with Alt-Key combinations. It also
    happens with the ordinary F10 key: Windows activates the menu and then
    Forte gets the FKey event. The problem is that now the user has to press
    ESC to deactivate the menu and continue normal processing. There is no
    known cure yet...
    Tony Elmore wrote:
    >
    We are attempting to use Alt-Key combinations for a shortcut key combination
    for push buttons using the SetAsFunctionKey method and FunctionKeyPress
    event. When we press the Alt-Key combination, it appears that Windows is
    trying to find a menu item with that shortcut combination or a button with
    that combination. Since Windows can not find the proper element with that
    combination, it beeps at us. At that point, Forte picks up the key
    combination and will post the FunctionKeyPress event.
    The application will work fine, but the beep is not only annoying, but also
    is misleading for those individuals using accessibility tools like screen
    readers who rely upon audible queues for detecting errors in keyboarding.
    Has anyone found any viable solutions to this problem?--
    Dr. Thomas Kunst mailto:[email protected]
    sd&m GmbH & Co. KG http://www.sdm.de
    software design & management
    Thomas-Dehler-Str. 27, 81737 Muenchen, Germany
    Tel +49 89 63812-221 Fax -444
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    petelewis wrote:
    Mr.Elendig wrote:it returns ^[a as it should.
    Ah ha - okay. So you're using escapes too, rather than meta8 (this is the default, so makes sense). Yeah, I got it working doing that, but had to adapt my .vimrc to get it to acknowledge the ^[ as "alt". Didn't you, or did a simple map of e.g. <A-a> suffice?
    Are you running it in screen/tmux btw? and what is your TERM set to?
    Yeah, I thought that too and though I do run it in tmux usually, I've been testing it both with and without (TERM is set to screen-256color BTW) and it made no difference. Still, unless I specifically map the ^[ to alt in vim, it doesn't work. With meta8 it works so long as the locale is not UTF-8.
    Guess I've got a workaround for now, but it would be nice if meta8 and utf-8 worked nicely together.
    Thanks.
    Could you please show how your vimrc looks like? I have the same problem and I'm interested in your workaround.

  • Using ALT key in list view doesn't quite work like it used to...

    I haven't used this feature since OS9 so please excuse my ignorance!
    In OS9 when viewing files in Finder in List view, one used to be able to open subfolders by holding down the ALT key while clicking the folder triangle. Close the main folder and ALT-clicking open again would open a second level of subfolders et cetera.
    However, in OS X it appears that ALT-clicking a folder's triangle now opens ALL subfolders in one go (which can hold up the Finder quite a bit if you have a lot of stuff), and ALT-clicking the folder's triangle to CLOSE the folder doesn't close all the subfolders in one go (they are all open within the main folder).

    A faster way, which works for me when I have logged out, is to log in, get the Discussions home page and then hit reload, which takes me to the thread I was looking for.
    Hope this works for you,the alternative is to keep logged-in in your browser and avoid all this.

  • Lasso tool problem, using alt key, no click within 5sec causes loss of active window focus

    I have been using Photoshop since ver. 4 and have never seen this happen.  The only difference is now I'm on Windows 7 64bit.  Did not have this problem with XP.  Current version CS3 Extended.
    Problem: While using Lasso tool with the alt key if I do not make a mouse click in 5 seconds Photoshop's active window loses focus for a split second and then the first point of my selection and the last point will connect.  Thus, wasting my time and my attempt at a selection.
    I have task bar buttons to "Never combine".  I see for that split second what appears to be another program button opening but it is so fast that I cannot see if there is a name on the task bar button.  The current Photoshop button moves to the right and back too fast.  This all happens very quickly as the window loses focus.
    I first thought it was some another program but after many searches found nothing I can identify as the cause.
    Right before posting this I had a thought and did a test that concluded in the 5 sec rule. For over a minute I held down the alt key and made a mouse click within the 5 second window of time and there was no loss of window focus.  While still holding down the alt key in this same test but not making a mouse click within 5 seconds the window lost focus and the tool stopped with my selection.
    I have a wireless Logitech M305 mouse that this morning updated the driver to its current version 5.20.51, Control Center version: 6.20.50.
    I have not tested a wired mouse, yet.
    Any help would be appreciated.  Anyone else seen this?  Windows 7 64 bit the culprit?????
    Message was edited by: golfnut333

    UPDATE
    After I removed Photoshop from Norton 360's Administrative Settings_Silent Mode Settings_User-Specified Programs, I did not have the problem with the lasso tool that I first had with loss of window focus.  I then put Photoshop back in the 360's settings and the lasso tool still worked, BUT...............
    After a couple of days of not using Photoshop and turning computer on and off in that time, I tried Photoshop again and the same problem, it came back.  Loss of focus after 5 seconds of not clicking mouse.  So, once again I open Norton and took Photoshop out of the User-Specified Programs and the problem went away, no loss of focus.
    So, I will see if after a couple of days of turning on and off the computer and NOT putting Photoshop in the Norton's User-Specified Programs setting if the problem stays fixed.
    I don't have to have Photoshop in the Norton's setting I just thought that it would be a good idea so Norton didn't try to do any background processes or whatever while I was working in Photoshop or I was rendering a filter or something.
    Another thought I also have the Full Screen Detection setting ON.  I do use Photoshop in Full Screen mode so maybe when having both the Full Screen mode and User-Specified Programs setting selected it makes something go wacky.
    Hope this helps anyone having the same problem I "did".  Will post back after a few days to let you know if focus problem is gone.
    If it does relieve the problem then I will leave Photoshop off the list in Norton.  No sense in trying to fix something that really doesn't matter, really.
    UPDATE 2
    January 8, 2011, I tried the lasso tool again and it still appears to be working. I did my standard test of holding the alt key and clicking to make selections then not click for 5 seconds or more and I did not lose window focus.  I do not know why the Norton 360 setting triggers the loss of focus but since I turned that setting off I'm not having any problem.
    Will update again if something changes.
    Anyone else out there with the same problem that was solved using this method?
    Message was edited by: golfnut333

  • My navigation bar will only remain in view for one request after using alt key

    Everything worked fine for over a year on Mozilla firefox, suddenly I have no navigation or tool bar. If I press the alt key the bar appears and I am able to click on one command and then the bar disapears again. I followed the instructions online and clicked on the restore default bar, to no avail. It is a royal pain to have to alt key to open a new tab from the bookmarks everytime. If I can't figure it out I will have to stop using firefox which until now I was in love with. Please Help

    After pressing Alt, in the View menu select Toolbars, then click on "Menu Bar" in the list of toolbars. That should make it permanently display.

  • Lost 'mask' (using alt key) in exposure and sharpening?

    The black or white 'mask' by using the alt key in exposure adjustments AND the 'mask' while adjusting amount, detail and unsharp mask in sharpening is missing for me.  The only difference I can think of is that LR  is now on a new notebook (ASUS) and am now working with Windows 7 64-bit.  Is there something I can do to re-gain those helpful masks?  Any idea what happened?  I'm in the middle of nowhere and don't have a lot of wireless time to research . . . Any help or suggestion will be appreciated. Joia

    Well guys, everything checks out good - specs are fine and both alt keys work.  The touchpad is, however, a big problem and seems to be the culprit.  It switches between being hypersensitive (giving me only a quick flash of the mask) or unresponsive (the sliders do not move at all).
    We plugged in a mouse and I now have control of both the masks and sliders.
    Thanks again for responding - otherwise I probably would have given up for now while we're on the road - got a lot of work to do.  Cheers!  Joia

  • Using Alt+Key shortcuts in Chromeless application makes windows beep

    Tell me I'm correct about the following:
    It is impossible to use mx:MenuBar with mnemonics and/or have 'Ctrl+Alt+Key' appear in the menu as you can with FlexNativeMenu or NativeMenu.
    It is impossible to use any Alt+Key shortcuts to activate a control without Windows® beeping at you when you use the key.
    It is impossible to use a s:Button or even an mx:Button with an underlined letter without making a specific skin just for that button.
    It is impossible to comprehend why such a standard activation method -- using the Alt+Key would be overlooked by a company leading the pack in RIA or any other type of interface development.
    So who is on drugs, I hope it is me and not Adobe.
    Wait, don't tell me-- you want me to extend your framework so it includes these fundamental things??

    After further research, the way to get around alt-key beeping and get rid of the system menu in a chromeless app is to use:
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
    and then do some restructuring so your outer client window is now fully transparent and has no skin, and your inner client window is a child who can be moved or sized in its container.
    But, this solution does not allow native window states: Minimized, etc. The best you can do is emulate them, but the OS will only see a window that only has one possible state.
    Since it has no system/native menu, the OS won't beep on alt+key. I am speaking of windows only, and have no idea what goes on in a Mac environment with this work-around.

  • Problems with FF orange-tab menu coming down when I use Alt keys

    I have had this small issue since yesterday which is more confusing than anything.
    When I go to type something, and use the alt keys plus the numbers for designs, the little orange FF tab on the top left-hand corner pulls down the drop-menu, and has 'Files' highlighted, plus it makes my computer make the Windows Default Beep, which I disabled because it was just annoying. I am having no notices of anything causing this, but this looks like the only browser that does it, because I went and played around with IE and Chrome, and nothing happened that I could see or hear of.
    Thanks for any insight!

    Try to switch on Num Lock if you need to use Alt + number keys.

  • Keword Order Using Alt Key

    I edited a keyword set and placed each of the keywords in a specific order so that alt-1 was word1, alt-2 word2, etc.
    However, when I quit and restarted LR 2.1, they re-appeared in seemingly random order. Am I missing something or is there a way to keep the original order?
    Cheers,
    John

    Holy Keyword, Batman!
    I just noticed something and it seems Lr 1.4.1 had the same feature. When the Keyword panel of the Library module is active and you press the Alt key you will notice that numbers appear for each keyword in a Keyword Set. These numbers would be the ones you press in conjunction with the Alt key to assign a keyword from the set.
    Suddenly this Alt+1, Alt+2 ... to assign a keyword from a set makes sense!

  • Why are all my keyboard shortcuts using the "Alt" key instead of the "Ctrl" key? I'm using Windows 7 and Firefox 5.0.1.

    I recently downloaded Firefox 5 and noticed that all my keyboard shortcuts default to using "Alt" key instead of the "Ctrl" key (so, for example, opening a new tab is Alt + T instead of Ctrl + T).
    I noticed that this is even true for copying and pasting within Firefox (Alt + C and Alt + P are the only commands that work).
    Any idea why this is happening? I am running Windows 7 and Firefox 5.0.1.

    Thanks, eveostay! That worked. (And for the record, what a crazy user agent string...)

  • Hello, i need to use hot Keys to open "Network monitor", Ctrl+Shift+K or F12 opens only "Console" , Thanks

    I need to open "Network monitor" by using hot keys, not "Console"

    Thanks for help :))

  • Problem getting (ALT key) to work in Flash

    Hi All,
    I hope there is somebody who can help me with the following issue:
    I can not get ALT key to work in Flash, if I want to use it in combination with other keys nor I can use it alone.
    For example, I have created an application which requires the usage of (ALT+F) in order to access certain thing, This does not seem to fire the key event.
    however if i use the same thing with (CTRL+F) or (SHIFT+F), it works fine.
    It is only ALT  which causes the key event not to fire.
    Is there a bug in Flash for using ALT key? Can anyone help me please?

    see here:
    http://forums.adobe.com/message/2127570

  • Alt key code is giving me strange character (Yi Baiti?)

    I used to type power of 2 by using Alt+178 (²), and a black circle with Alt+41396 (●)
    which still works in my browser, but when I type these in my word, it gives me ꆴ.
    which is some kind of Microsoft Yi Baiti font. and I could not change it! it always jump to Yi Baiti when I use Alt key code.
    How do I correct this behavior? it is really annoying.

    I was able to type ² by entering Alt+0178; • by entering Alt+0149.
    For more information, refer to the following link:
    http://fsymbols.com/keyboard/windows/alt-codes/list/
    (Please Note: Since the web site is not hosted by Microsoft, the link may change without
    notice. Microsoft does not guarantee the accuracy of this information.)
    Tylor Wang
    TechNet Community Support

  • Short cut for Radio buttons (using Ctrl+ key)

    How can I select deselect Radio buttons using Ctrl + keys. I know that setMnemonic can be used to access using Alt + key. But I want to use Ctrl also. Please suggest the solution. How can I select using only single key?

    Read the API for a meaning of each of the arguments. Here is a simple example showing how to assign an "Action" to the Ctrl+1 and Ctrl+2 keys:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class KeyboardAction extends JFrame
        public KeyboardAction()
            JPanel panel = new JPanel();
            setContentPane( panel );
            JTextField textField1 = new JTextField("Ctrl+1 or Ctrl+2", 10);
            panel.add( textField1 );
            JTextField textField2 = new JTextField("Ctrl+2", 10);
            panel.add( textField2 );
            //  Change the input map of the text field,
            //  therefore, Ctrl+1 only works for the first text field
            Action action1 = new SimpleAction("1");
            Object key1 = action1.getValue(Action.NAME);
            KeyStroke ks1 = KeyStroke.getKeyStroke(KeyEvent.VK_1, KeyEvent.CTRL_MASK);
            textField1.getInputMap().put(ks1, key1);
            textField1.getActionMap().put(key1, action1);
            //  Change the input map of the panel
            //  therefore, Ctrl+2 works for both text fields added to the panel
            Action action2 = new SimpleAction("2");
            Object key2 = action2.getValue(Action.NAME);
            KeyStroke ks2 = KeyStroke.getKeyStroke(KeyEvent.VK_2, KeyEvent.CTRL_MASK);
            panel.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(ks2, key2);
            panel.getActionMap().put(key2, action2);
        class SimpleAction extends AbstractAction
            public SimpleAction(String name)
                putValue( Action.NAME, "Action " + name );
            public void actionPerformed(ActionEvent e)
                System.out.println( getValue( Action.NAME ) );
        public static void main(String[] args)
            KeyboardAction frame = new KeyboardAction();
            frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
            frame.pack();
            frame.setVisible(true);
    }Also, if you search the forum using the keyword "getActionMap", I'm sure you'll find other example.

  • ALT key remapping for slickedit

    I am looking for a way to pass the ALT key through X11 on Mac OSX 10.6 to slickedit.  Slickedit uses ALT-<key> for several nice shortcuts.
    Kyle

    Me, too...
    There are several suggestions on the web on how to get the Alt key to pass through to X11 applications, but I haven't found anything that works with SlickEdit.
    Thanks,
    Kevin

Maybe you are looking for

  • Regarding custom print program does not recognize elements in new windows..

    Hello Experts, I copied the standard print program RFFOUS_C since I need to add new windows and routines. But when I inserted my 'WRITE_FORM' to call the element in the new window it has an exception of '1' which I think it does not recognize the cus

  • Is it possible when using the markup tools to make them locked in position?

    I am using Acrobat 8 Pro and my boss wants to be able to draw on a PDF. which is fine when he uses the markup tools provided, the only problem is that when he has to draw something that starts and ends on a existing markup it selects the markup and m

  • Problem installing on 40GB drive

    Hi, I've just tried installing solaris 8 on an ultra 5 with a 40GB drive, I downloaded the cd images (I have the media kit, but the images are newer from sun) anyway I thought that the install would recognize disks over 8 Gig. this one didn't (releas

  • Problems with inbound aleaud

    Hi everybody, I have an Orders Idoc in two logical systems as Outbound Idoc. Only in one of them I need an Inboud Aleaud Idoc as ACK. You can customize the inbound aleaud idocs in program IDX_NOALE that fills the table IDXNOALE. You can choose de typ

  • Can't Access iTunes Store with iTunes 8; Can't Download iTunes 10 with OS X 10.4 Operating System

    I can't access the iTunes Store to browse and purchase music, etc.  I have an OS X 10.4.11 operating system and iTunes 8.0.2 on my computer.  While I can download iTunes 10.3, I can't install it on my computer.  I would prefer using my computer with