-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
82 lines (71 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
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'Lokaltog/vim-easymotion'
Plugin 'L9'
Plugin 'kien/ctrlp.vim'
Plugin 'git://git.wincent.com/command-t.git'
Plugin 'scrooloose/nerdtree'
Plugin 'fatih/vim-go'
Plugin 'Lokaltog/vim-powerline'
Plugin 'vim-ruby/vim-ruby'
Plugin 'tpope/vim-endwise'
Plugin 'kchmck/vim-coffee-script'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
Plugin 'garbas/vim-snipmate'
call vundle#end()
syntax on
filetype on
filetype plugin indent on
set backspace=indent,eol,start
set mouse=a
set whichwrap+=<,>,[,]
set hidden
set wildmenu
set showcmd
set hlsearch
set ignorecase
set smartcase
set autoindent
set nostartofline
set ruler
set laststatus=2
set confirm
set visualbell
set cmdheight=2
set number
set notimeout ttimeout ttimeoutlen=200
set shiftwidth=2
set softtabstop=2
set expandtab
set tabstop=2
set cursorline
set t_Co=256
set regexpengine=1
set exrc
set secure
set foldmethod=indent
set foldlevel=99
let g:Powerline_symbols = "fancy"
map <F8> :NERDTreeToggle<CR>
set pastetoggle=<F2>
" autocmd VimEnter * if &filetype !=# 'gitcommit' | NERDTree | wincmd p | endif
let g:NERDTreeChDirMode=2
" CtrlP settings
let g:ctrlp_map = '<c-p>'
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']
" Highlight trailing whitespaces and delete all with <F5>
match ErrorMsg '\s\+$'
:nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
colorscheme molokai
" Line number color, highlight current line
highlight LineNr ctermfg=grey
autocmd Filetype python setlocal tabstop=4 softtabstop=4 shiftwidth=4 autoindent
autocmd Filetype c setlocal tabstop=4 softtabstop=4 shiftwidth=4 autoindent
autocmd Filetype cpp setlocal tabstop=4 softtabstop=4 shiftwidth=4 autoindent
" let g:ctrlp_custom_ignore = { 'dir': '\v[\/]\.(git|hg|svn)$' }
let g:ctrlp_custom_ignore = 'node_modules'