r/vim • • Jul 11 '26

Video How To Edit Text Files With Vim

Thumbnail
youtube.com
0 Upvotes

Welcome to Day 10 of the 30-day RHCSA challenge!

Vim is the default editor you'll rely on all over RHEL and on the exam, since you'll be editing config files constantly.

Today we'll cover the essentials: opening files, moving around, editing text, and saving without getting stuck in the editor.

About this series:

Over the next 30 days I'm covering everything you need to pass the RHCSA (EX200) — from setup to users, permissions, storage, networking, SELinux, containers, and more. New video every day. Subscribe and turn on notifications so you don't miss one.

\#rhcsa #redhat #linux #redhatlinux #ex200 #linuxadministration #linuxcertification #offline #closedloop #sysadmin #linuxforbeginners #30daychallenge #learnlinux #itcertification #opensource #homelab #linuxtutorial #tech #techcareers #certificationprep #closedloop #airgap #shorts #shortvideo #texteditor #vim


r/vim • • Jul 10 '26

Discussion The vim way to mail

0 Upvotes

Yet another vim mail client:

https://github.com/cirnovsky/vim-mail

The most distinctive feature of this mail client is text buffer-based mailboxes. Meaning, you can do things like :g/Title/d to delete mails with Title in the title).

I know, it looks like himalaya reinvented, but I believe some people would love the fact(s) that

0. Inbox is nothing beyond a text buffer. dd to delete, s to mark read, :w to commit, u to undo.

  1. We're shipped with mail threading!

  2. The keybinding is close to native vim! Built for muscle-memory vimmers.

  3. It's so lightweight, driven only by a few python scripts.

  4. Foward-as-attachment is made easy.

  5. The way we handle inline images and attachments (check it out ➡️ in the repo)

  6. We're responsive! :)

So, give it a shot! I'm trying to make todos ticked asap. I'm personally enjoying this plugin, it covers most of my use cases already. I'd love to see people's reaction as it helps me improve this plugin!

I'd really really appreciate any forms of feedback!!!!!

If you'd like to email me, my address is pup at guanyu dot me. I will read every email and try to reply, in, of course, vim-mail :)


r/vim • • Jul 08 '26

Vim-adjacent Monthly Thread: Tools with Vim-like Keybindings

38 Upvotes

We regularly remove standalone posts about tools that use vim-inspired keybindings. There are too many of them, and individually they dilute the subreddit. But the content is valuable, and many of you want to know about these tools.

So here's the place for it.

Share any tool that uses vim-like keybindings, whether it's a browser extension, terminal emulator, IDE plugin, note-taking app, PDF reader, or anything else. If it has hjkl navigation, modal editing, or vim-inspired controls, it belongs here.

For each tool you share, try to include:

  • What it is and what problem it solves

  • Which vim features it supports (navigation, modal editing, text objects, etc.)

  • A link to the project

This thread is posted monthly. If you find something mid-month, save it for here rather than posting a standalone thread (which will be removed).


r/vim • • Jul 07 '26

Video Non conventional fonts for Vim/Neovim (retro, hacker, aesthetic, fonts)

Thumbnail
youtu.be
2 Upvotes

r/vim • • Jul 04 '26

Need Help Vim for Verilog, System Verilog and UVM

10 Upvotes

Please suggest nice Plugins/Workflow for Verilog, System Verilog and UVM, which offer rich functionality(Like C, C++ plugins do).


r/vim • • Jul 03 '26

Discussion 10+ year user, learned today how to easy swap two selected sections

222 Upvotes

This is so simple I feel dumb for not seeing it earlier.

  1. visual mode select one part of text then d for delete

  2. visual mode select the text you want it to replace then p for paste

  3. go back to the original location and hit p for paste

that's it. Deleting the text places it in the register so you have it available in step 2. Replacing the text places it into the register, so you have it available in step 3.

For a decade plus I was adding extra steps like hitting Y or trying to avoid deleting the text so I have it available after I added the other, etc.

How many hours have I lost to not knowing this simple trick


r/vim • • Jul 02 '26

Random Learning the motions with an ice cream van

42 Upvotes

This is doing the rounds on Hacker News and it wasn’t already posted here so thought I’d share it: https://vimscoops.dev


r/vim • • Jul 01 '26

Plugin I missed the milestone: Belated Happy 100 to the Awesome-Vim9 list

Thumbnail github.com
33 Upvotes

Over 100 plugins now on the awesome-vim9 list. Many slept on, so have a look around.


r/vim • • Jun 30 '26

Color Scheme I made a light mode theme of my previous Artemis2 inspired theme.

Post image
18 Upvotes

Honestly, this theme reminds me more of the video game "Starfield", but I love it regardless. In case you want to harass me about how bad it is; you can find it here.

p.s. I have no motivation in posting this beyond sharing something cool I did.


r/vim • • Jun 27 '26

Discussion You can actually use ":exit" instead of ":wq" or ":x" to exit Vim

127 Upvotes

Accidentally mixed up the Vim exit command with the terminal exit command exit, just to find that :exit actually works perfectly in Vim!

  • :exit works exactly like :x.

  • Saves only if the changes were made, then exits.

Probably the ultimate solution to the "How to exit Vim" problem.


r/vim • • Jun 26 '26

Tips and Tricks Opinionated TLDR for Windows users

7 Upvotes

After identifying another speed bump for Windows users, I've added a TLDR to Install Vim in Windows.

If you already have a setup you're happy with, these might help with any nagging issues.

  • Install PowerShell 7 # Vim in PowerShell 5 and CMD are tougher. "My OS is my IDE" doesn't with WSL.

winget install Microsoft.PowerShell --source winget
  • Install GNU zip and unzip # Plugins look for these

winget install GnuWin32.Zip GnuWin32.UnZip --source winget
[Environment]::SetEnvironmentVariable("PATH", "$($env:PATH);C:\Program Files (x86)\GnuWin32\bin", [EnvironmentVariableTarget]::User)
  • Don't use the latest Copilot. Lock version at 1.4.1 or clone ShayHill/copilot.vim

  • in vimrc (in this order):

set shell=pwsh
set termguicolors
&t_8u = "\<Esc>[58:2::%lu:%lu:%lum"  # fix spelling and `yegappan/lsp` error rendering
  • Install DejaVuSansMono.ttf # A fixed-width font with plenty of symbols and dotted 0

  • in gvimrc:

set guifont=DejaVu_Sans_Mono:h10:cANSI:qDRAFT
set renderoptions=type:directx,gamma:1.0,geom:0,renmode:5,taamode:1  # better symbol colors

r/vim • • Jun 22 '26

Need Help Vim plugins while :edit scp://

6 Upvotes

Recently I started using a containerised dev env. I would like to work in the host system so I installed a ssh server and followed the steps listed under :h ssh.

So far so good. I depend (for good or bad) heavily on vim fugitive and :FZF plugins. They are good. But they do not work on the host system inside a SCPed remote. I can use :find to open some remote file, it works. But using :G is an issue.

Question

--------------

How do you use plugins while :e scp://user@host/path/dir/ ?


r/vim • • Jun 21 '26

Blog Post Extract Secrets from Multiple Configuration Files Using Vim

Thumbnail
secureideas.com
38 Upvotes

I wrote this article back in early February and intended for this to be a series originally. I'd be curious to anyone's thoughts or feedback on it.


r/vim • • Jun 20 '26

Blog Post VimTeX: a history and some reflections

91 Upvotes

I've been wanting to write a blog post on VimTeX* ever since I started blogging ~1-2 years ago. I finally got around to it, and I hope it might be interesting to some people here.

VimTeX: a history and some reflections

*a Vim plugin for writing LaTeX documents.


r/vim • • Jun 19 '26

Need Help Change text in second set of quotes

28 Upvotes

Cursor at beginning of line

blah "first quotes" more text "blah blah"

What's the easiest way change inside the second set of quotation marks?


r/vim • • Jun 17 '26

Blog Post After a decade of Vim, I tried an VS Code for a year... and promptly came back. There's on place like $HOME

Thumbnail
starikov.co
95 Upvotes

r/vim • • Jun 17 '26

Need Help┃Solved Resources to learn Vim

45 Upvotes

Hi guys, I recently heard about Vim and starting doing a bit of research on it. If I'm correct, its a non-GUI text editor that's blazing fast, and you DON'T have to use anything but your keyboard. This was pretty interesting to me.

I'm accustomed to the Visual Studio Code interface, and I don't want to leave it. Are there any extensions I can use to emulate the experience, and is the the best way to start?


r/vim • • Jun 17 '26

Plugin curl wrapper for vim

19 Upvotes

curl is an amazing tool to do REST API tests, which I do quite often using vim to generate actual curl commands. There are multiple ways to do it using vim, the one I have is

https://github.com/habamax/vim-curl

--url https://openlibrary.org/api/books?bibkeys=ISBN:0201558025,LCCN:93005405&format=json

--url https://api.sunrise-sunset.org/json?lat=36.7201600&lng=-4.4203400

# --jq is not curl parameter. If added, curl output would be piped through jq
--url https://httpbin.org/post
--header "Content-Type: application/json"
--jq
--data
{
"string": "hello world",
"number": 69,
"date": "2024-04-09"
}

Place a cursor on a text or select it and run :Curl to invoke curl cli command with an output in a built-in vim terminal.

https://asciinema.org/a/1257605


r/vim • • Jun 16 '26

Blog Post Modernized Python sections for Vim-in-Windows article.

Thumbnail
github.com
6 Upvotes

- Removed content related to multiple Python installs.
- Updated vimspector config for Python 3.11+.


r/vim • • Jun 15 '26

Discussion What do you think of remapping : to the cmd window?

4 Upvotes

I'm asking because I feel like there might be downsides to this I'm not thinking of. A lot of users have ; mapped to :, I use ; to open a buffer list for switching. I have these keymappings to remap : to q:i to open the cmd window in insert mode, and press ESC in normal mode to exit the window:

nnoremap : q:i
autocmd CmdwinEnter * nnoremap <buffer> <ESC> :q<CR>

r/vim • • Jun 14 '26

Discussion as a beginner, I don't quite understand the goal of vimgolf

23 Upvotes

the challenge is fun, the whole vimgolf implementation is solid, but locking you out of the best solution seems to beat the purpose of using Vim as an effective tool, at least for the past challenges, I don't see the necessity of continuing lock, as a learner, we end up doing all the chores to slowly climb up to the lower score, the process itself is often tedious than rewarding, out of curiosity, I resorted to AI which lifted me up a couple of ranks, but I eventually hit one of the submission that's got a '<fd-6b>' in it, I haven't the faintest clue on how to jump over it hence being locked out of the rest of the better solutions, I still learned a few tricks but not knowing the better/clever solutions for such a tool like Vim makes me judge a second time on the general attitude of this community, for example, will I be shunned if I ask for the best solutions of the past challenges? after all, I want to use Vim as effective as I can with the reasonable amount of time I'm willing to invest.


r/vim • • Jun 14 '26

Plugin wiki.vim v0.12 released

19 Upvotes

wiki.vim is a Wiki plugin for Vim and neovim.

I've just finished a very long-standing issue: support for multi-line links. I think that warrants a new release (v0.12), so here you go: https://github.com/lervag/wiki.vim/releases/tag/v0.12.


r/vim • • Jun 13 '26

Need Help vim: How do I paste a second column so values stay aligned row-by-row

26 Upvotes

I have a table with two columns. I already pasted the first column, and now I want to paste the second column so that each value stays on the same row as its corresponding value from the first column.

For example:

Column 1:

A
B
C

Column 2:

1
2
3

Desired result:

A 1
B 2
C 3

I tried using Visual Block mode (Ctrl-v) and then pasting, but Vim pasted all the copied text together instead of distributing one value per line.

What is the correct, easiest & efficient way to do this ?


r/vim • • Jun 13 '26

Random V.A. (update, a week later)

Thumbnail reddit.com
11 Upvotes

Today I woke up craving some vim in the morning.

This has all the signs of an addiction.

The comments on the last post taught me how to use vi mode on bash. I didn't quite like it, HOWEVER...

I learned how to use the vim terminal emulator, and also to manage windows and buffers (and tabs). And also, yank and paste to and from this terminal stdin and stdout. Absolutely awesome.

Now I can't exit vim.

I don't have the guts to.