Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: end-of-line not working as advertised?



On Fri, Aug 21, 2015 at 12:07:39AM -0700, Bart Schaefer wrote:
> On Aug 20, 11:39pm, Bart Schaefer wrote:
> }
> } Try end-of-buffer-or-history ... yes, it's still an emacs-mode widget,
> 
> Or try this:
> 
> vi-next-end-of-line() {
>   local curs=$CURSOR
>   zle vi-end-of-line
>   if (( curs <= CURSOR )); then
>     NUMERIC=2 zle vi-end-of-line
>   fi
> }
> zle -N vi-next-end-of-line
> bindkey -a ^E vi-next-end-of-line

That is *SUPER* helpful!  Thank you so much.


-- 
http://intelligence.org/ :  Our last, best hope for a fantastic future.
.i ko na cpedu lo nu stidi vau loi jbopre .i dafsku lu na go'i li'u .e
lu go'i li'u .i ji'a go'i lu na'e go'i li'u .e lu go'i na'i li'u .e
lu no'e go'i li'u .e lu to'e go'i li'u .e lu lo mamta be do cu sofybakni li'u



Messages sorted by: Reverse Date, Date, Thread, Author