-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
82 lines (64 loc) · 2.27 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
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()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'mustache/vim-mustache-handlebars'
Plugin 'tpope/vim-bundler'
Plugin 'tpope/vim-commentary'
Plugin 'heartsentwined/vim-emblem'
Plugin 'tpope/vim-endwise'
Plugin 'vim-ruby/vim-ruby'
Plugin 'tpope/vim-rails'
Plugin 'tpope/vim-surround'
Plugin 'kchmck/vim-coffee-script'
Plugin 'elixir-lang/vim-elixir'
Plugin 'tpope/vim-repeat.git'
Plugin 'terryma/vim-expand-region'
"Plugin 'othree/xml.vim'
Plugin 'scrooloose/nerdtree.git'
call vundle#end() " required
filetype plugin indent on " required
if &term =~ '256color'
" Disable Background Color Erase (BCE) so that color schemes
" work properly when Vim is used inside tmux and GNU screen.
set t_ut=
endif
color zenburn
syntax on
set encoding=utf-8
set showcmd " display incomplete commands
filetype plugin indent on " load file type plugins + indentation
"" Whitespace
set nowrap " don't wrap lines
set tabstop=2 shiftwidth=2 " a tab is two spaces (or set this to 4)
set expandtab " use spaces, not tabs (optional)
set backspace=indent,eol,start " backspace through everything in insert mode
"" Searching
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
set listchars=tab:··,trail:·,extends:>,precedes:<
set list
set number
" Disable comments on return
au FileType * setlocal formatoptions-=o
set nobackup
set nowritebackup
set noswapfile
" Always show (crazy ass) statusline
set laststatus=2
set statusline=%t[%{strlen(&fenc)?&fenc:'none'},%{&ff}]%h%m%r%y%=%c,%l/%L\ %P
" Leader shortcuts
let mapleader = "g"
nnoremap <Leader>m :! make<CR>
noremap <Leader>w :update<CR>
set pastetoggle=<leader>p
" Plugin 'terryma/vim-expand-region'
vmap v <Plug>(expand_region_expand)
vmap <C-v> <Plug>(expand_region_shrink)
" NERDTree
map <C-n> :NERDTreeToggle<CR>