Also, not listed there, but TextMate's autocomplete word can also be used with [Shift - Esc] for the reverse direction.
Commanding your text editor
41–50 of 66 posts
Re: Commanding your text editor
#42I think its much more important to become good at using whatever text editor is infront of you - i.e. learning the standard Windows/Mac shortcuts, instead of becoming reliant on what I consider the 'old' style of text editor. Yet to meet anyone using vim or emacs who is actually more productive than me... the more productive people use Visual Studio, Xcode, Eclipse or whatever else is infront of them. Maybe I am wron…
Editor war! You are confusing non-expressive languages like C# and Java which needs lots of "refactoring" and lots of boilerplate code (hence the need for code generators which understand "patterns" and refactoring tools etc.) with "productive languages", for a start. Then your point is moot anyway: since quite some time there are vim programmers using an Eclipse bridge and getting the Eclipse features right from ins…
C# is a quite expressive language in my opinion. And i'm quite versed in Clojure, which seems to be your language of predilection. It does have limited type inference and lambdas, which makes it a lot less painful than Java.
It really depends on the problem you have at hand anyway. But even if you have a problem where you need a more functional approach, with immutable data structures, you can use F#, which is an amazing language.
> But anyway, even without these Eclipse bridges, if you do really think that someone using, say, Visual Studio to develop C# code is more productive than a programmer using Emacs to develop Clojure code I'd like to have some of the stuff you're smoking because it looks good ; )
I use Visual Studio to develop C# code. I use Eclipse if i have to code Scala. I use emacs if i have to clojure, i actually used it to develop Clojurescript's Lua backend. Most of them have good vim bindings anyway, but in emacs i prefer to use emacs.
C# with Visual Studio can be the most productive of languages, provided the good use case. And you sound like you know nothing about what you're talking about.
Re: Commanding your text editor
#43Earlier quoted context omitted.
> 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. That is not what i was trying to say. I mean that when reading HN with all its Vim/Emacs hype one could get the impressions that you cant be an awesome software developer without using vim/emacs. But some examples like mine might help to che…
Thanks, this explanation makes more sense than your original comment. I agree with you on everything. These days, the number of new Vim users who switched because of some misinformed and/or shiny blog post is staggering. People now seem to just jump from one ORM or VCS or editor or framework or DB or design pattern or language to another twice a week. I wonder what would happen if nobody was there to tell them what t…
It's hard to measure this, of course. But I have a hard time believing that there's this population of developers out there that are constantly switching tools/frameworks/platforms/etc. and getting any work done at the same time.
Re: Commanding your text editor
#44Earlier quoted context omitted.
> 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. That is not what i was trying to say. I mean that when reading HN with all its Vim/Emacs hype one could get the impressions that you cant be an awesome software developer without using vim/emacs. But some examples like mine might help to che…
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.
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 anymore.
Re: Commanding your text editor
#45I think its much more important to become good at using whatever text editor is infront of you - i.e. learning the standard Windows/Mac shortcuts, instead of becoming reliant on what I consider the 'old' style of text editor. Yet to meet anyone using vim or emacs who is actually more productive than me... the more productive people use Visual Studio, Xcode, Eclipse or whatever else is infront of them. Maybe I am wron…
Editor war! You are confusing non-expressive languages like C# and Java which needs lots of "refactoring" and lots of boilerplate code (hence the need for code generators which understand "patterns" and refactoring tools etc.) with "productive languages", for a start. Then your point is moot anyway: since quite some time there are vim programmers using an Eclipse bridge and getting the Eclipse features right from ins…
So fucking what if someone has the audacity to eschew vim/emacs/ed/acme/pen and paper in favour of a nice IDE they're familiar and productive with? You don't get any geek-cred for using any editor over the alternatives.
Re: Commanding your text editor
#46A nice introduction, although I'd be surprised if anyone who wasn't totally new to development didn't know these already. Also, 'Fuzzy file' searching in vim: https://github.com/kien/ctrlp.vim
You would be surprised at how many people, programmers or not, experienced or not, don't know those and other basic shortcuts. No wonder Vim's motions sound like necromancy to so many people.
As others have mentioned for fuzzy finding, use CtrlP. I also use FuzzyFinder for quickly switching between many open files (buffers).
Re: Commanding your text editor
#47I have to say, I really enjoy TextMate's autocomplete word. It's not fancy, but it saves me tons of time. Also, not listed there, but TextMate's autocomplete word can also be used with [Shift - Esc] for the reverse direction.
https://github.com/garybernhardt/dotfiles/blob/master/.vimrc...
You use tab for completion in so many other contexts, it's nice not to have to break that habit in your editor.
Re: Commanding your text editor
#48Earlier 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.
Re: Commanding your text editor
#49Earlier 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…
Re: Commanding your text editor
#50Earlier quoted context omitted.
You would be surprised at how many people, programmers or not, experienced or not, don't know those and other basic shortcuts. No wonder Vim's motions sound like necromancy to so many people.
It is true Vim requires commitment but once you get it, the motions and key combination are logical. As others have mentioned for fuzzy finding, use CtrlP. I also use FuzzyFinder for quickly switching between many open files (buffers).
While we are at it…
I never really used TagList or equivalent widgets in other IDEs/editors as an outline of my code but rather as a navigation tool. :CtrlPBufferTag is great for moving around in a large file. Same thing with :CtrlPTag for navigating a project. I love CtrlP.
If the "you" is me you don't need to convince me at all: I'm a diehard Vimmer.