Tootfinder

Opt-in global Mastodon full text search. Join the index!

@nobodyinperson@fosstodon.org
2025-06-10 14:05:52

I just love :vim: #vim for its macros 🤩
(vim macro in the #AltText)
#TexLaTeX

vim screencast. a latex file is open, cursor on a \section{Conclusion} line. The F8 key is pressed (as shown by an overlay), and above the \section line a fancy figlet with reading "Conclusion" in big ASCII art letters appears. Another time F8 is pressed, the next happens for the next section.

You can add this to your vimrc (and install figlet):

nnoremap <F8> k/\\.*section.*{<CR>f{vi{yO<ESC>pV!figlet -w120<CR>maVnk:normal gI% <CR>
@samir@functional.computer
2025-08-04 09:36:04

@… Oh, you’re assuming I have tiny files. My vimrc is just 500 lines of Lua. 😜
(TBF, I did comment it well, at least. I could start splitting it up.)

@samir@functional.computer
2025-07-25 15:54:50

@… Are you going with vim or neovim?
If the latter, I definitely recommend writing your vimrc in Lua, rather than Vimscript. You’ll find many plugins are much easier to configure that way, if nothing else.

@adamhotep@infosec.exchange
2025-07-25 18:34:57

It's not often that I deploy a quick change to my ~/.vimrc and it so thoroughly improves my life, but setting <Shift> <Tab> to correct the most recent misspelled word has done exactly that, right up there with when I learned about <Ctrl> p and <Ctrl> n in insert mode. #vim

" Correct the closest misspelled wor…
Screenshot of vim config with two comments and then a conditional stanza, as present in the post text, but with proper syntax coloring here.
@samir@functional.computer
2025-06-24 14:37:26

@… Best of luck!
I checked my history and it seems I started out by symlinking the neovim config file to ~/.vimrc, and aliasing `nvim` to `vim`, with no other changes.
This was 8–9 years ago, apparently, so hopefully that still works.
I did eventually rewrite my config in Lua but only after plodding along fine for several years.