10 points

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

nnoremap Y y$

permalink
report
reply
8 points
*

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

Vim script:

set incsearch

Lua:

vim.opt.incsearch = true

Edit: Typo

permalink
report
reply
2 points

That was a typo though, wasn’t it? Bcs I’m not ruling out the possibility that there’s an FBI plugin for neovim nowadays.

permalink
report
parent
reply
2 points

Ha! Good catch, that’s my bad. Thanks btw.

permalink
report
parent
reply
8 points
*

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.

permalink
report
reply
5 points
*

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.

permalink
report
reply
4 points

I have muscle memory that makes me press C-s after every escape so I just make it save document like other text editors

nmap :w

permalink
report
reply

VIM - Vi Improved

!vim@lemmy.ml

Create post

VIM - Vi Improved, text editor community

Please use English.

Community stats

  • 1

    Monthly active users

  • 25

    Posts

  • 25

    Comments

Community moderators