-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
vim-and-rails.scroll
43 lines (32 loc) · 1.13 KB
/
vim-and-rails.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
date 2010-8-13
tags index
permalink vim-and-rails.html
title VIM and Rails
pageHeader.scroll
Check out this guide.
https://biodegradablegeek.com/2007/12/using-vim-as-a-complete-ruby-on-rails-ide guide
code
filetype on " Automatically detect file types.
set nocompatible " We don't want vi compatibility.
" Add recently accessed projects menu (project plugin)
set viminfo^=!
" Minibuffer Explorer Settings
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1
" alt+n or alt+p to navigate between entries in QuickFix
map <silent> <m-p> :cp <cr>
map <silent> <m-n> :cn <cr>
" Change which file opens after executing :Rails command
let g:rails_default_file='config/database.yml'
syntax enable
set ruler " Ruler on
set nu " Line numbers on
set ruler " Ruler on
set nu " Line numbers on
set nowrap " Line wrapping offset nowrap " Line wrapping off
set timeoutlen=250 " Time to wait after ESC (default causes an annoying
set ts=2 " Tabs are 2 spaces
set laststatus=2 " Always show status line.
footer.scroll