this post was submitted on 14 Jun 2023
9 points (100.0% liked)

VIM - Vi IMproved

1039 readers
1 users here now

For Vim enthusiasts and anyone interested in Vim/Neovim!

"VIM is the greatest editor since the stone chisel." - Dr. Jose Unpingco

#HJKL

founded 1 year ago
MODERATORS
 

as title says :-). Time to start posting some .vimrc / .nvimrc snippets.

top 6 comments
sorted by: hot top controversial new old
[–] maxficco 3 points 1 year ago

I’ll change the sidebar!!

[–] [email protected] 2 points 1 year ago

One of my faves, for navigating buffers. You are using buffers, right?

nnoremap H :bp<cr> 
nnoremap L :bn<cr> 
nnoremap gb :ls<cr>:b 
nnoremap <Leader>g :e#<CR> 
nnoremap <Leader>1 :1b<CR> 
nnoremap <Leader>2 :2b<CR> 
nnoremap <Leader>3 :3b<CR> 
nnoremap <Leader>4 :4b<CR> 
nnoremap <Leader>5 :5b<CR>
nnoremap <Leader>6 :6b<CR> 
nnoremap <Leader>7 :7b<CR> 
nnoremap <Leader>8 :8b<CR> 
nnoremap <Leader>9 :9b<CR> 
nnoremap <Leader>0 :10b<CR>
[–] [email protected] 2 points 1 year ago

I also use neovim, using a Lua-based config. I recently switched to NixOS though, so I may be moving all of my configs to Nix at some point

[–] rist097 1 points 1 year ago (1 children)

There is already a neovim community, although I agree that we should not dilute communities too much as they are quite small at the moment https://lemmy.world/c/[email protected]

[–] chimay 2 points 1 year ago

agreed ! btw, i'm surprised not to see more (neo)vim users here, a lot of them must be linux/bsd users, i thought they would be more concerned with what's going on in reddit right now.

[–] PeteZ 1 points 1 year ago

I don’t mind neovim comments here. But you should know there’s a large neovim community as well.