Fork me on GitHub
#vim
<
2020-05-01
>
dharrigan09:05:47

Does VIM (neovim) have a plugin that can pop-up the meaning of a word when in spell-check mode?

dharrigan09:05:55

i.e., dictionary definition.

noisesmith15:05:47

OT but indulging because I think wordnet is amazing https://www.vim.org/scripts/script.php?script_id=2422

noisesmith15:05:13

wn is a graph database dictionary, that has a data structure describing the relationships between words!

noisesmith15:05:20

(it also has word definitions)

noisesmith15:05:01

with the wordnet browser, you can do a structured traversal - look for words with similar but less specific / more specific meaning

noisesmith15:05:17

or siblings - words that specialize the same more general parent

noisesmith15:05:30

super useful when coming up with variable names!

dominicm15:05:06

Ooh, that's more useful than I expected

dominicm15:05:03

As it's friday, I'll share some joy of vim. I've just made a bunch of changes to the codebase automatically and I want to: A) Give a manual check B) Do a bit of reformatting for multi-line maps I've messed with. :Git difftool master..HEAD and then use ]q and [q to flick through the quickfix list and then :Gedit to tweak!

nate17:05:48

hm, I'm a bit confused by this, what gets into the quickfix list, each commit?

nate17:05:58

my diff.tool is set to neovim, so that may be throwing me off

dominicm17:05:49

Each hunk in each commit

dominicm17:05:16

So I'm taken to every line I've changed pretty much

nate17:05:05

I'll have to see what about my config prevents this from working for me

nate17:05:27

when I run :Git difftool ... I get a bunch of terminal garbage because it tries to run neovim

noisesmith15:05:38

yeah - for many tickets at work, I do my initial work in regular nvim, and once I think I'm ready for code review, I stop using nvim directly, and do all my editing via git difftool cycled with interactive history rebasing (to make sure my PR is minimal and every commit does one specific reviewable thing)

dominicm15:05:54

This was perhaps weird that I didn't want to see the diff, just to jump to where the changes happened. I also needed to make modifications (so the /tmp/ file is not useful)