Live data from Hacker News

VIM Destroys All Other Rails Editors

adamlowe.me

1–10 of 42 posts

Re: VIM Destroys All Other Rails Editors

#6
post #4

+ for mentioning all tpope's plugins/bundles. - for some poor suggestions.

Pray tell, what are your suggestions and criticisms? A friend of mine after a horrible computer bitswap, bit into vim after TextMate. I wanted to follow, just to learn. This is actually fantastic for me -- there are various . configs I knew nothing of, but now can grep/google for info.

Please advise.

Re: VIM Destroys All Other Rails Editors

#8
I too use tabstop=2

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).

Re: VIM Destroys All Other Rails Editors

#9
post #8

I too use tabstop=2 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).

unless you prefer tabs, you can add:

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.

Post reply on HN