Loading ...
Sorry, an error occurred while loading the content.

Linux shell command line editing/movement

Expand Messages
  • Paul
    Is there a plugin that changes shell command line movement and editing to those used in vim? For example, instead of ^a, be able to use 0; or instead of ^e
    Message 1 of 7 , May 21, 2013
    • 0 Attachment

      Is there a plugin that changes shell command line movement and editing to those used in vim?   For example, instead of ^a, be able to use 0; or instead of ^e be able to use $.

       

      Thanks

       

      Paul

      --
      --
      You received this message from the "vim_use" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
       
      ---
      You received this message because you are subscribed to the Google Groups "vim_use" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
       
       
    • David Sanson
      It is called vi mode . Assuming you are using bash, https://www.google.com/search?q=+vi+mode+bash -- -- You received this message from the vim_use maillist.
      Message 2 of 7 , May 21, 2013
      • 0 Attachment
        It is called "vi mode". Assuming you are using bash, https://www.google.com/search?q=+vi+mode+bash

        --
        --
        You received this message from the "vim_use" maillist.
        Do not top-post! Type your reply below the text you are replying to.
        For more information, visit http://www.vim.org/maillist.php

        ---
        You received this message because you are subscribed to the Google Groups "vim_use" group.
        To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      • Paul
        Excellent , thanks ... From: vim_use@googlegroups.com [mailto:vim_use@googlegroups.com] On Behalf Of David Sanson Sent: May-21-13 11:26 PM To:
        Message 3 of 7 , May 21, 2013
        • 0 Attachment
          Excellent , thanks
          -----Original Message-----
          From: vim_use@... [mailto:vim_use@...] On Behalf
          Of David Sanson
          Sent: May-21-13 11:26 PM
          To: vim_use@...
          Subject: Linux shell command line editing/movement

          It is called "vi mode". Assuming you are using bash,
          https://www.google.com/search?q=+vi+mode+bash

          --
          --
          You received this message from the "vim_use" maillist.
          Do not top-post! Type your reply below the text you are replying to.
          For more information, visit http://www.vim.org/maillist.php

          ---
          You received this message because you are subscribed to the Google Groups
          "vim_use" group.
          To unsubscribe from this group and stop receiving emails from it, send an
          email to vim_use+unsubscribe@....
          For more options, visit https://groups.google.com/groups/opt_out.



          --
          --
          You received this message from the "vim_use" maillist.
          Do not top-post! Type your reply below the text you are replying to.
          For more information, visit http://www.vim.org/maillist.php

          ---
          You received this message because you are subscribed to the Google Groups "vim_use" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
          For more options, visit https://groups.google.com/groups/opt_out.
        • Willy Gfn
          ... You can also use the vi editing mode for every CLI input (readline, smbclient, mysql, ...) ! http://ss64.com/bash/syntax-inputrc.html It works with
          Message 4 of 7 , May 21, 2013
          • 0 Attachment
            David Sanson wrote:
            > It is called "vi mode". Assuming you are using bash, https://www.google.com/search?q=+vi+mode+bash

            You can also use the vi editing mode for every CLI input (readline,
            smbclient, mysql, ...) ! >> http://ss64.com/bash/syntax-inputrc.html
            It works with every application using the readline library.
            ~ $ echo "set editing-mode vi" >> ~/.inputrc

            --
            --
            You received this message from the "vim_use" maillist.
            Do not top-post! Type your reply below the text you are replying to.
            For more information, visit http://www.vim.org/maillist.php

            ---
            You received this message because you are subscribed to the Google Groups "vim_use" group.
            To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
            For more options, visit https://groups.google.com/groups/opt_out.
          • Adrian Luff
            You mean besides set -o vi ? -Adrian
            Message 5 of 7 , May 22, 2013
            • 0 Attachment
              You mean besides "set -o vi"?

              -Adrian

              On May 21, 2013, at 8:12 PM, "Paul" <p_s_c@...> wrote:

              Is there a plugin that changes shell command line movement and editing to those used in vim?   For example, instead of ^a, be able to use 0; or instead of ^e be able to use $.
               
              Thanks
               
              Paul

              -- 
              -- 
              You received this message from the "vim_use" maillist.
              Do not top-post! Type your reply below the text you are replying to.
              For more information, visit http://www.vim.org/maillist.php
               
              --- 
              You received this message because you are subscribed to the Google Groups "vim_use" group.
              To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
              For more options, visit https://groups.google.com/groups/opt_out.
               
               

            • Lucas Tadeu Teixeira
              If you re a zsh user you can use bindkey -v . ... -- Lucas Tadeu Teixeira Computer Science University of Campinas - Unicamp -- -- You received this message
              Message 6 of 7 , May 22, 2013
              • 0 Attachment
                If you're a zsh user you can use "bindkey -v".

                Paul wrote:

                > Is there a plugin that changes shell command line movement and editing to those used in vim? For example, instead of ^a, be able to use 0; or > instead of ^e be able to use $.
                >
                > Thanks
                >
                > Paul

                2013/5/22 Adrian Luff <adrian@...>:
                > You mean besides "set -o vi"?
                >
                > -Adrian
                >
                > On May 21, 2013, at 8:12 PM, "Paul" <p_s_c@...> wrote:
                >
                > Is there a plugin that changes shell command line movement and editing to
                > those used in vim? For example, instead of ^a, be able to use 0; or
                > instead of ^e be able to use $.
                >
                > Thanks
                >
                > Paul
                >
                > --
                > --
                > You received this message from the "vim_use" maillist.
                > Do not top-post! Type your reply below the text you are replying to.
                > For more information, visit http://www.vim.org/maillist.php
                >
                > ---
                > You received this message because you are subscribed to the Google Groups
                > "vim_use" group.
                > To unsubscribe from this group and stop receiving emails from it, send an
                > email to vim_use+unsubscribe@....
                > For more options, visit https://groups.google.com/groups/opt_out.
                >
                >
                >
                >



                --
                Lucas Tadeu Teixeira
                Computer Science
                University of Campinas - Unicamp

                --
                --
                You received this message from the "vim_use" maillist.
                Do not top-post! Type your reply below the text you are replying to.
                For more information, visit http://www.vim.org/maillist.php

                ---
                You received this message because you are subscribed to the Google Groups "vim_use" group.
                To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
                For more options, visit https://groups.google.com/groups/opt_out.
              • shawn wilson
                Yes, zsh has decent vim bindings. Advanced things like *-into (ci, di, yi) aren t there but *-until (ct, dt, yt) and F/f are so it s just a few more key
                Message 7 of 7 , May 22, 2013
                • 0 Attachment

                  Yes, zsh has decent vim bindings. Advanced things like *-into (ci, di, yi) aren't there but *-until (ct, dt, yt) and F/f are so it's just a few more key strokes.

                  Also, it's not hard to yank your current command into vim (good for saving and eval $(cat <file>) reuse stuff).

                  On May 22, 2013 10:46 AM, "Lucas Tadeu Teixeira" <lucas.tadeuteixeira@...> wrote:
                  If you're a zsh user you can use "bindkey -v".

                  Paul wrote:

                  > Is there a plugin that changes shell command line movement and editing to those used in vim?   For example, instead of ^a, be able to use 0; or > instead of ^e be able to use $.
                  >
                  > Thanks
                  >
                  > Paul

                  2013/5/22 Adrian Luff <adrian@...>:
                  > You mean besides "set -o vi"?
                  >
                  > -Adrian
                  >
                  > On May 21, 2013, at 8:12 PM, "Paul" <p_s_c@...> wrote:
                  >
                  > Is there a plugin that changes shell command line movement and editing to
                  > those used in vim?   For example, instead of ^a, be able to use 0; or
                  > instead of ^e be able to use $.
                  >
                  > Thanks
                  >
                  > Paul
                  >
                  > --
                  > --
                  > You received this message from the "vim_use" maillist.
                  > Do not top-post! Type your reply below the text you are replying to.
                  > For more information, visit http://www.vim.org/maillist.php
                  >
                  > ---
                  > You received this message because you are subscribed to the Google Groups
                  > "vim_use" group.
                  > To unsubscribe from this group and stop receiving emails from it, send an
                  > email to vim_use+unsubscribe@....
                  > For more options, visit https://groups.google.com/groups/opt_out.
                  >
                  >
                  >
                  >



                  --
                  Lucas Tadeu Teixeira
                  Computer Science
                  University of Campinas - Unicamp

                  --
                  --
                  You received this message from the "vim_use" maillist.
                  Do not top-post! Type your reply below the text you are replying to.
                  For more information, visit http://www.vim.org/maillist.php

                  ---
                  You received this message because you are subscribed to the Google Groups "vim_use" group.
                  To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
                  For more options, visit https://groups.google.com/groups/opt_out.


                  --
                  --
                  You received this message from the "vim_use" maillist.
                  Do not top-post! Type your reply below the text you are replying to.
                  For more information, visit http://www.vim.org/maillist.php
                   
                  ---
                  You received this message because you are subscribed to the Google Groups "vim_use" group.
                  To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
                  For more options, visit https://groups.google.com/groups/opt_out.
                   
                   
                Your message has been successfully submitted and would be delivered to recipients shortly.