Inline error diagnostic tool for vim 9.0+
https://github.com/Joekrry/vimline-errors
Hi all, I have built a very well known tool for native vim 9.0+ based on the style of this neovim tool https://github.com/rachartier/tiny-inline-diagnostic.nvim .
Obviously in line error checks have existed for years but I haven't been able to find a tool that has this style for native vim. Please let me know if it does exist. If not, please consider starring or contributing as I am only a student and should really be focussing on my dissertation lol
https://redd.it/1usn25d
@r_vim
Non conventional fonts for Vim/Neovim (retro, hacker, aesthetic, fonts)
https://youtu.be/zQPkfurpJ0c?si=CTKAl2xbDyQV2Hq6
https://redd.it/1uq192r
@r_vim
10+ year user, learned today how to easy swap two selected sections
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
https://redd.it/1um0mu6
@r_vim
vimdoc-language-server: LSP (formatting, diagnostics) for help files
/r/neovim/comments/1s6y8o1/vimdoclanguageserver_lsp_formatting_diagnostics/
https://redd.it/1s6y9kc
@r_vim
I missed the milestone: Belated Happy 100 to the Awesome-Vim9 list
https://github.com/saccarosium/awesome-vim9
https://redd.it/1ukr28k
@r_vim
You can actually use ":exit" instead of ":wq" or ":x" to exit Vim
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.
https://redd.it/1uhbmpb
@r_vim
Vim plugins while :edit scp://
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/ ?
https://redd.it/1ucjz34
@r_vim
Can't spell "revolution" without "vi"
https://redd.it/1uc521m
@r_vim
Change text in second set of quotes
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?
https://redd.it/1ua0hzr
@r_vim
After a decade of Vim, I tried an VS Code for a year... and promptly came back. There's on place like $HOME
https://starikov.co/no-place-like-home/
https://redd.it/1u8gknn
@r_vim
Modernized Python sections for Vim-in-Windows article.
https://github.com/ShayHill/article_install_vim_in_windows#vimspectorjson
https://redd.it/1u71rau
@r_vim
wiki.vim v0.12 released
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.
https://redd.it/1u5g4k3
@r_vim
vim: How do I paste a second column so values stay aligned row-by-row
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 ?
https://redd.it/1u4ystj
@r_vim
The magic of vim macros - 10 Examples
https://www.youtube.com/watch?v=O7o_4F9wpls
https://redd.it/1u35u81
@r_vim
put: String Parsing Issue
Here, `echo` works fine, but `put` raises an error. Why?
AIM:
let s:key_handlers = #{
\ a: {-> execute('echo "a"')},
\ b: {-> execute('echo "b"')},
\ c: {-> execute('echo "c"')},
" ... fill d-z
\ }
APPROACH:
:echo join(map(split('defghijklmnopqrstuvwxyz', '\zs'), '"\\ ".v:val.": {-> execute(''echo \"" . v:val . "\"'')},"'), "\n")
:put =join(map(split('defghijklmnopqrstuvwxyz', '\zs'), '"\\ ".v:val.": {-> execute(''echo \"" . v:val . "\"'')},"'), "\n")
ISSUE:
E115: Missing single quote: '
⚠ SOLVED, courtesy u/LostAd6514
https://redd.it/1u2oeuc
@r_vim
Monthly Thread: Tools with Vim-like Keybindings
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).
https://redd.it/1uqcnh1
@r_vim
Vim for Verilog, System Verilog and UVM
Please suggest nice Plugins/Workflow for Verilog, System Verilog and UVM, which offer rich functionality(Like C, C++ plugins do).
https://redd.it/1un5oil
@r_vim
Bringing images to vim.
https://codeberg.org/zoomlogo/image.vim
I wrote this plugin to basically bring images to vim using only vim9script. It depends on the kitty graphics protocol and ImageMagick. I was inspired by image.nvim lol. As of now it only displays image files (and provides an API), no markdown integration.
https://preview.redd.it/7hyho3aa9tah1.png?width=1920&format=png&auto=webp&s=cb59303d24ed0ba9404bc6f641bd96252398611a
https://preview.redd.it/p30u9qxx9tah1.png?width=1920&format=png&auto=webp&s=8b4eb9d23eec9a6749bb934ce9a2a85bf47b0a28
I plan on using it to render inline equations (using eqn and groff) but I wanted to hear what y'all think of the plugin, its my first time posting here.
https://redd.it/1ulh3yl
@r_vim
Learning the motions with an ice cream van
This is doing the rounds on Hacker News and it wasn’t already posted here so thought I’d share it: https://vimscoops.dev
https://redd.it/1ulc0mu
@r_vim
I made a light mode theme of my previous Artemis2 inspired theme.
https://redd.it/1uk3r4t
@r_vim
Opinionated TLDR for Windows users
After identifying [another speed bump for Windows users](https://github.com/vim/vim/issues/20413), I've added a TLDR to [Install Vim in Windows](https://github.com/ShayHill/article_install_vim_in_windows).
If you already have a setup you're happy with, these might help with any nagging issues.
* Install [PowerShell 7](https://github.com/PowerShell/PowerShell) \# 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](https://github.com/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](https://github.com/dejavu-fonts/dejavu-fonts/releases/tag/version_2_37) \# 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
https://redd.it/1ugatd9
@r_vim
Extract Secrets from Multiple Configuration Files Using Vim
https://www.secureideas.com/blog/extract-secrets-from-multiple-configuration-files-using-vim
https://redd.it/1uc4pd1
@r_vim
VimTeX: a history and some reflections
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](https://lervag.github.io/posts/reflections-on-vimtex/)
a Vim plugin for writing LaTeX documents.
https://redd.it/1ub38z7
@r_vim
Resources to learn Vim
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?
https://redd.it/1u8lbeu
@r_vim
curl wrapper for vimcurl 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
https://redd.it/1u7wvhg
@r_vim
What do you think of remapping : to the cmd window?
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>
as a beginner, I don't quite understand the goal of vimgolf
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.
https://redd.it/1u5jnmh
@r_vim
V.A. (update, a week later)
/r/vim/comments/1tz17s2/guys_ive_started_craving_vim_motions_on_the_shell/
https://redd.it/1u4ww82
@r_vim
Has anyone used or though of using Neovide but with just regular vim?
https://redd.it/1u36rq3
@r_vim
Vim: Snippet to Quickly Display RGBA Images
https://redd.it/1u1xsrp
@r_vim