5 ms·
I really want to like vim and I love some things about it, like the ability to move chunks about with only the keyboard. But so many things about it kill me. Li
by dash2 4y ago
I really want to like vim and I love some things about it, like the ability to move chunks about with only the keyboard. But so many things about it kill me. Like, why can't I hit right at the end of a line, and move to the next line? Who thinks that is a good idea? Also, why do I have to have a special mode to insert things? Having to change modes just seems so complex and unintuitive. And why does the help system never tell me what I want?
The frustration is that probably there are fixes for all these things, which if I were an expert I would know. But meanwhile I can use an ordinary visual text editor and I don't have to learn anything new.
- wruza 4y agowhy can't I hit right at the end of a line, and move to the next line? Who thinks that is a good idea? I do, I hate accidental wrapping on left/right so much and see absolutely no use to it. But you may configure it, :help 'whichwrap' Also, why do I have to have a special mode to insert things? Because if your alphabet keys do always insert, you have to hold some control key to enter commands and movements, and not if not. That’s the point of being modal. Otherwise there are plenty of emacs-alikes to train pinkies on, and no need for yet another notepad+.
- juniperplant 4y ago> Like, why can't I hit right at the end of a line, and move to the next line? set whichwrap+=<,>,h,l,[,] Source: https://vim.fandom.com/wiki/Automatically_wrap_left_and_right https://vim.fandom.com/wiki/Automatically_wrap_left_and_righ...
- gofreddygo 4y agoI really want to like to swim and I love some things about it, like the ability to not sink when thrown in deep water. But so many things about it kill me. Like, why can't I just sit in the water, and float to the top? Who thinks that drowning by default is a good idea? Also, why do I have to have a special way to move my hands and legs? Having to coordinate my limbs just seems so complex and unintuitive. And why can I not see anything underwater? The frustration is that probably there are fixes for all these things, which if I were an expert swimmer I would know. But meanwhile I can use an ordinary kayak and I don't have to learn anything new.
- palmtree3000 4y agoI mean, these are all valid criticisms of the swimming experience, it just sounds silly because you can't edit swimming.
- yjftsjthsd-h 4y ago> But meanwhile I can use an ordinary visual text editor and I don't have to learn anything new. Then do that?
- naillo 4y agoLearning new things is fun and you get used to it. I like the shift A command for moving to the end of the line (and go directly to insert mode). A good tip is to mainly stay in edit mode (and remap caps to escape and hammer that to go back to the default non insert mode whenever you're done).
- bitlax 4y agohttps://gist.github.com/nifl/1178878 https://gist.github.com/nifl/1178878
- Silica6149 4y agoI think most people would agree with you. Being comfortable in your editor of choice and knowing the shortcuts in it will already make you faster than trying to use vim from scratch (at least for a while). Vim definitely needs to be practiced and used more frequently to get up to the same speed as regular editors. However, you can reach (an arguably) faster speed in vim.
- nomoreusernames 4y agopress o?
- snet0 4y ago> why can't I hit right at the end of a line, and move to the next line? I know this is probably something that sounds like someone too far down the rabbit-hole to see where they came from, but I'm not sure why you'd want to do that. The horizontal movement is probably adjacent to the vertical movement on your keyboard. Just use the appropriate movement to get where you want to go? > Also, why do I have to have a special mode to insert things? Because then you can use the regular keyboard, i.e. keys that would normally insert characters, as control inputs. > But meanwhile I can use an ordinary visual text editor and I don't have to learn anything new. You don't have to learn anything new because you don't want to do anything new.
- dash2 4y agoMy answer to all these things is that 90% of the time, I am not using a text editor. I will be writing in Word, or in LyX, or in RStudio, or in a text box. My muscle memory is used to that. You're absolutely right. You do sound far down the rabbit hole! I am used to being able to hold down the right key and traverse my entire document, as far as I like. Why would I want to stop at the end of a line? Any time I'm editing multiline text - like, say, English - that is essentially arbitrary. The regular keyboard... right... but what if there were some kind of special key that could be pressed to issue controls? Why is that worse than having a special key that goes into control mode? This is analogous to having caps lock, but no shift key. Again, you're right, I don't want to do anything new. Why would I? I want to get on with my job. If the response to my complaints is "the problem is with you, my son", without any idea of the ultimate benefits I might gain from changing, then yeah, I'll pass. Honestly, this applies not just to you, but to all the responses below... they're all like "if you try it, one day you will understand". That's probably what people say about Morris Dancing.
- another_story 4y agoI mean it's obviously not the tool for you, so don't use it. I find it for easier to navigate code using the vim modal concept, and can context switch relatively easily when moving over to another editor. I don't think anyone is trying to convert you or will be upset if they fail to do so.
- dimensional_dan 4y ago> I really want to like vim > Also, why do I have to have a special mode to insert things? First and foremost Vim is a modal text editor. If you don't like that Vim is probably not for you. Your comment is kind of like saying I'm really trying to like chocolate, but I don't like the flavour. There's a Vim way of doing things, if you really take the time to learn it then the questions you are asking will all be resolved.
- VoodooJuJu 4y ago>Like, why can't I hit right at the end of a line, and move to the next line What do you mean by this? Do you mean the right arrow key? The mode paradigm was definitely weird to me too at first, but it eventually makes sense, especially when you start using macros. I agree about the help system - it hasn't been very helpful to me either. I usually am better off consulting stackoverflow or vim's wiki for how to do something. Vim took me quite a bit of time to learn beyond the basics, but once I learned it, it became a productivity boon. It's nice to have the same powerful text editor available wherever I ssh to, right in the terminal, in the same place I'm using all my shell commands.
- mpalmer 4y ago> an ordinary visual text editor Funnily enough, Vim is short for "Vi IMproved", and its predecessor vi is short for "visual"! --- Taking the time to learn Vim yields significant rewards if you're willing to meet it on its own terms. I certainly grant you that it's not for everyone. It's the agony and the ecstasy of deep tools. No pain, no gain. > The frustration is that probably there are fixes for all these things, which if I were an expert I would know. I would submit that if you were an expert, you would not have the same list of gripes. To wit: > Like, why can't I hit right at the end of a line, and move to the next line? This is a fair complaint, but one that's actually never occurred to me as a Vim user, because: > Why do I have to have a special mode to insert things? It's a core part of Vim's design! In fact, insert mode is The other mode (Normal mode) is where the real power is. It's not so much about moving chunks of text around with the keyboard as about moving the cursor. Vim divides normal mode key commands into motions and operators. operators add/remove/change text, and motions move the cursor. For instance: - `d` is an operator deletes text. - `w` is a motion that moves the cursor to the start of the next word - `12w` does this 12 times (practically every motion can be repeated like this) But the rubber really meets the road when you combine them. If you hit `d` once in normal mode, nothing happens: you've started a command but Vim is waiting for you to finish it by entering a motion. `dw` deletes from the cursor up to the start of the next word (you can guess what `d12w` does). > And why does the help system never tell me what I want? Perhaps start with `:help help` :)
- lovehashbrowns 4y agoThese sorta combinations and things like visual block mode are why I can’t let go of vim. You can also do: set -o vi And get vim in your bash shell. Then you wonder what the default mode is, and it turns out it’s emacs and you can do wild things like ctrl-A to go to the beginning of the line. And now I cringe when ever I see someone painstakingly left-arrow for 30 seconds to edit something at the beginning of their bash prompt.
- artificialLimbs 4y ago>> set -o vi A million thanks!
- konart 4y ago> there are fixes for all these things, No, because those are features, not bugs. If don't want them - you don't have to even think about them. >Like, why can't I hit right at the end of a line, and move to the next line? Who thinks that is a good idea? It's not that you can't. The idea behind vim-like navigation is that you don't press those arrows (or hjkl for that matter) in a consecutive manner (or hold) unless you really have to. 99% of the time you jump to some place in the text (a character, or line, a word, a nth line etc).
- agumonkey 4y agoHave fun in other editors for a while (no need to suffer something that annoys you), and reconsider vim in a year. Its ergonomics can be frustrating at first but the design is sound enough to be valuable, fun even. And I say as an emacs user :) You don't really move a caret around in vim, you process units of text and lines.
- yetanotherjosh 4y agoAre you interested in learning a potentially new and more efficient way of doing things? Then you have to stop being annoyed that your habitual way of doing things is unavailable to you, and stop assuming your habits are the obvious and correct way. The modal nature of Vim is one of it's key features and makes a lot of sense. If you consider the keyboard the primary, if not singular, means of interaction, then there will be times you want to use the keyboard to type text and times you want to use the keyboard to control the editor behavior. In a "normal" editor, you have to use modifier keys to enter commands. In Vim, you do it by changing modes. It's actually quite powerful but you can't get past your own assumptions about efficiency.
- hasperdi 4y ago>...more efficient way of doing things? Is that a fact, or you just parroted other people who made similar claim?
- deleted 4y ago[deleted]
- greenthrow 4y agoIt is a fact. The grand parent is talking about slowly navigating around one character at a time. Vim has much more efficient ways to move the cursor to where you want to go.
- wruza 4y agoFor me it is not a fact, and I find vim objectively much more harder to use than “regular” editors. But it matches my thinking in a way that I don’t have to plan ahead how many times to press an arrow, or to wait until a key repeat rate gets the cursor where I want it to be. Acquired vim reflexes erase the complexity and leave this benefit. I always found this “faster” claim somewhat stretched and zealous. I don’t need to type fast. I need the editing routine to gtfo of my mind when I’m programming.
- AlchemistCamp 4y ago
- robertlutece 4y ago> Like, why can't I hit right at the end of a line, and move to the next line? :h whichwrap