{"id":28,"date":"2013-07-29T07:01:00","date_gmt":"2013-07-29T07:01:00","guid":{"rendered":"https:\/\/www.root42.de\/blog\/?p=28"},"modified":"2013-07-29T07:01:00","modified_gmt":"2013-07-29T07:01:00","slug":"how-to-get-ctrlarrow-working-for-programs-running-in-tmux","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=28","title":{"rendered":"How to get Ctrl+Arrow working for programs running in tmux?"},"content":{"rendered":"<div>The key combination of <span style=\"font-family: Courier New, Courier, monospace;\">Ctrl+arrow<\/span> key is often used for skipping forward or backward whole words. This can be used in the bash command line, <a href=\"http:\/\/www.gnu.org\/software\/emacs\/manual\/html_node\/emacs\/Moving-Point.html\">Emacs<\/a> and many other programs. However, when I am using <a href=\"http:\/\/tmux.sourceforge.net\/\">tmux<\/a>, this will not work. You can fix this, by adding the following to your <span style=\"font-family: Courier New, Courier, monospace;\">~\/.tmux.conf<\/span>:<\/p>\n<\/div>\n<pre>set-window-option -g xterm-keys on<br \/><\/pre>\n<div><\/div>\n<div>This was explained in a <a href=\"http:\/\/superuser.com\/questions\/401926\/how-to-get-shiftarrows-and-ctrlarrows-working-in-vim-in-tmux\">nice superuser Q&amp;A<\/a>.<\/div>\n<div>You can interactively try out <span style=\"font-family: Courier New, Courier, monospace;\">tmux<\/span> commands by hitting <span style=\"font-family: Courier New, Courier, monospace;\">C-b :<\/span> &#8212; this will enter the command mode. You can use <span style=\"font-family: Courier New, Courier, monospace;\">tab<\/span> to complete commands. <\/div>\n","protected":false},"excerpt":{"rendered":"<p>The key combination of Ctrl+arrow key is often used for skipping forward or backward whole words. This can be used in the bash command line, Emacs and many other programs. However, when I am using tmux, this will not work. You can fix this, by adding the following to your ~\/.tmux.conf: set-window-option -g xterm-keys on &hellip; <a href=\"https:\/\/www.root42.de\/blog\/?p=28\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to get Ctrl+Arrow working for programs running in tmux?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27,29,28,17,10],"tags":[],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/28"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=28"}],"version-history":[{"count":0,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}