-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
100 lines (79 loc) · 1.94 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
94
95
96
97
98
99
100
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'kien/ctrlp.vim'
Plugin 'fholgado/minibufexpl.vim'
Plugin 'scrooloose/nerdcommenter'
Plugin 'scrooloose/nerdtree'
Plugin 'spf13/vim-autoclose'
Plugin 'junegunn/vim-easy-align'
Plugin 'Lokaltog/vim-easymotion'
Plugin 'tpope/vim-endwise'
Plugin 'tpope/vim-fugitive'
Plugin 'Lokaltog/vim-powerline'
Plugin 'tpope/vim-rails'
let mapleader = "-"
syntax on
set hidden
set history=1000
set undolevels=1000
set shiftround
set backspace=indent,eol,start
set smarttab
set autoindent
set copyindent
set wrap
set number
set nobackup
set noswapfile
set directory=~/.vim/.tmp,~/tmp,/tmp
set wildmenu
set wildmode=list:full
set wildignore=*.swp,*.bak,*.pyc,*.class
set title
set showmode
set showcmd
nnoremap / /\v
vnoremap / /\v
set showmatch
set ignorecase
set smartcase
set gdefault
set incsearch
set hlsearch
set tabstop=2
set softtabstop=2
set shiftwidth=2
set smarttab
set smartcase
set expandtab
nnoremap <leader><space> :nohl<CR>
set listchars=eol:¬,trail:·,extends:#,nbsp:·
" Ctrl-s like windows
map <C-s> :w<CR>
imap <C-s> <Esc>:w<CR>i
noremap <leader>d <Esc>:MBEbd<CR>
noremap <C-Tab> :MBEbn<CR>
noremap <C-S-Tab> :MBEbp<CR>
noremap <C-l> :MBEbn<CR>
noremap <C-h> :MBEbp<CR>
let NERDTreeShowFiles=1
let NERDTreeShowHidden=1
let NERDTreeHighlightCursor=1
let g:EasyMotion_keys="aoeusnth"
noremap <leader>t :NERDTreeToggle<CR>
let g:ctrlp_map = '<Leader>o'
noremap <leader>b <Esc>:CtrlPBuffer<CR>
nnoremap ; :
if has("autocmd")
autocmd BufNewFile,BufRead *.html,*.erb set filetype=html.eruby
autocmd BufWritePre * :%s/\s\+$//e
endif
call vundle#end()
filetype plugin indent on