Permalink
Browse files

code indentation

  • Loading branch information...
1 parent c6f139f commit 51387dc172f83d0632bb0e41e110596ad39f785b Neeraj Singh committed Apr 1, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 vimrc
View
8 vimrc
@@ -13,8 +13,7 @@
" #t<enter> to expand to Then show me the page. Note hit enter after #t
"
" Formatting
-" ruby code: Go to the top of the page then =shiftg
-" JavaScript code: hit <leader>ff
+" Hit F5 to edit code
"
" =============================================================
@@ -179,3 +178,8 @@ function! s:align()
endfunction
+" hit F5 in normal or edit more to indent code
+" http://lucapette.com/vim/rails/vim-for-rails-developers-indenting-code/
+map <silent> <F5> gg=G<CR>
+imap <silent> <F5> <Esc> gg=G<CR>
+

0 comments on commit 51387dc

Please sign in to comment.