this post was submitted on 25 Nov 2023
25 points (93.1% liked)

VIM - Vi Improved

1 readers
1 users here now

VIM - Vi Improved, text editor community

Please use English.

founded 4 years ago
MODERATORS
all 13 comments
sorted by: hot top controversial new old
[–] Vorthas@lemmy.ml 7 points 9 months 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$

[–] hai@lemmy.ml 5 points 9 months ago* (last edited 9 months ago) (1 children)

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

Vim script:

set incsearch

Lua:

vim.opt.incsearch = true

Edit: Typo

[–] walthervonstolzing@lemmy.ml 2 points 9 months ago (1 children)

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.

[–] hai@lemmy.ml 2 points 9 months ago

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

[–] Ladas552@lemmy.ml 4 points 9 months ago* (last edited 9 months 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.

[–] rasensprenger@feddit.de 2 points 9 months ago

vim-surround is an essential plugin for me

[–] XTL@sopuli.xyz 1 points 9 months ago

Neovim with no plugins.

[–] russjr08@outpost.zeuslink.net 1 points 9 months ago* (last edited 9 months 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.

[–] collapse_already@lemmy.ml 1 points 9 months ago

Pretty basic, but I like setting backupdir and directory so I don't have to add vim undo and swap files to my .gitignore. Also, noerrorbells because sounds irritate me and I frequently intentionally do things that would trigger them.

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

[–] sbv@sh.itjust.works 1 points 9 months ago

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