tcsh shortcut to move the cursor back to previous space

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












4















I'm looking for a keyboard shortcut in tcsh to move the cursor back to the previous blank: not ESC+B which takes me back one word (for instance, in a path argument, to the previous path component) - I want to get to previous space or start of current path.










share|improve this question
























  • "Previous or start"? That doesn't make sense. Possibly you want Ctrl+b or Ctrl+a?

    – Mikel
    May 7 '13 at 14:46











  • I think haimon wants to jump in “asd efg/hij” from letter “j” back to letter “e”. (Ctrl-a jumps to “a”, Alt-b jumps to “h”, Ctrl-b moves to “i”.) Maybe Alt-Ctrl-],space is the closest.

    – manatwork
    May 7 '13 at 15:11
















4















I'm looking for a keyboard shortcut in tcsh to move the cursor back to the previous blank: not ESC+B which takes me back one word (for instance, in a path argument, to the previous path component) - I want to get to previous space or start of current path.










share|improve this question
























  • "Previous or start"? That doesn't make sense. Possibly you want Ctrl+b or Ctrl+a?

    – Mikel
    May 7 '13 at 14:46











  • I think haimon wants to jump in “asd efg/hij” from letter “j” back to letter “e”. (Ctrl-a jumps to “a”, Alt-b jumps to “h”, Ctrl-b moves to “i”.) Maybe Alt-Ctrl-],space is the closest.

    – manatwork
    May 7 '13 at 15:11














4












4








4


2






I'm looking for a keyboard shortcut in tcsh to move the cursor back to the previous blank: not ESC+B which takes me back one word (for instance, in a path argument, to the previous path component) - I want to get to previous space or start of current path.










share|improve this question
















I'm looking for a keyboard shortcut in tcsh to move the cursor back to the previous blank: not ESC+B which takes me back one word (for instance, in a path argument, to the previous path component) - I want to get to previous space or start of current path.







keyboard-shortcuts tcsh line-editor






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 6 '13 at 0:07









Gilles

536k12810821600




536k12810821600










asked May 7 '13 at 14:41









haimonhaimon

2313




2313












  • "Previous or start"? That doesn't make sense. Possibly you want Ctrl+b or Ctrl+a?

    – Mikel
    May 7 '13 at 14:46











  • I think haimon wants to jump in “asd efg/hij” from letter “j” back to letter “e”. (Ctrl-a jumps to “a”, Alt-b jumps to “h”, Ctrl-b moves to “i”.) Maybe Alt-Ctrl-],space is the closest.

    – manatwork
    May 7 '13 at 15:11


















  • "Previous or start"? That doesn't make sense. Possibly you want Ctrl+b or Ctrl+a?

    – Mikel
    May 7 '13 at 14:46











  • I think haimon wants to jump in “asd efg/hij” from letter “j” back to letter “e”. (Ctrl-a jumps to “a”, Alt-b jumps to “h”, Ctrl-b moves to “i”.) Maybe Alt-Ctrl-],space is the closest.

    – manatwork
    May 7 '13 at 15:11

















"Previous or start"? That doesn't make sense. Possibly you want Ctrl+b or Ctrl+a?

– Mikel
May 7 '13 at 14:46





"Previous or start"? That doesn't make sense. Possibly you want Ctrl+b or Ctrl+a?

– Mikel
May 7 '13 at 14:46













I think haimon wants to jump in “asd efg/hij” from letter “j” back to letter “e”. (Ctrl-a jumps to “a”, Alt-b jumps to “h”, Ctrl-b moves to “i”.) Maybe Alt-Ctrl-],space is the closest.

– manatwork
May 7 '13 at 15:11






I think haimon wants to jump in “asd efg/hij” from letter “j” back to letter “e”. (Ctrl-a jumps to “a”, Alt-b jumps to “h”, Ctrl-b moves to “i”.) Maybe Alt-Ctrl-],space is the closest.

– manatwork
May 7 '13 at 15:11











3 Answers
3






active

oldest

votes


















7














If you mean keyboard shortcut at the prompt of interactive bash shells, you could bind the shell-backward-word and shell-forward-word to some sequence of characters sent upon some key or combination of key presses.



Like if pressing Ctrl-Left sends the sequence e[1;5D on your terminal like it does in xterm, you could do:



bind '"e[1;5D": shell-backward-word'
bind '"e[1;5D": shell-backward-word'


Note that it does not jump from blank to blank but considers shell quoting. So for instance in a line like



echo "foo 'bar baz' blah/bleh bloh
^ ^ ^ ^


It would jump to the locations marked above.



Edit: for tcsh, you have three options:




  1. Use the equivalent to the bash definition above, either in ~/.cshrc or in /etc/csh.cshrc.local to give all users the benefit.



    bindkey 'e[1;5D' backward-word
    bindkey 'e[1;5C' forward-word


  2. Use the vi mode (with bindkey -v) and use the B and W keys in normal mode just like in vi.



  3. In emacs mode (the default, reenabled with bindkey -e) like for bash, bind the corresponding widgets (vi-word-back and vi-word-fwd):



    bindkey 'e[1;5C' vi-word-fwd
    bindkey 'e[1;5D' vi-word-back


Note that those are like vi's B and W, so they're for jumping between blank separated words, not shell tokens (like quoted strings) like in the bash solution above.






share|improve this answer

























  • Yes Stephane this is what I'm looking for ! but I dont have bind command in my shell, I found bindkey and it does not understand it...any idea?

    – haimon
    May 8 '13 at 6:22












  • @haimon, Your shell must be either tcsh or zsh. Could you please find out (ps should tell you) and update your question?

    – Stéphane Chazelas
    May 8 '13 at 6:55












  • Hi - it is tcsh according to ps.

    – haimon
    May 8 '13 at 8:24











  • Hi - is there a VI shorcurt to jump to previous space or start of text (aaa bb/cccc - jump from en of line to space between b and a)

    – haimon
    May 8 '13 at 11:30











  • @haimon. I don't think so. See the output of bindkey -l or man tcsh for the list of widgets. But you can use a macro (bindkey -s) to do the B followed by h.

    – Stéphane Chazelas
    May 8 '13 at 12:05


















0














I think you're wanting CTRL-B which in bash moves the cursor back one character. CTRL-f will then move you back forward. Here is a quick reference for these shortcuts.






share|improve this answer























  • Usually also mapped to left arrow? :)

    – peterph
    May 7 '13 at 14:51











  • Depends on what type of Unix or what distribution of Linux the OP is on. Arrow keys aren't always mapped, that's something you usually only see on the more user-friendly Linux distros.

    – Bratchley
    May 7 '13 at 14:53











  • Sure, that's why I wrote usually. I think percentage of live systems that have it like this will be 90%+.

    – peterph
    May 7 '13 at 17:53












  • I have about 50 Solaris servers that don't fit that description. Traditional Unix still has a large install base that GNU/Linux as a whole is just now approaching parity with.

    – Bratchley
    May 7 '13 at 19:47


















0














"ESC-left-arrow : go to beginning of left word"
bindkey ^[^[[D vi-word-back



for example:
cd a/b/c/d
ESC+left will take you from end of line to the space between "cd" and "a"






share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f74990%2ftcsh-shortcut-to-move-the-cursor-back-to-previous-space%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    7














    If you mean keyboard shortcut at the prompt of interactive bash shells, you could bind the shell-backward-word and shell-forward-word to some sequence of characters sent upon some key or combination of key presses.



    Like if pressing Ctrl-Left sends the sequence e[1;5D on your terminal like it does in xterm, you could do:



    bind '"e[1;5D": shell-backward-word'
    bind '"e[1;5D": shell-backward-word'


    Note that it does not jump from blank to blank but considers shell quoting. So for instance in a line like



    echo "foo 'bar baz' blah/bleh bloh
    ^ ^ ^ ^


    It would jump to the locations marked above.



    Edit: for tcsh, you have three options:




    1. Use the equivalent to the bash definition above, either in ~/.cshrc or in /etc/csh.cshrc.local to give all users the benefit.



      bindkey 'e[1;5D' backward-word
      bindkey 'e[1;5C' forward-word


    2. Use the vi mode (with bindkey -v) and use the B and W keys in normal mode just like in vi.



    3. In emacs mode (the default, reenabled with bindkey -e) like for bash, bind the corresponding widgets (vi-word-back and vi-word-fwd):



      bindkey 'e[1;5C' vi-word-fwd
      bindkey 'e[1;5D' vi-word-back


    Note that those are like vi's B and W, so they're for jumping between blank separated words, not shell tokens (like quoted strings) like in the bash solution above.






    share|improve this answer

























    • Yes Stephane this is what I'm looking for ! but I dont have bind command in my shell, I found bindkey and it does not understand it...any idea?

      – haimon
      May 8 '13 at 6:22












    • @haimon, Your shell must be either tcsh or zsh. Could you please find out (ps should tell you) and update your question?

      – Stéphane Chazelas
      May 8 '13 at 6:55












    • Hi - it is tcsh according to ps.

      – haimon
      May 8 '13 at 8:24











    • Hi - is there a VI shorcurt to jump to previous space or start of text (aaa bb/cccc - jump from en of line to space between b and a)

      – haimon
      May 8 '13 at 11:30











    • @haimon. I don't think so. See the output of bindkey -l or man tcsh for the list of widgets. But you can use a macro (bindkey -s) to do the B followed by h.

      – Stéphane Chazelas
      May 8 '13 at 12:05















    7














    If you mean keyboard shortcut at the prompt of interactive bash shells, you could bind the shell-backward-word and shell-forward-word to some sequence of characters sent upon some key or combination of key presses.



    Like if pressing Ctrl-Left sends the sequence e[1;5D on your terminal like it does in xterm, you could do:



    bind '"e[1;5D": shell-backward-word'
    bind '"e[1;5D": shell-backward-word'


    Note that it does not jump from blank to blank but considers shell quoting. So for instance in a line like



    echo "foo 'bar baz' blah/bleh bloh
    ^ ^ ^ ^


    It would jump to the locations marked above.



    Edit: for tcsh, you have three options:




    1. Use the equivalent to the bash definition above, either in ~/.cshrc or in /etc/csh.cshrc.local to give all users the benefit.



      bindkey 'e[1;5D' backward-word
      bindkey 'e[1;5C' forward-word


    2. Use the vi mode (with bindkey -v) and use the B and W keys in normal mode just like in vi.



    3. In emacs mode (the default, reenabled with bindkey -e) like for bash, bind the corresponding widgets (vi-word-back and vi-word-fwd):



      bindkey 'e[1;5C' vi-word-fwd
      bindkey 'e[1;5D' vi-word-back


    Note that those are like vi's B and W, so they're for jumping between blank separated words, not shell tokens (like quoted strings) like in the bash solution above.






    share|improve this answer

























    • Yes Stephane this is what I'm looking for ! but I dont have bind command in my shell, I found bindkey and it does not understand it...any idea?

      – haimon
      May 8 '13 at 6:22












    • @haimon, Your shell must be either tcsh or zsh. Could you please find out (ps should tell you) and update your question?

      – Stéphane Chazelas
      May 8 '13 at 6:55












    • Hi - it is tcsh according to ps.

      – haimon
      May 8 '13 at 8:24











    • Hi - is there a VI shorcurt to jump to previous space or start of text (aaa bb/cccc - jump from en of line to space between b and a)

      – haimon
      May 8 '13 at 11:30











    • @haimon. I don't think so. See the output of bindkey -l or man tcsh for the list of widgets. But you can use a macro (bindkey -s) to do the B followed by h.

      – Stéphane Chazelas
      May 8 '13 at 12:05













    7












    7








    7







    If you mean keyboard shortcut at the prompt of interactive bash shells, you could bind the shell-backward-word and shell-forward-word to some sequence of characters sent upon some key or combination of key presses.



    Like if pressing Ctrl-Left sends the sequence e[1;5D on your terminal like it does in xterm, you could do:



    bind '"e[1;5D": shell-backward-word'
    bind '"e[1;5D": shell-backward-word'


    Note that it does not jump from blank to blank but considers shell quoting. So for instance in a line like



    echo "foo 'bar baz' blah/bleh bloh
    ^ ^ ^ ^


    It would jump to the locations marked above.



    Edit: for tcsh, you have three options:




    1. Use the equivalent to the bash definition above, either in ~/.cshrc or in /etc/csh.cshrc.local to give all users the benefit.



      bindkey 'e[1;5D' backward-word
      bindkey 'e[1;5C' forward-word


    2. Use the vi mode (with bindkey -v) and use the B and W keys in normal mode just like in vi.



    3. In emacs mode (the default, reenabled with bindkey -e) like for bash, bind the corresponding widgets (vi-word-back and vi-word-fwd):



      bindkey 'e[1;5C' vi-word-fwd
      bindkey 'e[1;5D' vi-word-back


    Note that those are like vi's B and W, so they're for jumping between blank separated words, not shell tokens (like quoted strings) like in the bash solution above.






    share|improve this answer















    If you mean keyboard shortcut at the prompt of interactive bash shells, you could bind the shell-backward-word and shell-forward-word to some sequence of characters sent upon some key or combination of key presses.



    Like if pressing Ctrl-Left sends the sequence e[1;5D on your terminal like it does in xterm, you could do:



    bind '"e[1;5D": shell-backward-word'
    bind '"e[1;5D": shell-backward-word'


    Note that it does not jump from blank to blank but considers shell quoting. So for instance in a line like



    echo "foo 'bar baz' blah/bleh bloh
    ^ ^ ^ ^


    It would jump to the locations marked above.



    Edit: for tcsh, you have three options:




    1. Use the equivalent to the bash definition above, either in ~/.cshrc or in /etc/csh.cshrc.local to give all users the benefit.



      bindkey 'e[1;5D' backward-word
      bindkey 'e[1;5C' forward-word


    2. Use the vi mode (with bindkey -v) and use the B and W keys in normal mode just like in vi.



    3. In emacs mode (the default, reenabled with bindkey -e) like for bash, bind the corresponding widgets (vi-word-back and vi-word-fwd):



      bindkey 'e[1;5C' vi-word-fwd
      bindkey 'e[1;5D' vi-word-back


    Note that those are like vi's B and W, so they're for jumping between blank separated words, not shell tokens (like quoted strings) like in the bash solution above.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jan 25 at 0:22









    Ouki

    3,83421425




    3,83421425










    answered May 7 '13 at 15:35









    Stéphane ChazelasStéphane Chazelas

    305k57575929




    305k57575929












    • Yes Stephane this is what I'm looking for ! but I dont have bind command in my shell, I found bindkey and it does not understand it...any idea?

      – haimon
      May 8 '13 at 6:22












    • @haimon, Your shell must be either tcsh or zsh. Could you please find out (ps should tell you) and update your question?

      – Stéphane Chazelas
      May 8 '13 at 6:55












    • Hi - it is tcsh according to ps.

      – haimon
      May 8 '13 at 8:24











    • Hi - is there a VI shorcurt to jump to previous space or start of text (aaa bb/cccc - jump from en of line to space between b and a)

      – haimon
      May 8 '13 at 11:30











    • @haimon. I don't think so. See the output of bindkey -l or man tcsh for the list of widgets. But you can use a macro (bindkey -s) to do the B followed by h.

      – Stéphane Chazelas
      May 8 '13 at 12:05

















    • Yes Stephane this is what I'm looking for ! but I dont have bind command in my shell, I found bindkey and it does not understand it...any idea?

      – haimon
      May 8 '13 at 6:22












    • @haimon, Your shell must be either tcsh or zsh. Could you please find out (ps should tell you) and update your question?

      – Stéphane Chazelas
      May 8 '13 at 6:55












    • Hi - it is tcsh according to ps.

      – haimon
      May 8 '13 at 8:24











    • Hi - is there a VI shorcurt to jump to previous space or start of text (aaa bb/cccc - jump from en of line to space between b and a)

      – haimon
      May 8 '13 at 11:30











    • @haimon. I don't think so. See the output of bindkey -l or man tcsh for the list of widgets. But you can use a macro (bindkey -s) to do the B followed by h.

      – Stéphane Chazelas
      May 8 '13 at 12:05
















    Yes Stephane this is what I'm looking for ! but I dont have bind command in my shell, I found bindkey and it does not understand it...any idea?

    – haimon
    May 8 '13 at 6:22






    Yes Stephane this is what I'm looking for ! but I dont have bind command in my shell, I found bindkey and it does not understand it...any idea?

    – haimon
    May 8 '13 at 6:22














    @haimon, Your shell must be either tcsh or zsh. Could you please find out (ps should tell you) and update your question?

    – Stéphane Chazelas
    May 8 '13 at 6:55






    @haimon, Your shell must be either tcsh or zsh. Could you please find out (ps should tell you) and update your question?

    – Stéphane Chazelas
    May 8 '13 at 6:55














    Hi - it is tcsh according to ps.

    – haimon
    May 8 '13 at 8:24





    Hi - it is tcsh according to ps.

    – haimon
    May 8 '13 at 8:24













    Hi - is there a VI shorcurt to jump to previous space or start of text (aaa bb/cccc - jump from en of line to space between b and a)

    – haimon
    May 8 '13 at 11:30





    Hi - is there a VI shorcurt to jump to previous space or start of text (aaa bb/cccc - jump from en of line to space between b and a)

    – haimon
    May 8 '13 at 11:30













    @haimon. I don't think so. See the output of bindkey -l or man tcsh for the list of widgets. But you can use a macro (bindkey -s) to do the B followed by h.

    – Stéphane Chazelas
    May 8 '13 at 12:05





    @haimon. I don't think so. See the output of bindkey -l or man tcsh for the list of widgets. But you can use a macro (bindkey -s) to do the B followed by h.

    – Stéphane Chazelas
    May 8 '13 at 12:05













    0














    I think you're wanting CTRL-B which in bash moves the cursor back one character. CTRL-f will then move you back forward. Here is a quick reference for these shortcuts.






    share|improve this answer























    • Usually also mapped to left arrow? :)

      – peterph
      May 7 '13 at 14:51











    • Depends on what type of Unix or what distribution of Linux the OP is on. Arrow keys aren't always mapped, that's something you usually only see on the more user-friendly Linux distros.

      – Bratchley
      May 7 '13 at 14:53











    • Sure, that's why I wrote usually. I think percentage of live systems that have it like this will be 90%+.

      – peterph
      May 7 '13 at 17:53












    • I have about 50 Solaris servers that don't fit that description. Traditional Unix still has a large install base that GNU/Linux as a whole is just now approaching parity with.

      – Bratchley
      May 7 '13 at 19:47















    0














    I think you're wanting CTRL-B which in bash moves the cursor back one character. CTRL-f will then move you back forward. Here is a quick reference for these shortcuts.






    share|improve this answer























    • Usually also mapped to left arrow? :)

      – peterph
      May 7 '13 at 14:51











    • Depends on what type of Unix or what distribution of Linux the OP is on. Arrow keys aren't always mapped, that's something you usually only see on the more user-friendly Linux distros.

      – Bratchley
      May 7 '13 at 14:53











    • Sure, that's why I wrote usually. I think percentage of live systems that have it like this will be 90%+.

      – peterph
      May 7 '13 at 17:53












    • I have about 50 Solaris servers that don't fit that description. Traditional Unix still has a large install base that GNU/Linux as a whole is just now approaching parity with.

      – Bratchley
      May 7 '13 at 19:47













    0












    0








    0







    I think you're wanting CTRL-B which in bash moves the cursor back one character. CTRL-f will then move you back forward. Here is a quick reference for these shortcuts.






    share|improve this answer













    I think you're wanting CTRL-B which in bash moves the cursor back one character. CTRL-f will then move you back forward. Here is a quick reference for these shortcuts.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered May 7 '13 at 14:50









    BratchleyBratchley

    12k74388




    12k74388












    • Usually also mapped to left arrow? :)

      – peterph
      May 7 '13 at 14:51











    • Depends on what type of Unix or what distribution of Linux the OP is on. Arrow keys aren't always mapped, that's something you usually only see on the more user-friendly Linux distros.

      – Bratchley
      May 7 '13 at 14:53











    • Sure, that's why I wrote usually. I think percentage of live systems that have it like this will be 90%+.

      – peterph
      May 7 '13 at 17:53












    • I have about 50 Solaris servers that don't fit that description. Traditional Unix still has a large install base that GNU/Linux as a whole is just now approaching parity with.

      – Bratchley
      May 7 '13 at 19:47

















    • Usually also mapped to left arrow? :)

      – peterph
      May 7 '13 at 14:51











    • Depends on what type of Unix or what distribution of Linux the OP is on. Arrow keys aren't always mapped, that's something you usually only see on the more user-friendly Linux distros.

      – Bratchley
      May 7 '13 at 14:53











    • Sure, that's why I wrote usually. I think percentage of live systems that have it like this will be 90%+.

      – peterph
      May 7 '13 at 17:53












    • I have about 50 Solaris servers that don't fit that description. Traditional Unix still has a large install base that GNU/Linux as a whole is just now approaching parity with.

      – Bratchley
      May 7 '13 at 19:47
















    Usually also mapped to left arrow? :)

    – peterph
    May 7 '13 at 14:51





    Usually also mapped to left arrow? :)

    – peterph
    May 7 '13 at 14:51













    Depends on what type of Unix or what distribution of Linux the OP is on. Arrow keys aren't always mapped, that's something you usually only see on the more user-friendly Linux distros.

    – Bratchley
    May 7 '13 at 14:53





    Depends on what type of Unix or what distribution of Linux the OP is on. Arrow keys aren't always mapped, that's something you usually only see on the more user-friendly Linux distros.

    – Bratchley
    May 7 '13 at 14:53













    Sure, that's why I wrote usually. I think percentage of live systems that have it like this will be 90%+.

    – peterph
    May 7 '13 at 17:53






    Sure, that's why I wrote usually. I think percentage of live systems that have it like this will be 90%+.

    – peterph
    May 7 '13 at 17:53














    I have about 50 Solaris servers that don't fit that description. Traditional Unix still has a large install base that GNU/Linux as a whole is just now approaching parity with.

    – Bratchley
    May 7 '13 at 19:47





    I have about 50 Solaris servers that don't fit that description. Traditional Unix still has a large install base that GNU/Linux as a whole is just now approaching parity with.

    – Bratchley
    May 7 '13 at 19:47











    0














    "ESC-left-arrow : go to beginning of left word"
    bindkey ^[^[[D vi-word-back



    for example:
    cd a/b/c/d
    ESC+left will take you from end of line to the space between "cd" and "a"






    share|improve this answer



























      0














      "ESC-left-arrow : go to beginning of left word"
      bindkey ^[^[[D vi-word-back



      for example:
      cd a/b/c/d
      ESC+left will take you from end of line to the space between "cd" and "a"






      share|improve this answer

























        0












        0








        0







        "ESC-left-arrow : go to beginning of left word"
        bindkey ^[^[[D vi-word-back



        for example:
        cd a/b/c/d
        ESC+left will take you from end of line to the space between "cd" and "a"






        share|improve this answer













        "ESC-left-arrow : go to beginning of left word"
        bindkey ^[^[[D vi-word-back



        for example:
        cd a/b/c/d
        ESC+left will take you from end of line to the space between "cd" and "a"







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 12 '13 at 11:11









        haimonhaimon

        2313




        2313



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f74990%2ftcsh-shortcut-to-move-the-cursor-back-to-previous-space%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?