VIM Destroys All Other Rails Editors
adamlowe.me
adamlowe.me
There was recently a thread on erlang-general that was almost 100 replies long. It started out as "Is Erlang a Good First Language?"... then slowly dissolved into "IDE Bashing". I had to switch my mailing list options to digest I was getting so many emails each day with personal rants.
The thing is, Emacs and Vim are awesome, and they are "huge" programs. Also, they are "extremely" flexible, so one persons preferences might be way different than the others. For example, the blog post here uses MacVim and GVim? That's crazy talk (IMHO).
RTFM!
I hear Emacs is an E-mail client ...
The other intent was to show people how they could easily set up Vim as a robust Rails editor without needing to learn a ton about how to install Vim plugins which normally assume a strong understanding of Vim to install and get started with.
I do recommend the articles listed on the Rails wiki's 'Text Editors' page for Vim, though: http://wiki.rubyonrails.org/text-editors
(Listed here in case that page is changed: http://weblog.jamisbuck.org/2008/10/10/coming-home-to-vim, http://weblog.jamisbuck.org/2008/11/17/vim-follow-up, http://biodegradablegeek.com/2007/12/using-vim-as-a-complete...)
[edit] NLP being Natural Language Processing, rather than Neuro-Linguistic Programming ;)
Versus, download Eclipse/Netbeans, open, and start coding.
I want to use vim as an IDE...I just don't have the time.
Perhaps there's a need to have "vim distributions" and "emacs distributions" that come pre-installed and preconfigured according to certain needs, such as this one.
But `cat` uglifies it, so I added this to ~/.bashrc:
alias tab='sed "s/\t/ /g" '
You needn't say "cat myfile | tab"; you can just use it exactly like cat: "tab myfile" (I'm not saying that you'd not instantly realize that - but that I didn't).set expandtab
to your .vimrc and then vim will magically insert spaces (according to your tabstop/shiftwidth) instead of real tabs.
:retab will turn all tabs into spaces for a file that already has tabs in it.
expand -t "$tabWidth" "${files[@]}" | nl -b a | fold -s -w 108 | $PAGER
when I want to view files that use tabs; this is the final one-liner in a script I call 'view'. It gives me tabs expanded to width I specify (defaults 4), numbered lines, and long lines wrapped at word breaks but such that they don't break line numbering.The shell has stdin redirection built in via '<'
foo myfile
bar < myfile
(bar | baz) < myfile $ < file executable- for some poor suggestions.
Please advise.
FYI, I suggest leaving tabstop=8 if you indent with spaces like a good boy.
The idea is to take vim and basically castrate it by getting rid of the standard keybindings and ways of doing things to make it 'easier' for non-vim users. It even appears they got rid of modal-editing.
The issue with this then they don't learn how to do things the vim way which defeats the purpose of using vim, just go use notepad++ or any other gui editor you get the same experience.