roman

@hi@romanzolotarev.com





home: ✔ https://romanzolotarev.com

100 following, 578 followers

9 ★ 1 ↺

[?]roman » 🌐
@hi@romanzolotarev.com

vi(1) is the most frequently used item from my toolset and objectively it's the best text editor ever created and it needs no improvements 🌶️

    ...

    [?]Tim Chase » 🌐
    @gumnos@mastodon.bsd.cafe

    @hi

    There are a few vimprovements that I miss when using vi(1)

    • text-objects like

    ci"

    or

    da(

    are incredibly powerful, especially when combined with the dot-operator to repeat the change

    • the far more powerful regular-expressions (things like positive/negative look-ahead/-behind)

    • the ability to evaluate expressions in replacements like :%s/\d\+/\=submatch(1)/g lets me do some amazingly-powerful edits on a regular basis

    • insert-mode completion (being able to do things like type control+p in Insert mode to search backwards for a word matching what I've started to type)

    For more info, the corresponding vim help targets are
    :help text-objects
    :help pattern
    :help sub-replace-\=
    :help ins-completion

    (I regularly use both vi(1) and vim depending on what the editing calls for)

      [?]Antonio Frecentese » 🌐
      @chakuari@mastodon.bida.im

      @hi just one: it should read/write UTF-8. That’s why my first install is nvi2, as it’s not in -base.

        ...
        0 ★ 0 ↺

        [?]roman » 🌐
        @hi@romanzolotarev.com

        @chakuari@mastodon.bida.im if i understand correctly vi doesn't support utf8 because no utf8 support in openbsd tty...

          History