sandal (owner)

Revisions

gist: 125566 Download_button fork
public
Public Clone URL: git://gist.github.com/125566.git
Embed All Files: show embed
.vimrc #
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
44
45
46
47
48
set vb t_vb=
set nobackup
set nowritebackup
set noswapfile
 
set backspace=indent,eol,start
 
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
 
map Q gq
 
set autoindent " always set autoindenting on
set shiftwidth=2
set tabstop=2
set expandtab
set tw=80
set nohlsearch
map <silent> <C-N> :se invhlsearch<CR>
 
filetype on
filetype indent on
filetype plugin on
syntax on
if !exists( "*EndToken" )
 function EndToken()
  let current_line = getline( '.' )
  let braces_at_end = '{\s*\(|\(,\|\s\|\w\)*|\s*\)\?$'
  if match( current_line, braces_at_end ) >= 0
    return '}'
  else
    return 'end'
  endif
 endfunction
endif
 
noremap <F5> :set invpaste paste?<Enter>
imap <F5> <C-O><F5>
set pastetoggle=<F5>
 
map <C-T> :!ruby % -Ilib<CR>
map <C-K> :!ruby %<CR>
map <C-A> :!rake<CR>
map <C-I> :!irb -Ilib --simple-prompt<CR>
set nocompatible