View Full Version : indentation vim and ruby
jordilin
November 1st, 2006, 02:27 PM
I've installed ruby-vim but it doesn't autoindent ruby code. Is there a way to autoindent code in vim using ruby?
thanks
jordilin
November 1st, 2006, 03:42 PM
Solved, I have commented out the following in /etc/vim/vimrc
if has("autocmd")
filetype indent on
endif
thanks anyway
hasimir44
May 31st, 2007, 12:27 AM
If anyone wants to set the size of the indent.. (I like 2 spaces..)
Add the following to /etc/vim/vimrc
set sw=2 " no of spaces for indenting
set ts=2 " show \t as 2 spaces and treat 2 spaces as \t when deleting, etc..
Also uncomment this for highlighting:
syntax on
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.