Do you use vim?
Do you use vim as your default text editor? If you do not, have you ever been in a situation you could do nothing but use vim?
117
Comments133Do you use vim as your default text editor? If you do not, have you ever been in a situation you could do nothing but use vim?
I've been using Vim for 20 years.
I only opened it once and I haven't been able to close it yet
I'm not sure at what point in the last 20 years they put the instructions in the vim, but it gives you clear instructions on what to do if it thinks you're trying to escape from vim jail.
It's called a power button.
Yes
vim all day
They will take it from my cold dead hands
Save the Ugandan children
Neovim is my goto editor for terminals. Yes.
:wq
Only helix
nano
micro > nano
yes, that’s how unit prefixes work
I keep it holy with Emacs
I started in vim and now moved into evil emacs
iyes :wq
Been there, done that: forgetting to press ESC
I pressed it. Just pressed it again. Turns out it doesn't show up on Lemmy. Lol
I like to press"Control-c" instead of ESC. It is more convenient to type and mostly does the same thing.
I use it where it's available and helix isn't
Helix is just user friendly vim, honestly. Vim barely has any help and helix is batteries included. Ever since discovering it, vim feels like a downgrade.
It's just way easier to get helix to a usable state for the languages I write in than it is with vim. I don't have to go plugin hunting or vetting random github repos; all the support mostly comes shipped with the editor. Throw some lines in TOML file and you're good, vs downloading a plugin manager, downloading plugins, configuring those plugins and hoping you got everything right and the plugin repo's README isn't 10 years out of date.
100%
The process you described is definitely what I went though with vim and neovim. After about a decade of vim I still couldn't get proper language support and an IDE like experience going. When language servers and the debugging protocol came along, it was worse to find the right plugin and configure that correctly.
Helix simplified my decade long struggle with vim in a single weekend. It still isn't a TUI IDE but it's such an upgrade, I'll take it.
Same. Every machine I have control of I install Helix. For the rest, I remember just enough vi to do what I need and get out.
Didn't end your post with :wq
ZZ
Because you use :x for that.
No, I use Neovim. But this I use 100% of the time.
Old school Emacs user here. The keyboard shortcuts are so ingrained in my head I don't know if I would ever be able to switch to another editor. Old dog ...
Yes
Vim is slop-coded now, unfortunately. I use evil Emacs.
I guess I should take another look at evil-mode.
There are forks.
evi is not mature enough and doesn't have any package repos. There is another fork that I'm not going to mention, because it's developed by a horrible human being.
Some of us run our own forks. I'm a big fan of software that has stopped changing.
i mean vim is fine and all and i can get around it fine but nano superiority
Nano has syntax highlighting??
yup! https://www.nano-editor.org/dist/latest/nanorc.5.html
TIL
Always funny how people get surprised that nano actually does things. Its like everyone assumes it's the fiscer price of editors
Haha true
Nano doesn't have vim bindings though so what's the point.
Yes, won't quit, can't quit, seriously, help.
For much, not for all.
System and user files are pretty close to one another in NixOS, so I use it for both. Sudoedit is set to vim, but I have a kitty and neovim (technically it's nnot nvim, it's nvf so I can config it in Nix instead of Lua) environment that tiles quite nicely and uses nonconflicting keymaps.
I use mod+hjkl for navigating my window manager, too, which has led to an interesting situation. Hyprland just migrated to Lua from Hyprscript, and Neovim uses a lot of Lua for inbuilt commands and stuff, so you'd think I'd be thrilled to write them both in the same language. Instead I just sigh at the greener grass because I already configured them both in Nix.
I do use Obsidian (with Vim binds, and monospace source mode as default for everything except tables) for my markdown viewer / primary notekeeping cloud sync, and Kate for previewing media that needs to be formatted right as a .doc or .pdf.
Some Obsidian notes are handled with Vim, actually. I have a script that sets up a new Zettelkasten note with automatic tags and opens it in Neovim, because I find it faster than Obsidian when I have a single thought and need to write it before it's forgotten. Thanks ADHD. I write Zettelkasten like little scripts of code - unique, atomic, referencing and importing each other, with a unique version history, and Vim's great at that.
Damn, that's quite the detailed setup.
Thank you! I believe Vim is a deeply individual and almost emotional experience, and a bit of rambling is always worthwhile to get the perspective of a Vim setup.
Yes! Neovim for coding, Vim for non-code editing
There is literally and figuratively no reason to not use Neovim for both.
I'm a freelance linux it nerd. I figured I better get used to vim/nvim because every company I visited had different tooling available but their servers ALWAYS had vim.
Now I have a nice .vim setup I can easily copy/paste and work easily and fast. I've become quite adept in the years following that decision.
Plus, as a freelance dude using vim quickly and flying through code bases makes it really seem like I know what I'm doing / hacker type .... I don't. And I'm no hacker..... But the customer is happy soooo :-)
P.s. I'm currently trying out the Zed editor with vim bindings. They are emaculate!
Yes. I started using it years ago and have been unable to exit ever since.
But honestly related to your question, I started learning to use vim exactly because when I started to learn and use Linux I was often stuck in situations where that was the only thing available.
Yes. I also use vim here (in this Web textarea where I'm typing this answer) thanks to Tridactyl.
Fascinating
Upvoted your comment using
fto get link hints, thenxy(example of label) so 3 keystrokes, no mouse.Sorry my hands are busy
`C - x 2'
C -x C-f ~/.emacs.d/init.elC-x C-sI use to use vim but I discovered org mode so I use emacs.
Recently I been doing programming on plan 9 so I been using acme.
Once your org mode you a in't go anywhere anymore
Neovim for any text editing including code, but this thread tempted me to try helix.
You almost always have nano or pico available, so it's really unlikely that you'd get stuck with nothing but vim, unless you just didn't know that nano existed.
neovim at home, Zed with vim bindings at work because I'm stuck with a locked-down Windows machine.
I wish they’d fucking approve zed at work. Stuck with the shitty excuse of vscode. Also powershell sucks ass.
Started on vi, stayed in whatever has vi/vim bindings available.
The more I can stay on home row keys the better editing text is.
VSCode/Codium with vim mode. Regular vim if I’m stuck in text land.
I haven’t tried neovim. Supposedly that could handle everything I need out of vscode, but it’s easier to not be an odd one out at work.
In college, my advisor/boss was basically the emacs guy, so I picked up enough to do some basic text editing but didn’t go further because I didn’t feel like spending hours reading man pages.
Later I worked at a place where a shared computer only had vi, so same story. I learned about a half dozen commands and left it with that.
Then I went though a series of other editors and IDEs at different jobs, Notepad++, StyledEdit, CodeWarrior, CodeComposer, some weird proprietary Netbeans based thing, VS Code, etc. I still used vi for minor config editing on the occasional remote machine.
Then I got a job where I would be doing a ton of work on headless remotes, so I decided to get serious about learning something purely terminal based. I tried a couple of things, but ended up with Helix because:
Now I’m all helix all the time and really enjoying it.
Yes I love using neovim it feels better having an editor, agent, and cli in separate terminal tabs instead of having one program for all three
Yes, yes, and have been in a situation where the only editor available was nvi (not vim). ed(1) rocks when on slow connections to low-specced boxen, btw.
I switch between Nano and Vi depending on what machine I am on and if I remember if Nano is installed.
Same, also depends on what I'm going to change. If I'm doing any heavy editing, vi/vim. Something small and fast? Also usually vi/vim, but sometimes nano as it's preinstalled unlike vim nowdays.
Yes. I use vim as much as possible. When I don’t use vim, I use its keybindings in Firefox, IntelliJ, VSCode and even in eMacs (spacemacs with evil mode).
No. But only because I switched to helix. I have used vim for a lone time before that. Only having vim on a system is fine. Far worse is only having vi. Which is almost like vim but missing a lot of useful things.
I use helix part-time but am forced to go back to neovim a majority of the time for a few reasons:
If 1 and 2 got fixed, I'd be a full time helix user
What do you mean by persistent undo? Never used helix before
In vim you can make some changes to a file, close vim, and then reopen the files, and then undo your changes, i.e. your undo history persists across sessions.
I do not use it as my default text editor but I use it practically every working day. Plenty of times it's the only thing I have available to me. Pretty often vi is all I have to work with
I can still speak vim, but I drive helix daily.
Yes, started using vi when I started using a Unix login at university. That was in about 1994 or so. When I started using Linux it was definitely vim.
I've tried using evil-mode and vim keybindings in other editors. I somehow keep coming back to vim, though.
Yes I do and to my delight I' ve yet to encounter a situation where I can't use the editor I prefer anyway. Joy.
nanofor most editingvimdifffor comparing files (Ie.pacnewfiles)Nah, I'm another nano guy. You can set up syntax highlighting for it you know?
It's not that any one is better than the other, it's up to your use cases. I've learned vim a few times in my life already (and mostly just know the hjkl bindings from playing tons of terminal roguelikes) but it always decays because I don't put the knowledge to use. Because it just doesn't fit my use case.
I write small scripts, some Python and stuff and I'll usually use PyCharm to debug that these days. So nano is relegated to the small tasks like config editing or quick, in place fixes to scripts.
This is correct. For example, if the use case is editing a text file, then vim is better.
I used Vim for a few years before switching to Neovim. So, yes?
This question is not relevant to me, based on the prior question and answer, as I use it as my default text editor. But allow me to give a somewhat relevant answer. When I installed my operating system from scratch, I had to do text edits without Vim or Neovim being installed. It felt like I could do nothing without Vim, but managed it somehow. I had to use Nano!
Helix for really quick edits, emacs for pretty much anything else. I do use tridactyl in firefox though, does that count? 😁
Nano for low-level system crap (config, scripting, etc) and Obsidian/Typora/Insert WYSIWYG editor here for major writing. I'll utilize LibreOffice if I need something done in a Windows-compliant way.
Been using micro.
I only use vim when it’s the only option… so like 99.9% of the time 😞
On the terminal yes.
On GUIs I generally use an IDE or VSCodium with vim keybindings.
I have a vim setup with plenty of plugins that honestly, I don't know if I need anymore.
I have never been on a machine where I can't install and use nano. I can use vi / vim / nvim, but I don't have muscle memory. I have tried to convert away from nano, but it's just too easy and what I have been used to over nearly 2 decades on Linux. I have nvim installed with a few plugins and a bit of a custom config, but anytime I need to do something important or complex I jump into nano. If I remember and am not in a rush I'll jump into nvim to try and practice.
I used to use vim pretty exclusively, I've since switched to neovim. There have been a few cases where vim/nvim weren't available but regular vi was and I've used it to edit text files. I imagine there were other editors but I'm so accustom to how vi/vim/neovim does things that I can't imagine using anything else. Sometimes someone will try and convince me to use a new editor and I'll try it but generally end up switching back to nvim. Even vi compatibility mode doesn't really help because I use a bunch of plugins.
I prefer NeoVim, but now I'm trying out Guile Scheme, and the best Lisp support is in Emacs from what I understand, so I'm currently attempting to stop using Vim commands in Emacs.
Nano gang
Nano gang gang all the other editors wish they were as simply cool as us. 😎
I've been in a situation where I could do nothing but use vi until I installed vim. Then could only use vim or vi. I've also had to use GVimPortable on Windows because of shitty corporate computers don't have bash or vim (or didn't back in the day.)
It's not hard. Just grab a cheat sheet. There is an Android app cheat sheet for Linux commands with Vim. You'll be fine.
full vim. It always messes with my muscle memory when vim-tiny is installed as a replacement.
Yes. But mostly IdeaVim in JetBrains IDEs though.
For those that haven't yet learned vim: the real power is that the commands can be combined to form a mini-language. Commands can also be recorded in macros and replayed. This is what makes it so awesome. But to really make use of this you have to properly learn it, only knowing i and x isn't enough.
Also note that modal editing isn't for everyone. I'm happy to learn hotkeys, I even got far enough to build musclememory for vim's normal mode. What never went away though was my confusion about what mode the editor is in. I would constantly input text in normal mode and input commands in insert mode, leading to costly mistakes that tore down any speed advantage vim would have given me. I really tried, but never built muscle memory for this kind of context switching1, maybe it's an ADHD thing.
These days I'm on Emacs with an always improving custom command scheme of non-modal but context sensitive commands that do similar things in all major and minor modes.
Footnotes
Same situation with tmux which is almost a requirement for the typical vim workflow, and adds another layer of mode switching on top. On Emacs window management is included and so are remote shells/editing, so no need for the tmux<->editor context switch. ↩
I still sometimes do it randomly because of editor lag in Jetbrains Ideavim, you can just hit u usually until you get back to where you were.
For quick edits in the terminal? Sure.
As my main IDE? No way. I'm too used to GUI IDEs like VSCodium and PyCharm.
I just find it easier to navigate with a mouse. With just keyboard, I find I overshoot the block of code I'm looking for, whereas scroll wheel gives me more control.
} jump forward to next empty line is really quick for navigating, also if you know the identifier then /myVarnnnn is much faster than scrolling and gets you ready to edit. Otherwise 5j;;;; also works of course.
I’ve had a couple systems that started with nothing more than vi, but rather more that started with nano (don’t think I’ve come across any that started with vim) – that being said, I’ll tolerate vi long enough to get micro installed
No, and no. Sorry.
Yes, has been for 8 years
Yes! With a few plugins, of course. YouCompleteMe and fzf.vim are my favorites by far. I spend a lot of time on embedded Linux devices at work, so it's pretty convenient to use the same editor on my laptop and on the target device.
I used to use
neovimprimarily, but mostly use Kate now, as I've switched away from programming for the most part. I've had plenty of situations where the only text editor available isvi, and I'm able to get by no problem. I do usually prefernanooverviif it's an option, though that may get me crucified lolD:
Hell no
Fuck no. There are better things to invest your brain power in.
VI and vim have been my editors of choice for thirty plus years at this point. I also use set -o vi in bash.
VSCode with vim bindings for coding, neovim for configs, etc.
Wish I could switch fully to neovim but can’t be bothered to spend the time to configure it to my liking
Not if I can help it.
Not just text editor, but also IDE via rocks.nvim.
Ever since I wanted to edit some file that had like 2000 lines and I just wanted to quickly go to line 1164.
Nano wasn't cut out for that and I hadn't heard of emacs.
But I use a Typematrix dvorak keyboard, so I had to rearrange all the command.
Now I'm stuck with it and I enjoy it.
Yeah, whenever I type
git commit -m "message goes here"Also, I wanted to program on a server, so I ssh'd into it and decided that vim was the way to go as an IDE.
git config --global core.editor "ed"if you don't like using vim.
edis the standard Unix text editor!https://www.gnu.org/fun/jokes/ed-msg.html
Ed, the greatest WYGIWYG editor of all.
only if I have to
I use nano for quick edits and vim for longer stuff or things that need better find and replace.
Wanted to, but lacked the motivation to learn it. Was stuck on one occasion without
nano, so I pulled up thevimcheat sheet on my phone.Yes in SSH terminal,
Yes in vscode,
Yes because I use TUIs that use all the same bindings and they're great one you get the vocab.
Yes as Hyprland bindings, k9s, etc etc etc etc
no
I started using emacs a while back. Before that i was using helix. If i need to make a quick edit in the tty i still find myself going back to nano. I've never been in a situation where i could only use vim. If i ever am though, i would know my way around.
Emacs is a pretty nice OS - all it's lacking is a good text editor.
Emacs is ok, provided it's in evil mode
I started out with evil mode, but got kinda frustrated with it at times because i was coming from helix, which does some things differently from vim. There is a helix-mode package but it's pretty new and could use some polish. So now i'm actually using the native emacs binds. It's not so bad when you use the inside of your pinky knuckle to press control, that way your fingers don't leave the home row.
Yes, I've used it as my main editor for years now.
I don’t, but I know enough to get by with it. I’ve never really been interested enough in editing things in the terminal to learn anything more than Nano.
Micro for basic stuff I find it better than nano or VScode for code stuff. I'd like to try neovim at some point.
No
I used vi, and þen vim, almost exclusively between 1994 and 2024, often on systems where it was þe only editor. I did use Kakoune for a year or so right before I found Helix. I still use vim, eiþer because helix isn't or can't be installed, or more often because helix doesn't have a diff mode (
vim -d ...).Are you struggling wiþ it? Þ learning curve is steep but worþ it, like learning how to touch-type.
Ok I gotta ask, why do you feel the need to use a thorn that hasn’t been commonly used in English for over a thousand years? Are you Icelandic?
I'm not struggling with vim since I sticked to nano. Personally to me vim appears kinda legacy, it's not bad if one uses it, but I just have nano. It is like oldschool phone keyboard - it still does the job perfectly, but I'm not using it. However, some people argue, that vim is still the only available text editor on some setups, so it is highly recommended to know it.
vscode for coding multi file projects, vim for quick config file, bash script, etc. edits.
I use Neovim as much as possible but Jetbrains C# just has a really nice debugging experience (with Vim mode on, of course). I still use Neovim for reading C# and doing some small edits and it works really well when reading what the LLM wrote.
It's hard to beat stepping through a method until you hit an exception, go into a catch block, ctrl+O until you hit the last line before the exception, breakpoint, skip to top of method and rerun.
No, but I'm interested in using something more advanced than nano but I have no real need to.
I tried it but I prefer "Comet" for the tough jobs. /s
I've had to use vim once or twice. It's... fine. Not really my thing. I'm a nano guy (or, ideally, VS Code).
Yes I do all the time. But there are occasions where I have to use Vi as there's no Vim.
I'm at the point where I'm considering moving to vim because I'm sick of the lack of good defaults on Nano and Micro for quick edits, and I'm also tired of IDEs breaking my flow with poor defaults that pop open UI components which must be navigated differently depending on what it is, or just switching back to the mouse every couple seconds.
Just haven't made the jump yet because I want to sit down and go through all the hot keys in one go, including for global stuff like tmux, the DE, etc.