• Ladas552@lemmy.ml
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    1 year ago

    Default line wraping with this options:

    opt.linebreak = true

    opt.breakindent = true

    Makes writing and reading notes a lot better. Don’t know about coding tho, some people don’t like it but for me it’s a killer feature.

  • Vorthas@lemmy.ml
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 year ago

    I always like to remap Y to yank from current position to end of line, so it works just like D.

    nnoremap Y y$

  • Daniel@lemmy.mlOP
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    1 year ago

    I’ll go first: For me incriminating search is a must-have.

    Vim script:

    set incsearch
    

    Lua:

    vim.opt.in search = true
    
  • russjr08@outpost.zeuslink.net
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    1 year ago

    I quite like the relativenumber option (paired with the number option), because I’m terrible at being able to use numbered motions without it.

    I’m not sure what my favorite plugin would be (so many to choose from!), but my favorite Neovim color scheme has been “GitHub Dark Tritanopia” from the github-nvim-theme package.

    Oh, and for another favorite tweak of mine, I always have vnoremap $ g_ set so that using $ doesn’t copy the new line character.

  • sbv@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    I use vim as a log viewer. First thing I do is copy my homemade syntax files onto the host. chefskiss.gif