Live data from Hacker News

Just Use Sublime Text

delvarworld.github.com

111–120 of 296 posts

Re: Just Use Sublime Text

#111
post #61

Earlier quoted context omitted.

Emacs can be pretty pretty--perhaps not actively pretty, but very elegant in a minimalist sort of way. I'm pretty happy with how mine looks[1], for example. [1]: http://jelv.is/emacs-blackboard.png Also, have you tried Evil? Apparently it's a very good Vim-emulation mode for Emacs, highly recommended over Viper.

Woah how do you get your status bar to have the > shapes like that? Looks very nice :)

I'm using powerline.el[1]. It's an Emacs version of a Vim plugin.

[1]: https://github.com/jonathanchu/emacs-powerline/blob/master/p...

Re: Just Use Sublime Text

#112
>Most novice programmers can click on a character on screen faster than an expert Vimmer can type 20jFp; or LkEEE or /word or any other nasty way Vimmers have to use because of our archaic, ingrained keystrokes.

set mouse=a

Re: Just Use Sublime Text

#114
post #42
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 switched from nano to vim a few hours ago. When I first installed Arch Linux all those months ago I was intimidated when I was presented with the choice between nano, the default, and vim, "for experts only." When I used vim for the first time today I expected it to be a lot more "difficult" based on everything I had read/heard prior, but after reaching the Arch Wiki entry I was able to hop right in with no difficu…

Once you learn to jump quickly between words, lines, etc. and change whole blocks of text with a few strokes you discover another dimension of vim that's very hard to replace with other tools.

Re: Just Use Sublime Text

#115
post #75
post #42

Earlier quoted context omitted.

I switched from nano to vim a few hours ago. When I first installed Arch Linux all those months ago I was intimidated when I was presented with the choice between nano, the default, and vim, "for experts only." When I used vim for the first time today I expected it to be a lot more "difficult" based on everything I had read/heard prior, but after reaching the Arch Wiki entry I was able to hop right in with no difficu…

Just out of curiosity, what made you decide to change? I've never felt a strong motivation to not just keep using pico/nano, actually putting effort into learning a text editor strikes me as the weirdest hobby ever.

One time I started editing an nginx.conf file in nano while setting up a remote server on Linode. I forgot to sudo when I opened the file and couldn't save my changes. I might be an idiot here but (could I have resolved this in nano?)... but I'm fairly certain this would have been a non-issue in Vim.

Re: Just Use Sublime Text

#116

A lot of comments are saying that Vim will massively increase your productivity, but I think that is completely missing what being a productive programmer is all about. Just being able to type and edit things quickly isn't even half the battle, it's less than 1% in my opinion. Productivity in programming is measured from the time you start a project till the time you finish. So much time is often spent trying to find…

I find it impossible to get anything bang on the first time around. I find that even the best plans and ideas can start to show problems once you get into the guts of the implementation. Being able to input and edit things quickly greatly reduces the friction involved in doing refactorings. If I can do it fast enough, why not just refactor 3 different ways and see which one makes the most sense? Also helps with proto…

I don't disagree with anything you have said, but I also can't tell if you are disagreeing with anything I wrote in my comment either.

Re: Just Use Sublime Text

#117
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…

> what kind of medication the OP stopped taking

The OP has a really "sane" take on things imho (yes, it's incredibly opinionated, but it's blog post featured on HN, not a SO question someone like you can close in minute :) - and I'm glad he bothered to write it, as I'd probably just send the link to it to any newbies asking me about "the magical vim" instead of bothering to tell them what I think) and he's right on one thing: vim will not increase the productivity of a new user. The actual productivity increase will only happen months later (basically too late to worth it), and it will not matter that much because 90% of the time spent coding is actually spent either:

(1) plainly writing code (no advanced editor functionality helps here, Notepad++ is basically good enough!),

(2) making simple edits to code (again, more editor functionality doesn't really help because 90% of the time spend editing code it actually spent thinking about what to edit, not actually pressing the keys)

(3) reading code,

(4) exploring codebases (the only thing helpful at this is a full featured IDE - it just takes too much work to turn vim in to something like this, and you'll just end up with something mostly matching Netbeans feature-wise, so you could just as well install Netbeans or something else better for your language/framework in 5min and spend 1h to really learn how to use it),

(5) debugging (again, the only thing that could, for some, including me, increase productivity, is a full-fledged graphical debugger).

...and if you need to improve that last 10%, then you are far from a beginner at anything, eg. you are not the person that vim tends to be recommended to nowadays.

And the OP also expressed why I like ST so much: "To code in Vim, you have to keep Vim in your head just as much as the code that you’re editing. You have to constantly think about what you’re doing." - at most (not all) things ST beautifully follows the "don't make me think" principle: eg. arbitrary multiple cursors (no other IDE or editor besides Notedpad++ has them yet, no matter how many users requested this for JetBrain IDEs for example), that just let you "edit without thinking", keeping the code in your working memory instead of the sequence of search and replace commands.

But all that said, I absolutely love vim's keybindings and modal editing concept, so I tend to enable vim keybindings or install a vim-emulator plugin on most IDEs and editors I end up using because it also spares you of having to commit the different shortcuts that every other IDE and editor uses to "muscle memory". I see vim like more like an uptional UI/X layer that should be addable to any decent editor or IDE to enable experts to improve their 10%. Fortunately Sublime text has such a "layer" so OP's post is kind of valid.

Re: Just Use Sublime Text

#118
post #75

Earlier quoted context omitted.

Just out of curiosity, what made you decide to change? I've never felt a strong motivation to not just keep using pico/nano, actually putting effort into learning a text editor strikes me as the weirdest hobby ever.

One time I started editing an nginx.conf file in nano while setting up a remote server on Linode. I forgot to sudo when I opened the file and couldn't save my changes. I might be an idiot here but (could I have resolved this in nano?)... but I'm fairly certain this would have been a non-issue in Vim.

One simple solution that people often forget - at least I know I did in this situation is to save the file in home directory and then move it using su(do).

Re: Just Use Sublime Text

#120
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…

Amen.

I have the same setup as you - vanilla vim, barely customized and the development pace is hardly any slower than when I use Visual Studio with all its auto-completion, deep syntax parsing, etc. I saw Jonathan Blow (of Braid) saying that auto-completion and better debugging support is a deal-breaks for him, but everyone`s work pattern is different and I`ve seen plenty of cases where people using vim accomplished far more and faster than those with fancy editors. Tools are important, but they are secondary.

Post reply on HN