forked from seejohnrun/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
93 lines (66 loc) · 1.58 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
88
89
90
91
92
93
filetype off
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
filetype plugin indent on
filetype plugin on
set nocompatible
set modelines=0
syntax enable
"let the Align thing work..
set nocp
set expandtab
set tabstop=2
set softtabstop=2
set shiftwidth=2
set showtabline=2
set number
set wrap
set encoding=utf-8
set autoindent
"quicker regex matching
set incsearch
"set hlsearch
"make regexes a little more predictable
nnoremap / /\v
vnoremap / /\v
"ignore case when all lower case
set ignorecase
set smartcase
set pastetoggle=<F2>
"deal with one line wrapping to multiple lines
nnoremap j gj
nnoremap k gk
"change the <leader> to ,
let mapleader = ","
"strip all trailing whitespace with ,W
nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR>
"reselect pasted text with ,v
nnoremap <leader>v V`]
"get out of insert mode with jj
inoremap jj <ESC>
set nofoldenable " disable folding
set t_Co=256
noremap <Up> ""
noremap! <Up> <Esc>
noremap <Down> ""
noremap! <Down> <Esc>
noremap <Left> ""
noremap! <Left> <Esc>
noremap <Right> ""
noremap! <Right> <Esc>
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%80v.\+', -1)
au BufNewFile,BufRead *.ejs set filetype=html
set background=dark
colorscheme solarized
if has("gui_macvim")
set fuopt+=maxhorz
set guioptions-=T
set guifont=Monaco:h12
endif
cabbr te tabedit
cabbr to tabonly
au BufNew,BufRead Gemfile set syntax=ruby
au BufNew,BufRead irb_tempfile.rb.* set syntax=ruby
au BufWinEnter .rb let w:m1=matchadd('ErrorMsg', '\%>80v.\+', -1)
au BufWinEnter let w:m2=matchadd('ErrorMsg', '\s\+$', -1)
set wildignore+=*.beam