• Vim General v1
    2 replies, posted
Vim is a pretty cool text editor and is also one of the hardest to master. Feel free to show off your setups, ask questions, stuff like that. Also feel free to talk about Vi, Neovim, and all those other related editors. If you're committed to modern text editors like VSCode or Atom there exists plugins for those two that make the keys behave like Vim so you'll have the speed advantages of it. There might be one for Sublime Text 3 too but I'm not sure. Some advantages: Vim is multiplatform and comes pre-installed on most Linux distros that I know of. Knowing some Vim can be good if you're working a lot in Linux without a UI. Vim is fully functional without a mouse, which means you won't need to move your arm over to use it or if you actually don't have access to a mouse. Through practice you'll find that you can get more done with less keystrokes compared to a normal text editor. Knowing every command Vim has and being able to perform them through muscle memory (which is ridiculously hard) will allow you to reach god levels of speed. Some difficulties you may face: Vim has a very steep learning curve. If you're coming from a normal text editor you can be sure you'll run into problems. It'll be slow to work with at first but after a while you'll be working at a normal speed and then increasingly faster as you learn. Vimtutor is good for running you through the basics. "vimtutor" is also a command in Linux and maybe Windows after you install it if you're lucky. The config (.vimrc) is a script, meaning for any settings you want to change you'll have to open your config and change the lines yourself. This kinda sucks as there are some settings you should change upon a fresh install that aren't set automatically. There does exists some premade configs that you can use, like this one. Common features like saving, find/replace, splits, buffers, are all commands you'll have to commit to memory. To lessen the blow you can start with gVim, which is a GUI version of Vim that has a menubar to access all of that stuff normally. But did you know there's also a ton of plugins out there for Vim? Personally I wouldn't go too crazy with the plugins as the performance can tank pretty fast as you keep adding them. I would recommend lightline for the statusbar it adds and also it looks pretty nice. Here's what it looks like: https://i.imgur.com/eMsH1CW.png Here's what it looks like while I'm trying to fix my broken as fuck JS bot: https://i.imgur.com/9QWV0kY.png Gruvbox color scheme and Tamzen for the font for anyone that's curious. Hopefully I didn't fuck up here and spread misinformation. lmk if I did.
This is my favorite article about vim. https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/ I used vim for a bit in college, only knew the basic commands. I prefer to use an IDE these days.
You start with "I had pizza for launch." <Esc>hhhhhhhibreakfast.<Esc>:q<Enter> What's written in the file
Sorry, you need to Log In to post a reply to this thread.