37
submitted 9 months ago* (last edited 9 months ago) by mfat@lemdro.id to c/linux@lemmy.ml

I do a lot of text editing for work and there are some phrases that I have to type frequently. What's the best way to quickly paste those phrases into a document using a shortcut or keyword? I mainly use Kwrite and Kate as i prefer plain text editors and need no formatting.

you are viewing a single comment's thread
view the rest of the comments
[-] kbal@kbin.melroy.org 10 points 9 months ago

Vim macros are quite easy to use, if you already know how to vi.

[-] ouch@lemmy.world 0 points 9 months ago

Besides macros, I think vim had some other relevant feature for this. Just can't remember it right now.

[-] overkill@feddit.de 3 points 9 months ago

I use (neo)vim with UltiSnips for coding, text editing and writing e-mails, and it works great! It's super customizable.

[-] overkill@feddit.de 2 points 9 months ago

Yeah with its flags / regex / python support UltiSnips is really the gold standard of a snippet engine. In many other environments "snippets" really just means "substitute one string for another", where UltiSnips is so much more!

[-] sloppy_diffuser@sh.itjust.works 1 points 9 months ago

Might be a plugin. I think I'm using friendly-snippets (whatever is in LazyVim). There is also LuaSnip. They feed into my auto completion plugin as one of several sources.

this post was submitted on 11 Feb 2024
37 points (91.1% liked)

Linux

48366 readers
608 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS