-
Notifications
You must be signed in to change notification settings - Fork 2
/
rc
61 lines (59 loc) · 1.49 KB
/
rc
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
call pathogen#infect()
syntax on
filetype on
filetype indent on
filetype plugin on
set expandtab
set guifont=Menlo:h12
set tabstop=4
set shiftwidth=4
map <S-Enter> i<CR><Esc>
map <F2> :NERDTree <CR>
map <F3> <C-W><left>q
map <F4> :colorscheme Candy<CR>
map <F5> :colorscheme Eclipse<CR>
map <F6> :colorscheme VYLight<CR>
map <F7> :colorscheme Railscasts<CR>
map <F8> :colorscheme BClear<CR>
map <F9> :colorscheme Molokai<CR>
set nocompatible
set cul
colorscheme Molokai
let mapleader = ","
inoremap jj <ESC>
nnoremap / /\v
vnoremap / /\v
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set nu
set hlsearch
set laststatus=2
set statusline=%f\ %y\ %{fugitive#statusline()}\ [%l,%c]
nnoremap <leader><space> :noh<cr>
nnoremap <leader>q :q<cr>
nnoremap <leader>s :Gwrite<cr>
nnoremap <leader>- 80a-<ESC>
nnoremap <leader>w :wq<cr>
nnoremap <leader>c :cq<cr>
nnoremap <leader># i#<ESC>80a-<ESC>yypko
nnoremap <leader>k v/,<cr>hc
nnoremap <leader>l v/'<cr>hc
nnoremap <leader>L v/"<cr>hc
nnoremap <leader>o :set nowrap<cr>
nnoremap <leader>O :set wrap<cr>
nnoremap <leader>b :set relativenumber<cr>
nnoremap <leader>bn :bn<cr>
nnoremap <leader>bd :bd<cr>
nnoremap <leader>B :set nu<cr>
nnoremap <tab> %
vnoremap <tab> %
highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%121v.\+/
let g:syntastic_check_on_open=1
" ctrl+p options
let g:ctrlp_map='<Leader>p'
" let g:ctrlp_user_command = 'git ls-files'
let g:ctrlp_user_command = ['.git/', 'cd %s && git ls-files', 'find %s -type f']