From: Aldric Giacomoni <"aldric[remove]"@...> Date: 2009-03-25T06:21:55+09:00 Subject: Share your vimrc I've just started using vim (Windows at work, Gentoo at home, a Macbook to play with).. Well, Netbeans works, but I do feel I could be more efficient without a mouse :) So, here's my vimrc. I can't -explain- it because it's a bunch of stuff I got from the web and I don't understand it all yet, but so far I kinda like it.. Still looking for a better way to do completion though. I hope this is a good "get-started-with-vim" vimrc for Ruby / Rails. set nocompatible filetype on filetype indent on filetype plugin on set completeopt=longest,menuone inoremap pumvisible() ? "\" : "\u\" inoremap pumvisible() ? '' : \ '=pumvisible() ? "\Down>" : ""' inoremap pumvisible() ? '' : \ '=pumvisible() ? "\Down>" : ""' syn on autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1 autocmd FileType ruby,eruby let g:rubycomplete_rails = 1 autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1 autocmd FileType html set omnifunc=htmlcomplete#CompleteTags set ai set columns=100 set lines=50 set guifont=Courier:h10 set nu set autoindent set tabstop=2 set softtabstop=2 set wrap set sw=2 What does yours look like.. Why? :) --Aldric