Live data from Hacker News

Just Use Sublime Text

delvarworld.github.com

51–60 of 296 posts

Re: Just Use Sublime Text

#52

I spend 90% of my time thinking or debugging, not writing/editing, so I feel like it's optimizing the wrong thing. If you're typing with two fingers, don't use any shortcuts and only use your mouse to move around, then by all means try to improve. Personally, I don't feel it's worth it. Sure, you should know your tools, but I feel many programmers take it to the extreme with Vim/Emacs and Dvorak keyboards.

Vim literally saved my career. I have not found a mouse that I can use 8 hours a day (let alone 12+) that doesn't cause me severe hand and wrist pain after a few days. Using Vim, and Vim keyboard shortcuts in every program I can, is the only reason I can use a computer at all. And since I so rarely use a mouse now, I can actually occasionally play PC games again with a good weighted gaming mouse if I don't overdue it…

Similar story for me, I'm 21 and due to bad computer and mousing habits I have quite nasty RSI/OOS in my wrists.

Switching to an ergonomic mechanical keyboard (kinesis advantage) and a keyboard-heavy workflow (vim) allows me to work as a developer.

I can tell how often I resort to using the mouse each day by the pain when I get home (I have a trackball on my left hand side and a touchpad on my right hand side to try alleviate this), thanks to not using the mouse all day I can often game for a few hours without too much trouble.

This isn't necessary specific to vim, however vim's modality and extremely expressive command language really minimize the amount of movement I need to do for any given action, no more emacs-pinky for me.

Re: Just Use Sublime Text

#53

1. I like learning new tools and I got pretty good at vim's 10-15 fundamental commands in probably a couple of weeks. I was certainly OK, albeit a bit slow, by day 2 or so. 2. By the end of month 1-2, vim had become completely second nature. I did stuff without thinking. Actually, thinking about what I was doing started to confuse me. 3. Sure we all spend lots of time thinking, but I also often find myself cranking o…

at the end, emacs always wins :)

I rock back and forth, depending on the languages I'm using. Emacs does more, but is in my experience more kludgy, even after having in aggregate spent many days customizing it (maybe it would rub better if I wasn't hardwired to the vi/vim modal editing/motions method). Vim feels cleaner and less annoying, but sometimes the easy integration with external tools tips the balance in emacs' favor. E.g. I use vim for Rails apps (where I didn't really feel enough difference from vim + terminal), but if I were writing Clojure, stuff like the repl integration would probably mean emacs.

Sublime is really pretty, and has great functionality out of the box.

Ultimately, vi/vim's contribution is the modal editing method (and derived things like motions), which can be transplanted to any other IDE or editor that cares to support it. But for the fundamendals - editing and switching between files - I've so far found vim to be the cleanest, most natural vim.

Re: Just Use Sublime Text

#54
The blog's tagline seems very relevant to the origins of this post. Here comes a editor war...

In seriousness, though the author makes some good points, I cannot support his arguments that a mouse can beat a keyboard and that one shouldn't recommend vim because it is ugly.

Re: Just Use Sublime Text

#55
post #25

Am I the only person in the world who: a) Never thought vim was that hard to learn (and I first learned it when I was a teenager and nobody helped me. I switched when someone on a MUD made fun of me for using pico.) and b) Thinks vanilla vim works just fine. Seriously my vimrc is like 10 lines long and I don't even have it on every server I work on. I don't bother with any plugins. I don't need vim integrated with gi…

I actually think people who use esoteric tools are more interesting than people who think that one tool is the best. And I've been working professionally for well over a decade now.

Re: Just Use Sublime Text

#56
post #25

Am I the only person in the world who: a) Never thought vim was that hard to learn (and I first learned it when I was a teenager and nobody helped me. I switched when someone on a MUD made fun of me for using pico.) and b) Thinks vanilla vim works just fine. Seriously my vimrc is like 10 lines long and I don't even have it on every server I work on. I don't bother with any plugins. I don't need vim integrated with gi…

>Never thought vim was that hard to learn (and I first learned it when I was a teenager and nobody helped me. I switched when someone on a MUD made fun of me for using pico.)

I'm pretty sure as a teenager is the best time to learn such tools. :P

Re: Just Use Sublime Text

#57
post #30
post #21

I think the OP has never seen a very efficient VIM user crack some code. There are some valid points but they are surrounded by unnecessary ranting and lack of knowledge. >> Don’t you ever think you can beat a mouse. Only in very few edge cases will it even matter. Already saw someone clicking the "Search" button on a google page instead of pressing Enter? This is the same sensation I get when I see someone editing c…

Many of the most productive programmers (in terms of text editing ability) I know are heavy mouse users. Watching them work really opened my eyes and taught me a few good habits. One of the skills that you have to develop is the ability to hit very precise targets with the mouse very quickly. I think that a lot of people are simply inexpert with the mouse and misclick a lot, and that adds to the perceived cost of the…

This is also why some of us love/despair-over Thinkpad's. The Trackpoint is amazing once you are used to it.

Re: Just Use Sublime Text

#58
One of the talking points I hear a lot about VIM is that you can do a lot with keyboard. All kinds of fancy shortcuts to move, delete, paste text, etc.

I've used VIM (casually), Sublime Text, and other IDEs. Currently I'm using PhpStorm and I have to say, that thing has keyboard shortcuts that do all kinds of awesome things. Jump to a function by name, jump to the next function, duplicate the current line(s), move current line up/down, select current word/line, open file by partial name, jump to function declaration.

VIM may have lots of navigation but when I want to find the declaration of a function I'm calling, I hit CMD+B in PhpStorm and I get taken either inside the file or another file where that function is defined. CTRL-J shows me a popup with the documentation for the function, CMD+P shows me the parameter list.

Personally, I think IDEs can provide a lot more shortcuts that do a lot more meaningful actions on complex code projects than VIM.

Re: Just Use Sublime Text

#60

> Vim is Oddly Bad at Indenting Since he mentioned indenting, let me ask: how do you properly indent JSON or XML in Sublime Text 2 out of the box? I've tried setting the appropriate syntax, selecting all text, then doing Edit->Line->Reindent but it gives half-broken results. Is that intentional, or am I doing something wrong? Also, is there a way to quickly select all instances of currently selected identifier within…

Additionally, does anyone agree with this bug report (or is the current behaviour expected) at the bottom of http://sublimetext.userecho.com/topic/52275-down-arrow-doesn...

If so, what can be done to make it more visible?

Post reply on HN