Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Bozhidar Batsov (a.k.a. Bug)
Bozhidar Batsov (a.k.a. Bug)
@bbatsov@hachyderm.io  ·  activity timestamp 4 days ago

I must be a really bad Emacser these days, as I keep having fun every now and then with #Vim. 😁

I finally finished an article on starting out your Vim config that has been on backburner for over half a year https://batsov.com/articles/2026/02/22/how-to-vim-build-your-vimrc-from-scratch/

Enjoy!

(think)

How to Vim: Build your .vimrc from Scratch

You don’t need a massive .vimrc to be productive in Vim.
  • Copy link
  • Flag this post
  • Block
veer66
veer66
@veer66@mstdn.io  ·  activity timestamp 4 days ago

@bbatsov What should I do instead of C-x C-e when I want to evaluate a Vimscript or Lua function that I edited in nvim?

  • Copy link
  • Flag this comment
  • Block
Normal Mode
Normal Mode
@normalmode@mastodon.social  ·  activity timestamp 3 days ago

@veer66 @bbatsov You can either source the entire file `so %` or you can yank the function and then execute the yank register from the command-line `:@​0`

edit: not 100% sure this will work for Lua

  • Copy link
  • Flag this comment
  • Block
Bozhidar Batsov (a.k.a. Bug)
Bozhidar Batsov (a.k.a. Bug)
@bbatsov@hachyderm.io  ·  activity timestamp 3 days ago

@normalmode @veer66 Yeah, the approach with Lua would be pretty similar.

But I think most people just reload entire files and working at the granularity that's common in Emacs and Emacs Lisp is not really common in Vim-land.

  • Copy link
  • Flag this comment
  • Block
veer66
veer66
@veer66@mstdn.io  ·  activity timestamp 3 days ago

@bbatsov @normalmode reloading the whole file is fine.

  • Copy link
  • Flag this comment
  • Block

BT Free Social

BT Free is a non-profit organization founded by @ozoned@btfree.social . It's goal is for digital privacy rights, advocacy and consulting. This goal will be attained by hosting open platforms to allow others to seamlessly join the Fediverse on moderated instances or by helping others join the Fediverse.

BT Free Social: About · Code of conduct · Privacy ·
Bonfire social · 1.0.2-alpha.34 no JS en
Automatic federation enabled
Log in
Instance logo
  • Explore
  • About
  • Code of Conduct