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

Re: [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode



On Jun 22,  4:10pm, Filipe Silva wrote:
}
} if [[ $CURSOR = '0' ]]; then
}    zle .vi-put-before -n 1
} else
}    zle .vi-put-after -n 1
} fi

This would more commonly be written using (( math )), e.g.:

  if (( CURSOR )); then
    zle .vi-put-after -n 1
  else
    zle .vi-put-before -n 1
  fi

Does that cover the situation where initially CURSOR > 0 but the motion
applied extends leftward to the beginning of the line?



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