I've never seen anyone be able to do it significantly faster than I can do it in a normal text editor. Please do try and find me a video, I've looked all over YouTube and have never found anything.
The Question is not necessarily if you are faster at writing with vim/emacs/etc, it is if you are faster with everything you need to do in total. I often work on a server with no x installed, and it sometimes does weird stuff, meanig I have to test my code on the server anyways. since I am about as fast with vim as with a "normal" editor, I do not bother with using scp to move the files back and forth constantly and just use vim instead.
Thanks that's a rather good one. Do you have any longer or time lapse examples because for all I know this possibility only comes up once every few weeks.
You can do what I do. I install extensions in my IDE that give me vim key bindings. When I know a vim keybinding and know it's faster than using the gui I use the keybindings. Otherwise I use the gui.
There are tons of people who program with vim or emacs in the terminal. There are huge advantages to using them. Nano has none of the features of those editors.
I have used vim as my primary editor for the last 10 years or so. There are so many things that I can do in vim with a handful of keystrokes that would require using a mouse in graphical editors -- or simply aren't possible.
About a month ago I got a requirement that was basically a big list of "if this then that" type stuff. I took the requirements directly from the ticket and pasted it in vim. I manually did some text transformations on the first line until it was valid code that did what I wanted -- took about a minute. Before I did any changes, I had started recording a macro (qa). Then I replayed the macro 29 times (29@a) and the rest of the work was done.
Block highlighting an multiline editing is enormously powerful.
I can't remember the last time I scrolled through a file looking for something in vim. I just jump to it by name or line number if I know it.
Vim takes A LOT of effort to master -- I still learn new stuff about once a week -- but the power and speed are just unmatched by any graphical editor I've ever used. That may be in part because I haven't mastered those, but a large part is that you start to think in terms of text transformation operations and you can accomplish them all without moving your hands from the keyboard.
Sublime text can do literally everything you just said (except maybe playing back a macro a set number of times, I don't know). It has macro recording (or for something like that I'd be tempted to use the regex find and replace or multiple cursors), multiple cursor support, goto line, goto definition, all without touching the mouse.
Thats great. There has been some really awesome work done in the text editor space the last 5ish years. Sublime didn't exist when I started learning vim and just wasn't up to snuff at first.
It also doesn't play well with X-less servers, which is a big concern for me.
It's not that it's bad, it's basically command line notepad. It's just the worst of the three in every way except that it has no learning curve instead of the 30 seconds it takes to learn VIM or 30 minutes it takes to use EMACs.
Like literally just learn :q!, :w, i and / and VIM is already significantly more productive than nano.
I often need to edit files through an SSH connection, sometimes to minimal environments with only nano or vi installed. I'm very grateful I learned to use vim.
I find it much easier on the hands and much faster using vim keybinds. From my perspective, people who use graphical text editor using mouse and keyboard to move the cursor must be very patient.
View all comments
0
u/[deleted] Oct 05 '18
[deleted] — view deleted comment