Live data from Hacker News

Commanding your text editor

blog.peepcode.com

61–66 of 66 posts

Re: Commanding your text editor

#61
post #44
post #35

Earlier quoted context omitted.

Vim doesn't make me feel like John Carmack. It just keeps me sane. It just saves me from "arrow, arrow, arrow, arrow, arrow, backspace, backspace, backspace, backspace, backspace." Editing python it's fine. If I was going to write c++, I'm sure I'd pick up an ide. With a plugin for vim keybindings.

Not every textbox has Vim, so learn the basics of how to type in a standard Windows textbox. Ctrl+ moves one word to the left/right Ctrl+Backspace deletes the previous word Home takes you to the beginning of the line End takes you to the end of the line Adding Shift to any of the selection operators will select the word/line in question. Now you don't have to press arrow,arrow,arrow,backspace,backspace,backspace anym…

On my Mac every textbox has emacs thanks to OSX's NeXT heritage. On my Windows box every textbox has emacs thanks to XKeymacs[1]. That's one area where I think emacs users have a leg up on Vim users, our editing style can be configured to work almost everywhere you input text.

[1] https://github.com/fujieda/xkeymacs

Re: Commanding your text editor

#62
post #24

Earlier quoted context omitted.

Not enough credit is given to Visual Studio's Autocomplete feature. It seriously is unmatched, and to me is one of the reasons why C# is very pleasant to work with.

Except when you're not coding C#. Then it ranges from somewhat usable to utter lunacy.

Also have you tried the PowerShell 3 ISE?

Re: Commanding your text editor

#63

I hardly ever use 'delete word' because I use 'change word' so much.

Yeah, I think that both 'change word' and either the 'change inner word' or 'change a word' ('ciw' and 'caw', respectively) should have been included. I find myself using the last two modifiers much more often than 'change word' by itself. I hope that's not a symptom of inefficient vim usage.

Re: Commanding your text editor

#64
post #22

As long as my programmer idols Carmack and Persson use Visual Studio and Eclipse respectively to produce amazing stuff, i dont really care about changing to vim/emacs...besides i work mostly in statically typed languages anyway, so i would miss alot of the IDE features for refactoring.

Yeah: think time is typically >> than type time. The one thing that good hand-editor coordination is good for is not breaking flow: the faster one can do a brain dump (without having to micro-manage the typing/translation of mental pseudo-code image into real runnable source code) the better.

Re: Commanding your text editor

#65
post #48

Earlier quoted context omitted.

Except when you're not coding C#. Then it ranges from somewhat usable to utter lunacy.

Have you tried VS2012 ? Give it a try for C++ and you will see that the autocomplete works great.

Just use clang_complete with vim

Re: Commanding your text editor

#66
post #22

As long as my programmer idols Carmack and Persson use Visual Studio and Eclipse respectively to produce amazing stuff, i dont really care about changing to vim/emacs...besides i work mostly in statically typed languages anyway, so i would miss alot of the IDE features for refactoring.

Just spent half of the day doing AS3 in Eclipse. That was nice… thanks to the Vrapper plugin. Once you go Vim, using any other editor is a nightmare. Maybe that's just me but I would be incapable of choosing an editor/IDE/smartphone/perfume/car/whatever because someone I admire uses it. That sounds incredibly childish to me.

> Once you go Vim, using any other editor is a nightmare.

Not really. I'm over a month into using Vim full time because it's the standard at my workplace. It sucks. I can't believe that the people around me insist on using this piece of junk. It has so many problems that I never had to deal with in Textmate. Huge step backward.

Post reply on HN