-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
87 lines (64 loc) · 1.56 KB
/
.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
set expandtab
set softtabstop=2
set shiftwidth=2
set tabstop=2
set backupdir=~/.vim/temp
set directory=~/.vim/temp
augroup vimrc_autocmds
autocmd BufEnter * highlight OverLength ctermbg=darkgrey guibg=#592929
autocmd BufEnter * match OverLength /\%74v.*/
augroup END
au BufRead,BufNewFile {Capfile,Gemfile,Rakefile,Thorfile,config.ru,.caprc,.irbrc,irb_tempfile*} set ft=ruby
au BufRead,BufNewFile {*.jbuilder,*.rabl} setf ruby
syntax on
filetype plugin indent on
set ai
colorscheme koehler
set ruler
nmap <F1> :echo<CR>
imap <F1> <C-o>:echo<CR>
let &titlestring = expand("%:t")
if &term == "screen"
set t_ts=k
set t_fs=\
endif
if &term == "screen" || &term == "xterm"
set title
endif
let &titleold=" "
map <F1> :r! pbpaste
map <F7> :set spell!
map <F9> :noh
map <down> <nop>
map <left> <nop>
map <right> <nop>
map <up> <nop>
imap <down> <nop>
imap <left> <nop>
imap <right> <nop>
imap <up> <nop>
nnoremap <Space> :
let vimclojure#ParenRainbow = 1
nmap <F4> :vsplit<bar>wincmd l<bar>exe "norm! Ljz<c-v><cr>"<cr>:set scb<cr>:wincmd h<cr>:set scb<cr>
set showcmd
set hlsearch
nmap <silent> <C-N> :silent noh<CR>
au BufRead,BufNewFile *.go set filetype=go
set tw=72
au BufNewFile,BufRead *.jst set syntax=jst
au BufRead,BufNewFile *.md set filetype=markdown
call pathogen#infect()
let g:EasyMotion_leader_key = '<Leader>'
set relativenumber
function! NumberToggle()
if(&relativenumber == 1)
set number
else
if(&number == 1)
set nonumber
else
set relativenumber
endif
endif
endfunc
nnoremap <F2> :call NumberToggle()<cr>