mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

335K
active users

#vim

33 posts32 participants0 posts today

Hey #vim users, have you tried :terminal? Checkout this setup to make it behave more like a regular buffer.

Use vim keys in normal mode:
I - insert at start of line
A - insert at end of line
p - paste register

And cmd.exe users, it sets up readline shortcuts in insert mode:
<C-u> - Start of line
<C-k> - End of line
<C-w> - Delete a word

github.com/idbrii/vim-david/bl

My .vim without .vim/bundle/. Part of daveconfig. Contribute to idbrii/vim-david development by creating an account on GitHub.
GitHubvim-david/plugin/config_terminal.vim at main · idbrii/vim-davidMy .vim without .vim/bundle/. Part of daveconfig. Contribute to idbrii/vim-david development by creating an account on GitHub.

After hours of trying to understand why a one-line change prevented my code from compiling, I figured out that my code formatter was mangling the file.

So, out with the old, in with the new: ALE for vim

github.com/dense-analysis/ale

Working great for #Haskell, and much faster than my previous setup

Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support - dense-analysis/ale
GitHubGitHub - dense-analysis/ale: Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) supportCheck syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support - dense-analysis/ale

I like what I like. And when I like something, I'm usually extremely enthusiastic. This is not to say these things are perfect. They never are. I love #Dogs. I love software engineering. I love some of these CLI editors: I'm a longtime #Vim (and then #NeoVim) user; and recently #HelixEditor. I love #Git. I love #Python. I’m really starting to love #RustLang. I've used many #PasswordManagers, of them, I love #1Password.

Every single one of these things has downsides. And I can enumerate, understand your position, and identify when you want to talk about those downsides. But when I talk about the positives, I will be enthusiastic.

TIL about "digraphs" in (neo)vim. Need to insert, say, an en dash, which has a digraph of -N? In insert mode, ctrl-k, hypen, N. Want to check the digraph of a character already in your file? ga to show ascii, and look at the "Digr" notation. You would see e.g. "Digr =e" for the euro symbol.

:help digraphs
:help digraphs-default

Does anyone know of a #text #editor, which runs in a #Linux #terminal, and uses only the characters: lowercase a-z, 0-9, comma, and period, in commands?

I want such an editor to ease my life on #Termux in Android, because these characters are the only ones immediately accessible on a standard Samsung keyboard, without the use of symbol keys.

And no, #vim doesn't fit the bill, because it needs Esc, ":" and "$"; #emacs and #nano are out because of the Ctrl and Alt keys, conspicously absent from mobile keyboards.