Wednesday, May 22, 2013

Re: Linux shell command line editing/movement

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@gmail.com> 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@luff.me>:
> You mean besides "set -o vi"?
>
> -Adrian
>
> On May 21, 2013, at 8:12 PM, "Paul" <p_s_c@look.ca> 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@googlegroups.com.
> 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@googlegroups.com.
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@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: