GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Challah, Head Cha-La (aratinga@xoxo.zone)'s status on Thursday, 05-Sep-2024 13:14:02 JST Challah, Head Cha-La Challah, Head Cha-La

    In NeoVim, I usually do something like dt; to delete from the cursor until the first ; in the line.

    I want to do this but for a column of cursors in visual select mode.

    How do I do that?

    In conversation about 8 months ago from xoxo.zone permalink
    • Embed this notice
      Annika Backstrom (annika@xoxo.zone)'s status on Thursday, 05-Sep-2024 13:14:00 JST Annika Backstrom Annika Backstrom
      in reply to

      @aratinga visual block or visual line? Does the selection include the ;? Is the ; in a different column on every line?

      In conversation about 8 months ago permalink
    • Embed this notice
      Challah, Head Cha-La (aratinga@xoxo.zone)'s status on Thursday, 05-Sep-2024 13:28:12 JST Challah, Head Cha-La Challah, Head Cha-La
      in reply to

      @annika visual line, no, no

      In conversation about 8 months ago permalink
    • Embed this notice
      Annika Backstrom (annika@xoxo.zone)'s status on Thursday, 05-Sep-2024 13:34:22 JST Annika Backstrom Annika Backstrom
      in reply to

      @aratinga

      Unaligned:

      hello; tgere
      foo; bar
      yesthatis;fine

      Select the first column of every line, run a "normal mode" command on each line:

      <C-v>G:norm dt;

      Aligned, I would probably use visual block rather than visual line:

      one;two
      thr;fou
      fiv;six

      Enter visual block, motion to ;, move down 2 lines, delete selection

      <C-v>t;2jx

      In conversation about 8 months ago permalink
    • Embed this notice
      Challah, Head Cha-La (aratinga@xoxo.zone)'s status on Thursday, 05-Sep-2024 13:34:23 JST Challah, Head Cha-La Challah, Head Cha-La
      in reply to
      • Annika Backstrom

      @annika But would also be helpful to know what it is for unaligned ;'s

      In conversation about 8 months ago permalink
    • Embed this notice
      Challah, Head Cha-La (aratinga@xoxo.zone)'s status on Thursday, 05-Sep-2024 13:37:46 JST Challah, Head Cha-La Challah, Head Cha-La
      in reply to
      • Annika Backstrom

      @annika I forgot to mention the cursor is middle of the line. I want to select every o and delete until the ; in each line

      In conversation about 8 months ago permalink

      Attachments


      1. https://xoxo-media.sfo2.cdn.digitaloceanspaces.com/media_attachments/files/113/083/090/051/595/498/original/eeac51e566f71370.png
    • Embed this notice
      Annika Backstrom (annika@xoxo.zone)'s status on Thursday, 05-Sep-2024 13:41:40 JST Annika Backstrom Annika Backstrom
      in reply to

      @aratinga i think the :norm works but I would usually line-select the range and use :s to regex-replace over that range. I'm not sure it's easy to map commands with movement over a selection :blobthinkingcool: i hope you get a better answer!

      In conversation about 8 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.