Vim page down shortcut2/19/2023 Vim does not know about control-pageup, etc., because there is no conventional termcap symbol for those keys, and because they can differ from one terminal to another. You were probably closest with #2, but perhaps misunderstood the instructions. (You can verify this change by opening a new window and clicking Tabs in the Menubar: The Previous Tab and Next Tab items should no longer display shortcuts to their right.)Ĭonsider nmap instead, to restrict the shortcut to NORMAL mode. (gtk_accel_path "/terminal-window/prev-tab" "") Open ~/.config/xfce4/terminal/accels.scm and uncomment/edit the lines: (gtk_accel_path "/terminal-window/next-tab" "") Xfce4-terminal shortcuts can be unset with the method described here: So this was an issue with xfce4-terminal, not Vim. In order to allow Vim to use these key combinations, they cannot be used by the Terminal itself. I was overlooking something extremely simple, which is usually the case for me.Ĭtrl pgup and ctrl pgdn were already keyboard shortcuts in xfce4-terminal itself (for switching Terminal tabs). Trying everything above with :MBEbp instead of :bp.Īlright, I figured it out.Trying everything above with a file under.Using some of the methods which this answer hints at: map [5~ :bp My $TERM environment variable is set to xterm. Setting different term options: set term=xterm The method from this answer: map \033[5 5~ :bp The method from this answer: !topic/vim_use/j85-2xQkb7s map [5~ :bp Trying all of the methods in 5, but without setting an option first. This method from the Vim wiki: Tutorial(Part_2)#Key_notation set = "^[[5~Īfter realizing that was a user command, I did these commands, and vim pasted output. When I type the command above in the command line, nothing shows: map :bp Setting it from the command line with this answer's method: Why and not work in vim? :map :bp If that's true, I'm not sure how to find out what the literal key codes are. Since the default vim syntax doesn't work, I'm guessing that the Terminal isn't sending the character codes for ctrl pgup and ctrl pgdn which Vim is expecting. The vim syntax for these keys does not work (i.e., and, or and ). I'm trying to map Vim commands to the ctrl pgup and ctrl pgdn key combinations.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |