schmonz.com is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.
This server runs the snac software and there is no automatic sign-up process.
If you are seriously thinking about learning #Vim / #Neovim, do yourself a favor and proceed as follows:
1. Grok ed(1).
2. Grok vi(1).
3. Ask yourself whether you really need anything ed(1) and vi(1) don't provide.
If your answer to step 3 is "yes", go ahead. But first, do steps 1 and 2.
Here is how to do step 1: Read the man page (it's rather short), read "Ed Mastery" by @mwl (those two steps are interchangeable and even parallelizable), then use it consistently.
Here is how to do step 2: Read the man page (it's rather short as well, though not as short as ed's), then use it consistently.
Also, have a look at https://stackoverflow.com/a/1220118.
I recently wrote http://jdebp.info/FGA/original-vi.html and was thinking of doing something like this, to augment it; because Sven Guckes's list (https://guckes.net/vi/clones.html) is definitely dated and incomplete, nowadays.
It does not have #NeoVIM (for obvious reasons). Most lists of clones miss that there are several forks of Bostic #nvi, not least the two forks that are in #FreeBSD and #NetBSD base. Similarly, #DragonFlyBSD has forked nvi2.
SOLUTION: @gumnos came up with the idea of piggy-backing :nohl onto control-l for refresh:
nmap <C-L> :nohl<CR><C-L
imap <C-L> <Esc>:nohl<CR><C-L>a
Hey #vim wizards,
The number one reason I don't use search more freely when editing is that all the highlights triggers my #CDO a little bit, and :nohl is a little clumsy to type in a hurry.
I wanted to map :nohl to an easy-to-press keybind, like ctrl-/, but I can't seem to get it to work.
Any ideas?
" map Ctrl-/ to :nohl
nmap <c-Slash> :nohl<CR>
imap <c-Slash> <Esc>:nohl<CR>a
It's not arbitrary—it's hardware history. The ADM-3A terminal had arrows printed directly on those keys.
ESC was also where Tab is now. Vi wasn't designed for ergonomics, it was designed for the keyboard that existed.
EDIT OK thanks to @r1w1s1@snac.bsd.cafe I'm now at 39 lines long. 🤣
.kshrc side by side in vim and vi. I do like a splash of color and do enjoy the command completion though so I guess I will tinker with n(vi) further. #viuIf you're an nvi user what other tips or hacks are there that I should know about ? I don't suppose there is some magical way to theme it ?Undo the last change made to the file.
If repeated the u command alternates between these two states.
The . command when used immediately after u causes the change log to be rolled forward or backward depending on the action of the u command.
export EXINIT='source ~/.config/nvi/nexrc'
EXINIT is the standard ex/vi init variable, works across nvi and traditional vi implementations.
Just make sure ~/.nexrc and ~/.exrc don't exist, otherwise nvi reads those first and ignores EXINIT. #Vim #nvi #XDG
Do I need to move away from gVim/#Vim? I'm not sure, but we're in this game to try new things, right?
Is it worth it to move from Vimscript to Lua?
Feature freezing vimscript and implementing Kuroko scripting?
https://codeberg.org/NerdNextDoor/evi/issues/46
That's a no from me then. Think I'll just be sticking to what I know which is Vim.
fuck fuck fuck fuck fuck fuck fuck https://hachyderm.io/@AndrewRadev/116175986749599825 #vim
I had been meaning to gently consider neovim sometime…how’s the slop quotient over there? 😒
Ugh, come on. Is nothing sacred anymore?
(via https://kolektiva.social/@SharpCheddarGoblin/116131579930345384)
I'm like the very worst #vim user. I've used it for a quarter century and maybe understand a tenth of its abilities. XD
I'm absolutely addicted to the vi-style modal controls for editing, as it feels like a superpower, like you're becoming one with the editor. Everything else about vim/neovim seems rather inscrutable to me, and I honestly found WordPerfect 5.1 (1989) easier to use. :/
Honestly, the people who write #TUI applications for linux and other Unixy OSes should seriously look at 1980s #DOS applications. They were actually easier to use, learn, and master, and I'm saying that as someone who hated DOS. XD
VIM 9.2
"Vim now adheres to the XDG Base Directory Specification, using $HOME/.config/vim for user configuration."
There's a lot of cool things here!
If I need to synchronize between machines I use this program, Standard Notes, it's Open Source. For the rest I just open up vim.athena or vim.motif and put them in a .nfo file
https://f-droid.org/packages/com.standardnotes
#Web #links #sync #rsync #Vim #VimMasterRace #Standard #Notes #programming #technology
Amongst other changes Vim now adheres to the XDG Base Directory Specification, using $HOME/.config/vim for user configuration.
On #Illumos, Joy vi is in /usr/src/cmd/vi:
https://github.com/illumos/illumos-gate/tree/master/usr/src/cmd/vi
On #OpenBSD, Bostic #nvi is in /usr/src/usr.bin/vi/vi; #NetBSD having it in /usr/src/external/bsd/nvi; and #FreeBSD in /usr/src/contrib/nvi:
https://cgit.freebsd.org/src/tree/contrib/nvi/
FreeBSD has an nvi2 in ports:
https://freshports.org/editors/nvi2/
OpenBSD has elvis in ports:
https://github.com/openbsd/ports/blob/master/editors/elvis/pkg/DESCR
Ritter's Heirloom vi is on SourceForge:
STEVIE was posted to comp.sources.unix in 1988:
https://sources.vsta.org/comp.sources.unix/volume15/stevie/
Unfortunately, Sven Guckes's vi Clones WWW site was never completed with some of this, notably lacking Heirloom vi, for example.
https://guckes.net/vi/clones.html
But it does mention oft-overlooked commercial clones such as Watcom's vi, a from-scratch implementation started in 1983 that is also now source-available:
https://github.com/open-watcom/owp4v1copy/tree/master/bld/vi
#vi #retrocomputing #ComputerHistory #STEVIE #elvis #VIM #NeoVIM #Watcom #OpenWatcom
It's not even a hot take. It's actual history.
STEVIE came from the days when people were re-inventing Joy vi for other platforms and systems with (gasp!) arrow keys and console-paradigm I/O.
It was less than a decade until people were thinking that Joy vi could be improved and were actively trying to make things that were better.
Watcom vi, for another example, came out in the early 1990s and that had windows, and uses for function keys.
You know what would be amazing?
Some kind of OS-level overlay that would let you use vi movement and editing keys in any program.
I'm talking about going beyond something like having custom QMK keystrokes to use hjlk as the arrow keys (which is super neat, to be clear). I'm talking about a little pop-up that lets you enter something like A and it hits the End key for you, or Rapple^[ and it types 'apple[del][del][del][del][del]`
Am I the only one that thinks reaching for those special keys on the keyboard is a total drag? Especially on laptops? XD