-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
147 lines (123 loc) · 4.17 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
" Vundle setup ----------------------------------------------------------------
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'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
"Plugin 'tpope/vim-fugitive'
"" Fugitive {{{
" nnoremap <leader>gs :Gstatus<cr>
" nnoremap <leader>gc :Gcommit<space>
" nnoremap <leader>gd :Gdiff<cr>
"" }}}
"Plugin 'airblade/vim-gitgutter'
Plugin 'ruscmd'
Plugin 'syntastic'
" All of your Plugins must be added before the following line
call vundle#end() " required
" filetype plugin indent on " required !!!!!!!!!!!!! REVERT IT
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" -----------------------------------------------------------------------------
set nocompatible " be iMproved
set incsearch
set hlsearch
"set number
"set relativenumber
"set tabstop=2 shiftwidth=2 expandtab
set autoindent
"set smartindent
set ignorecase
set smartcase
set colorcolumn=115
highlight ColorColumn ctermbg=gray guibg=gray
syntax enable
set t_Co=16
"set background=light
set background=dark
" tmux
if !has("gui_running")
set t_Co=256
set term=screen-256color
endif
" solarized options
let g:solarized_termcolors = 256
let g:solarized_visibility = "high"
let g:solarized_contrast = "high"
" colorscheme solarized
" colorscheme smyck
colorscheme darkblue
" set clipboard=unnamedplus
" set clipboard=unnamed
set clipboard=unnamedplus
filetype off " required!
" own bundles
Plugin 'kien/ctrlp.vim'
Bundle 'scrooloose/nerdtree'
" nmap <leader>ne :NERDTree<cr>
map <leader>r :NERDTreeFind<cr>
Bundle 'jwhitley/vim-matchit'
"Plugin 'Xuyuanp/nerdtree-git-plugin'
"set shell=sh
set shell=zsh
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " Linux/MacOSX
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)|node_modules$',
\ 'file': '\v\.(exe|so|dll|log)$',
\ 'link': 'SOME_BAD_SYMBOLIC_LINKS',
\ }
let g:ctrlp_max_files=0
let g:ctrlp_dotfiles=1
" Plugin 'airblade/vim-gitgutter'
Plugin 'https://github.com/altercation/vim-colors-solarized.git'
Plugin 'kchmck/vim-coffee-script'
Plugin 'slim-template/vim-slim'
Plugin 'tpope/vim-haml'
Plugin 'tpope/vim-fugitive'
Plugin 'mileszs/ack.vim'
let g:ackprg="ack-grep -H --nocolor --nogroup --nocolumn"
" run `ln -s /usr/bin/ack-grep /usr/bin/ack`
Plugin 'szw/vim-tags' " ctags
" search first in current directory then file directory for tag file
set tags=tags,./tags
Bundle 'tpope/vim-rails'
Bundle 'tpope/vim-commentary'
Plugin 'lucapette/vim-ruby-doc'
Plugin 'elixir-lang/vim-elixir'
Plugin 'janko-m/vim-test'
Plugin 'isRuslan/vim-es6'
syntax on
nnoremap <F5> :buffers<CR>:buffer<Space>
let g:gitgutter_eager = 0
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
" different tabs for different files
autocmd FileType * set tabstop=2 shiftwidth=2 expandtab
autocmd FileType cpp set tabstop=4 shiftwidth=4 expandtab
autocmd FileType javascript set tabstop=2 shiftwidth=2 expandtab
au BufEnter *.js set ai sw=4 ts=4 sta et fo=croql
autocmd FileType make setlocal noexpandtab
" replace trailing whitespaces
autocmd BufWritePre *.yml,*.go,*.rb,*.erb,*.haml,*.js,*.coffee,*.css,*.scss,*.builder,*.cc,*c,*.cpp,*.h,*.hh,*.hpp,*.md,*.ex,*.eex :%s/\s\+$//e
" GVIM options
set guioptions-=m "remove menu bar
set guioptions-=T "remove toolbar
set guioptions-=r "remove right-hand scroll bar
set guioptions-=L "remove left-hand scroll bar
"set shellcmdflag=-ic