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

Re: TAB at the command line beginning



>The way to configure _that_ is to create your own binding for TAB.
>
>  history-search-or-complete-word() {
>    if [[ -z "$BUFFER" ]]
>    then zle history-incremental-search-backward "$@"
>    else zle complete-word "$@"
>    fi
>  }
>  zle -N history-search-or-complete-word
>  bindkey '\t' history-search-or-complete-word
>
>You can do more complicated tests than [[ -z "$BUFFER" ]] ... one that
>might be interesting is [[ -z "$BUFFER" && -z "$PREBUFFER" ]].

PMI but what does this extra test achieve , I couldn't see nowt?

zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips



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