Oil.nvim like file manager for vim
i switch between vim and neovim. i have a special love for vim so i try to bring some neovim features that i miss into vim. one, for example, is the oil.nvim plugin for neovim. i made myself a plugin just like it.
I can create, rename, move, copy, delete files as if i am editing a vim buffer. of course since i made it for myself it is not bug free and not 100% complete.
my question is does the vim community want such plugin? or are they happy with using the already available file managers?
UPDATE:
i have made the plugin and it is ready to use. I am calling it VimExplorer. please try to forgive me for any bugs that you might encounter. help me by reporting it and i will find time to work on it.
Link to repo: https://github.com/Ashik80/VimExplorer
https://redd.it/1rvaop3
@r_vim
i switch between vim and neovim. i have a special love for vim so i try to bring some neovim features that i miss into vim. one, for example, is the oil.nvim plugin for neovim. i made myself a plugin just like it.
I can create, rename, move, copy, delete files as if i am editing a vim buffer. of course since i made it for myself it is not bug free and not 100% complete.
my question is does the vim community want such plugin? or are they happy with using the already available file managers?
UPDATE:
i have made the plugin and it is ready to use. I am calling it VimExplorer. please try to forgive me for any bugs that you might encounter. help me by reporting it and i will find time to work on it.
Link to repo: https://github.com/Ashik80/VimExplorer
https://redd.it/1rvaop3
@r_vim
GitHub
GitHub - Ashik80/VimExplorer: A lightweight Vim file explorer that lets you manage files and directories directly from a buffer…
A lightweight Vim file explorer that lets you manage files and directories directly from a buffer, inspired by oil.nvim. - Ashik80/VimExplorer
Give me tips for my programming setup
I am a CS student. Our main language in our courses is Java. When I was still using Windows, jGRASP was the main IDE I was using in the beginning. This was the one recommended to us. After jGRASP, I started using VScodium.
In the past year, I started using terminal-based editors because I switched to Linux and honestly I feel more productive and less distracted.
I use tmux as my terminal multiplexer. On the left side, the main pane has Vim opened. On the right side, I have two panes one on top of the other. One of them I use to display the files in the directory. The other one I use for javac/ running commands. I don’t have any plugins installed. I like to run things vanilla first before doing modifications. Do you think my set up is good or do you think I make things hard for myself by not using plugins? Thank you very much guys!
https://redd.it/1rvazal
@r_vim
I am a CS student. Our main language in our courses is Java. When I was still using Windows, jGRASP was the main IDE I was using in the beginning. This was the one recommended to us. After jGRASP, I started using VScodium.
In the past year, I started using terminal-based editors because I switched to Linux and honestly I feel more productive and less distracted.
I use tmux as my terminal multiplexer. On the left side, the main pane has Vim opened. On the right side, I have two panes one on top of the other. One of them I use to display the files in the directory. The other one I use for javac/ running commands. I don’t have any plugins installed. I like to run things vanilla first before doing modifications. Do you think my set up is good or do you think I make things hard for myself by not using plugins? Thank you very much guys!
https://redd.it/1rvazal
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
Tempfile pattern for more Unix philosophy points
Vim usually composes well with Unix utilities. However some tools, like paste and comm accept two file arguments and there is only one stdin. So it requires file saving in some capacity.
The pattern is “use stdin for one file and save an alternate file to a tempfile”. Some of this can be automated, of course. Then utilize :h :_# placeholder for an alternate file and :help :range! to replace current buffer with the result of the CLI utility.
Here's an asciinema with an example https://asciinema.org/a/857466
Edit: I guess there is another pattern here that's more interesting. Delete lines that prevent you from making your edit into another file, perform an edit, place the removed lines back.
https://redd.it/1ryqoit
@r_vim
Vim usually composes well with Unix utilities. However some tools, like paste and comm accept two file arguments and there is only one stdin. So it requires file saving in some capacity.
The pattern is “use stdin for one file and save an alternate file to a tempfile”. Some of this can be automated, of course. Then utilize :h :_# placeholder for an alternate file and :help :range! to replace current buffer with the result of the CLI utility.
Here's an asciinema with an example https://asciinema.org/a/857466
Edit: I guess there is another pattern here that's more interesting. Delete lines that prevent you from making your edit into another file, perform an edit, place the removed lines back.
https://redd.it/1ryqoit
@r_vim
asciinema.org
Vim Tempfile Pattern
Vim usually composes well with Unix utilities. However some tools, like `paste` and `comm` accept two file arguments and there is only one stdin. So it requires file saving in some capacity. The pa...
vim-gramaculate: AI-powered vim grammar checker for markdown
https://github.com/ahalbert/vim-gramaculate
https://redd.it/1runb3j
@r_vim
https://github.com/ahalbert/vim-gramaculate
https://redd.it/1runb3j
@r_vim
GitHub
GitHub - ahalbert/vim-gramaculate: AI-powered vim grammar checker for markdown
AI-powered vim grammar checker for markdown. Contribute to ahalbert/vim-gramaculate development by creating an account on GitHub.
The Awesome Vim9 list now supports GitHub and Codeberg links.
You can now add
https://github.com/user/repo
or
https://codeberg.org/user/repo
... links to
I will accept PRs (see
99 projects on the list as I write this.
https://github.com/saccarosium/awesome-vim9
https://redd.it/1rtn9nk
@r_vim
You can now add
https://github.com/user/repo
or
https://codeberg.org/user/repo
... links to
contributions.md.I will accept PRs (see
CONTRIBUTING.md) for users wishing to add new Codeberg links or update their own GitHub links to Codeberg.99 projects on the list as I write this.
https://github.com/saccarosium/awesome-vim9
https://redd.it/1rtn9nk
@r_vim
vim-format - a vimscript code formatter written in C++
I love tools like clang-format and black. I was not aware of any vimscript code formatter in existence, so I decided to make my own.
https://github.com/twcarbone/vim-format
https://redd.it/1rtid58
@r_vim
I love tools like clang-format and black. I was not aware of any vimscript code formatter in existence, so I decided to make my own.
https://github.com/twcarbone/vim-format
https://redd.it/1rtid58
@r_vim
GitHub
GitHub - twcarbone/vim-format: A code formatter for legacy vimscript.
A code formatter for legacy vimscript. Contribute to twcarbone/vim-format development by creating an account on GitHub.
built an open-source tool to pair program without leaving vim
hey r/vim, i got tired of being told to "just use vs code liveshare" every time someone wanted to pair, so i built shadow.
it works at the filesystem level — syncs file changes over an encrypted websocket connection. no vim plugin needed, it just picks up your writes automatically.
start a session, share a link, your partner joins in whatever editor they use. both of you edit live.
e2e encrypted (server never sees your code)
CLI tool (works on any OS) + mac menu bar app
free and open-source (MIT)
works for pair programming, code reviews, mock interviews
github: https://github.com/go-johnnyhe/shadow
would love feedback from vim users.
https://redd.it/1rt1b2h
@r_vim
hey r/vim, i got tired of being told to "just use vs code liveshare" every time someone wanted to pair, so i built shadow.
it works at the filesystem level — syncs file changes over an encrypted websocket connection. no vim plugin needed, it just picks up your writes automatically.
start a session, share a link, your partner joins in whatever editor they use. both of you edit live.
e2e encrypted (server never sees your code)
CLI tool (works on any OS) + mac menu bar app
free and open-source (MIT)
works for pair programming, code reviews, mock interviews
github: https://github.com/go-johnnyhe/shadow
would love feedback from vim users.
https://redd.it/1rt1b2h
@r_vim
GitHub
GitHub - go-johnnyhe/shadow: collab on any editor!
collab on any editor! Contribute to go-johnnyhe/shadow development by creating an account on GitHub.
Gruber-Darker Theme Port For Vim
Hey r/vim,
I’ve spent the last 3 years jumping between C++, Rust, Java, and C#, and I finally got tired of "rainbow-puke" themes that distract me from the logic.
I've always loved the Gruber Darker palette (originally by Jason Blevins and Alexey Kutepov, also known as Tsoding or rexim, made for GNU Emacs), so I built a faithful, robust, highly configurable, pixel perfect Vim port that focuses on readability and zero-distraction.
Why use this?
Low-level friendly: Great contrast for pointers, macros, and memory management in C/C++/Rust.
No unnecessary bloat: Just a clean
Multi-plugin support: This port supports Airline, Lightline, and also has support for most Plugin Managers.
Mahoosive Help Documentation: I have written a very detailed and brief help documentation on this theme of a total of 1472 lines. Check the repo for more details.
Screenshot:
https://preview.redd.it/veexqthc77qg1.png?width=1918&format=png&auto=webp&s=8da29ca4c64c37fc82425218279a724cfcf3315f
Repo: https://github.com/ThunderBoltCODMYT/gruber-darker.vim
I'd love to hear what you guys think, especially if you spend 8+ hours a day in the terminal. Issues and Discussions are also open on the github repo, maybe if you want to suggest some features or find some bugs, I'll be happy to fix them!
https://redd.it/1ryvk9d
@r_vim
Hey r/vim,
I’ve spent the last 3 years jumping between C++, Rust, Java, and C#, and I finally got tired of "rainbow-puke" themes that distract me from the logic.
I've always loved the Gruber Darker palette (originally by Jason Blevins and Alexey Kutepov, also known as Tsoding or rexim, made for GNU Emacs), so I built a faithful, robust, highly configurable, pixel perfect Vim port that focuses on readability and zero-distraction.
Why use this?
Low-level friendly: Great contrast for pointers, macros, and memory management in C/C++/Rust.
No unnecessary bloat: Just a clean
.vim file.Multi-plugin support: This port supports Airline, Lightline, and also has support for most Plugin Managers.
Mahoosive Help Documentation: I have written a very detailed and brief help documentation on this theme of a total of 1472 lines. Check the repo for more details.
Screenshot:
https://preview.redd.it/veexqthc77qg1.png?width=1918&format=png&auto=webp&s=8da29ca4c64c37fc82425218279a724cfcf3315f
Repo: https://github.com/ThunderBoltCODMYT/gruber-darker.vim
I'd love to hear what you guys think, especially if you spend 8+ hours a day in the terminal. Issues and Discussions are also open on the github repo, maybe if you want to suggest some features or find some bugs, I'll be happy to fix them!
https://redd.it/1ryvk9d
@r_vim
Is there an easy way to change the color of specific characters.
In monospaced fonts far too many characters look alike, dashes and hyphens, and the dashes different lengths are some examples. Same for spaces. Also the breaking status. I'd like to mark them with color. Is there a simple way to do this.
https://redd.it/1rzadg3
@r_vim
In monospaced fonts far too many characters look alike, dashes and hyphens, and the dashes different lengths are some examples. Same for spaces. Also the breaking status. I'd like to mark them with color. Is there a simple way to do this.
https://redd.it/1rzadg3
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
Formating tables : Some weird vimscript bug
Hello everybody,
I am currently trying to write a vimscript to act on a visual range.
**Here is the whole idea :**
1. I filter visual selection through pandoc command (not relevant here I think, but it transforms my multiline-table markdown table to simple line)
2. because I lost visual selection (and because a:lastline is now wrong), i select my table again
3. I remove the === and --- lines.
**Here is the following script :**
1: function! FuncFormatPandocTable()
2: '<,'>!pandoc -t markdown-multiline_tables --wrap=none -o -
3: endfunction
4:
5: function! FuncFormatListTable()
6: call FuncFormatPandocTable()
7: normal vip
8: '<,'>g/^[ =+-]*$/d
9: endfunction
**Here is the problem :**
The full script doesnt work.
1. If i comment line 8, I do have my table formated and the (new) table is selected.
2. If i comment line 6, I do have my '===' and '---' lines removed.
3. I can not chain both, for some mysterious reason
Does somebody can explain this sorcery to me ?
https://redd.it/1ryy8wm
@r_vim
Hello everybody,
I am currently trying to write a vimscript to act on a visual range.
**Here is the whole idea :**
1. I filter visual selection through pandoc command (not relevant here I think, but it transforms my multiline-table markdown table to simple line)
2. because I lost visual selection (and because a:lastline is now wrong), i select my table again
3. I remove the === and --- lines.
**Here is the following script :**
1: function! FuncFormatPandocTable()
2: '<,'>!pandoc -t markdown-multiline_tables --wrap=none -o -
3: endfunction
4:
5: function! FuncFormatListTable()
6: call FuncFormatPandocTable()
7: normal vip
8: '<,'>g/^[ =+-]*$/d
9: endfunction
**Here is the problem :**
The full script doesnt work.
1. If i comment line 8, I do have my table formated and the (new) table is selected.
2. If i comment line 6, I do have my '===' and '---' lines removed.
3. I can not chain both, for some mysterious reason
Does somebody can explain this sorcery to me ?
https://redd.it/1ryy8wm
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
Vim 9
Wow, I did not realize Vim 9 was out. I've used Vi/Vim since the early 90's and used plugins for MS Word and Outlook integration. Don't use Vim for work now (no more work :>, I'm old!) but still use it for any personal text editing. When I do need to edit without Vim, it's painful. It's mainly Thunderbird I would want Vim integration.
So, not saying much other than thank you to all of you keeping Vim alive and well.
https://redd.it/1s5qrip
@r_vim
Wow, I did not realize Vim 9 was out. I've used Vi/Vim since the early 90's and used plugins for MS Word and Outlook integration. Don't use Vim for work now (no more work :>, I'm old!) but still use it for any personal text editing. When I do need to edit without Vim, it's painful. It's mainly Thunderbird I would want Vim integration.
So, not saying much other than thank you to all of you keeping Vim alive and well.
https://redd.it/1s5qrip
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
I wrote a buffer switcher plugin
https://github.com/nonrice/bpick
This is the first plugin i wrote. You can just press a hotkey and type a digit to switch. I think it is superior to the other buffer switching methods i found. I am happy using it so far :)
https://redd.it/1s5p82o
@r_vim
https://github.com/nonrice/bpick
This is the first plugin i wrote. You can just press a hotkey and type a digit to switch. I think it is superior to the other buffer switching methods i found. I am happy using it so far :)
https://redd.it/1s5p82o
@r_vim
GitHub
GitHub - nonrice/bpick
Contribute to nonrice/bpick development by creating an account on GitHub.
I made a site that explains the core concepts of Vim in plain English.
I created a site that teaches Vim from scratch. It’s still a work in progress, but there's already enough content to be helpful. There's also a section for advanced users.
https://redd.it/1s56lwn
@r_vim
I created a site that teaches Vim from scratch. It’s still a work in progress, but there's already enough content to be helpful. There's also a section for advanced users.
https://redd.it/1s56lwn
@r_vim
Vimandgit
Why Do People Use Vim in 2026? Here's Why You Should Use Vim.
Why Do People Use Vim? Is Vim Worth Learning? Learn why developers use Vim and Neovim, and where to start with practical guides for beginners
Maps that changed my workflow
If you're a user who doesn't remap certain keys because you spend time SSH'd into servers with no customization, feel free to skip this. No need to bang that drum. I personally have no trouble switching between custom and default maps. I upload a .vimrc to all my servers anyways.
The most impactful trick is remapping
The first Vim mapping trick is setting the leader key to
Next is mapping
Another trick is mapping
The next trick is using
If people find these useful I may share more tricks. These are ones that majorly affect the usability of Vim for me.
https://redd.it/1s4gvdj
@r_vim
If you're a user who doesn't remap certain keys because you spend time SSH'd into servers with no customization, feel free to skip this. No need to bang that drum. I personally have no trouble switching between custom and default maps. I upload a .vimrc to all my servers anyways.
The most impactful trick is remapping
Caps Lock as ESC for easy access. This isn't a vim trick, and is done at the OS level. There's opinions around whether Caps Lock should be another CTRL key instead. I like CTRL where it is. Sometimes I'll switch the left WIN and CTRL to make CTRL easier to reach (depending on the keyboard). Shift + Caps Lock becomes the actual Caps Lock and now you have an easy to reach ESC for every program on your computer!The first Vim mapping trick is setting the leader key to
, which is easy to reach. You may think because , is already the reverse command, this is a bad idea, however this sets us up for the next trick.set g:mapleader = ','
Next is mapping
<Space> to : for command-line mode. Considering the command-line is often used, tapping spacebar is much easier. This frees up : for mapping to , and bingo, we have our reverse command back. Having repeat and reverse on the same physical key with ; and : makes sense (to me).nnoremap <Space> :
nnoremap : ,
Another trick is mapping
K to i<CR><Esc> for spliting a line at the cursor. This makes sense for two reasons. First, I use this wayyy more than the help command which can be mapped elsewhere. Second, having J as join line and K as split line makes more sense, no? I think so.nnoremap K i<CR><Esc>
The next trick is using
<Leader> with any command that normally puts/pulls text to/from the unnamed register so it instead uses register 0. This prevents text from getting wiped out by another command and stores it for later.nnoremap <Leader>d "0d
nnoremap <Leader>dd "0dd
nnoremap <Leader>D "0D
nnoremap <Leader>c "0c
nnoremap <Leader>cc "0cc
nnoremap <Leader>C "0C
nnoremap <Leader>y "0y
nnoremap <Leader>yy "0yy
nnoremap <Leader>Y "0y$
nnoremap <Leader>p "0p
nnoremap <Leader>P "0P
vnoremap <Leader>d "0d
vnoremap <Leader>D "0D
vnoremap <Leader>c "0c
vnoremap <Leader>C "0C
vnoremap <Leader>s "0s
vnoremap <Leader>y "0y
vnoremap <Leader>p "0p
If people find these useful I may share more tricks. These are ones that majorly affect the usability of Vim for me.
https://redd.it/1s4gvdj
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
Long-term maintenance of Vim 8.x, free of generative AI
https://sr.ht/~sircmpwn/vim-classic/
https://redd.it/1s431nl
@r_vim
https://sr.ht/~sircmpwn/vim-classic/
https://redd.it/1s431nl
@r_vim
Neovim/Vim Mini-Guide: A practical 80% reference
https://github.com/abitofhelp/abitofhelp/blob/main/assets/docs/linux/neovim_vim_mini_guide_v1_0_1.pdf
https://redd.it/1s36ptp
@r_vim
https://github.com/abitofhelp/abitofhelp/blob/main/assets/docs/linux/neovim_vim_mini_guide_v1_0_1.pdf
https://redd.it/1s36ptp
@r_vim
GitHub
abitofhelp/assets/docs/linux/neovim_vim_mini_guide_v1_0_1.pdf at main · abitofhelp/abitofhelp
Contribute to abitofhelp/abitofhelp development by creating an account on GitHub.
Weird colour changing behaviour of cursor
Any idea what is causing this?
Things that might be relevant -
Plugins I use: auto-pairs, vim-closetag
i have "filetype plugin indent on" in my .vimrc
https://redd.it/1s3ivl3
@r_vim
Any idea what is causing this?
Things that might be relevant -
Plugins I use: auto-pairs, vim-closetag
i have "filetype plugin indent on" in my .vimrc
https://redd.it/1s3ivl3
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
Vim plugin for browsing throught the past claude code discussions
Claude Code's UI is terrible. This plugin lets you browse the discussions directly in vim. That's it.
https://github.com/serpent7776/viclaude
https://redd.it/1s1v5dx
@r_vim
Claude Code's UI is terrible. This plugin lets you browse the discussions directly in vim. That's it.
https://github.com/serpent7776/viclaude
https://redd.it/1s1v5dx
@r_vim
GitHub
GitHub - serpent7776/viclaude: vim frontend for reading past claude code discussions
vim frontend for reading past claude code discussions - serpent7776/viclaude
Does GVim Run Natively on Wayland, or Via XWayland?
I'm a little confused because the GVim package on Fedora is called
https://redd.it/1s1qyoh
@r_vim
I'm a little confused because the GVim package on Fedora is called
vim-x11 (and if you try to install gvim it treats it as an alias to vim-x11) however the text on :help gui-wayland says that support for Wayland arrived with version 9.1.0064.https://redd.it/1s1qyoh
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community