Novus Vim: Eximius Editor in Novo Munde

Neovim is so useful that I’ve been able to finish a project in a day that I hadn’t worked on for 2 years!

This is my new ‘Plang2’ Neovim Plugin as working controlling a LMT-01 thermometer chip, connected to a STM32F051 mcu running Forth on my desk right now. Its totally different to the one above although it looks the same to a layman.

Hey @techman, i’m further along in my neovim journey. Particularly in conjunction with tmux, i’m getting close to having a viable VSCode alternative. I’m gradually embracing telescope too, but i must admit, it’s still not coming naturally to me.

I thought i should share something that i only knocked a little rough edge on today. It was bugging me that i was frequently getting jammed up to update Lazy packages on my first nvim use every day. It was the terminal equivalent of a Temu popup if you catch my drift.

Anyway, this is what’s in my .bashrc to get neovim wired up for a day’s work…

if [ -x "/home/linuxbrew/.linuxbrew/bin/nvim" ]; then
  alias nvim="/home/linuxbrew/.linuxbrew/bin/nvim"
  alias "vim=nvim"
  alias "vi=vim"
  export EDITOR="/home/linuxbrew/.linuxbrew/bin/nvim"
  LAZY_SYNC_STAMP="$HOME/.cache/lazy_last_sync"
  if [ ! -f "$LAZY_SYNC_STAMP" ] || [ "$(date +%Y%m%d)" != "$(cat $LAZY_SYNC_STAMP)" ]; then
    nvim --headless "+Lazy! sync" +qa &>/dev/null & disown
    date +%Y%m%d > "$LAZY_SYNC_STAMP"
  fi
fi

The key part is the neovim --headless line. It has the packages updated before i use neovim for the first time on any machine that i connect to. You might be doing something else, and if so i’d love to see your approach.

FWIW @Belfry, this happens to be an example of some of the repo stuff we talked about while looking at @Sway the other day. My ~/.bashrc is a symlink to ~/bin/bashrc, so when i added that little disown after the &, i happened to be on my host called bev. A git add/commit/pull/push made it available to all of my other machines. My ~/cfg and ~/bin repos get three or four little adjustments like this practically every day.

1 Like

I’m mostly using Helix for general coding as it’s just so awesome, but I’ll have to move to nvim soon as my nvim Forth related pop up is almost finished.

And I need it to enable fast prototyping in embedded.

Terry