Re: Developing in RoR on Ubuntu 8.04
when copy/paste some code from html page to vi , sometimes indents looks bad.
there could be many causes for this, it's probably due to a setting in your ~/.vimrc file.
before you paste, try this in vim:
1. hit escape
2. then type ":set paste"
and now just paste into vim and the indenting should work.
if you'd like to leave paste mode on, permanently, add this to your ~/.vimrc:
and then source it and carry on using vim.
vim+rails.vim has some plugin to format it? (just like Eclipse Ctrl+shift+F :-) i am a java guy.
not sure what you mean there...do you want syntax highlighting? or are you just talking about the above indenting problem? i've never used Eclipse.
Last edited by rebelx (2008-07-04 06:33:17)