-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
150 lines (125 loc) · 5.78 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
148
149
150
" Setting up Vundle - the vim plugin bundler
set nocompatible " Use Vim defaults (much better!)
filetype off
let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
if !filereadable(vundle_readme)
echo "Installing Vundle.."
echo ""
silent !git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle
endif
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
"Add your bundles here
Bundle 'altercation/vim-colors-solarized'
Bundle 'chriskempson/base16-vim'
Bundle 'chriskempson/vim-tomorrow-theme'
Bundle 'scrooloose/nerdtree'
Bundle "MarcWeber/vim-addon-mw-utils"
Bundle "tomtom/tlib_vim"
let g:snipMate = { 'snippet_version' : 1 }
Bundle "honza/vim-snippets"
Bundle "garbas/vim-snipmate"
Bundle "tpope/vim-haml"
Bundle "maxbrunsfeld/vim-yankstack"
filetype plugin indent on
" echo "Installing Bundles, please ignore key map error messages"
" echo ""
" BundleInstall
" Setting up Vundle - the vim plugin bundler end
" eI config
" Configuration file for vim
" initial author: John Carrino (carrino@)
" Standard vim options
set diffopt=filler,iwhite " keep files synced and ignore whitespace
set guioptions-=m " Remove menu from the gui
set guioptions-=T " Remove toolbar
set hidden " hide buffers instead of closing
set history=50 " keep 50 lines of command line history
set ignorecase " Do case insensitive matching
set incsearch " Incremental search
set laststatus=2 " always have status bar
set linebreak " This displays long lines as wrapped at word boundries
set matchtime=10 " Time to flash the brack with showmatch
if isdirectory($HOME . '/.vim/swap') == 0
:silent !mkdir -p ~/.vim/swap >/dev/null 2>&1
endif
set directory=~/.vim/swap//
if isdirectory($HOME . '/.vim/backup') == 0
:silent !mkdir -p ~/.vim/backup >/dev/null 2>&1
endif
set backupdir=~/.vim/backup//
set nobackup " Don't keep a backup file
set nofen " disable folds
set notimeout " i like to be pokey
set nottimeout " take as long as i like to type commands
set ruler " the ruler on the bottom is useful
set scrolloff=1 " dont let the curser get too close to the edge
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set textwidth=0 " Don't wrap words by default
"set textwidth=80 " This wraps a line with a break when you reach 80 chars
set timeoutlen=10000 " Time to wait for a map sequence to complete
set ttimeoutlen=10000 " time to wait for a key code to complete
set virtualedit=block " let blocks be in virutal edit mode
set wildmenu " This is used with wildmode(full) to cycle options
"Longer Set options
set cscopequickfix=s-,c-,d-,i-,t-,e-,g-,f- " useful for cscope in quickfix
set listchars=tab:>-,trail:- " prefix tabs with a > and trails with -
set tags+=.tags,../.tags,../../.tags,../../../.tags " set ctags
set whichwrap+=<,>,[,],h,l,~ " arrow keys can wrap in normal and insert modes
set wildmode=list:longest,full " list all options, match to the longest
set helpfile=$VIMRUNTIME/doc/help.txt
set guifont=Courier\ 10\ Pitch\ 10
set path+=.,..,../..,../../..,../../../..,/usr/include
" Suffixes that get lower priority when doing tab completion for filenames.
" These are files I am not likely to want to edit or read.
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.class
" viminfo options
" read/write a .viminfo file, don't store more than
" 50 lines of registers
set viminfo='20,\"50
"Set variables for plugins to use
"vimspell variables
"don't automatically spell check!
let spell_auto_type=""
" LargeFile.vim settings
" don't run syntax and other expensive things on files larger than NUM megs
let g:LargeFile = 100
" my own config, originally stolen from dnangle
highlight ExtraWhitespace ctermbg=red guibg=red
autocmd BufWinEnter * highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$\| \|\t/
set nocompatible " use VIM defaults
syntax on " turn on syntax highlighting
let base16colorspace=256
set t_Co=256 " turn on 256-color support
set bg=dark " dark terminal background
colorscheme Tomorrow-Night-Bright
if filereadable(expand("~/.vimrc_background"))
source ~/.vimrc_background
endif
"autocmd BufReadPost * SetColors darkblue delek desert elflord pablo ron torte
"autocmd BufReadPost * call NextColor(0)
set backspace=2 " allow backspacing over anything
set expandtab " Get rid of tabs altogether and replace with spaces
set shiftwidth=2 " Set indention level to be the same as softtabstop
set softtabstop=2 " Why are tabs so big? This fixes it
set autoindent " always set autoindenting on
set magic " don't need to escape ., *, etc in regexp
set showmode " shows whether in INSERT, REPLACE, VISUAL, etc
set ruler " show cursor position
set hlsearch " highlight search matches
set incsearch " incremental search
set ignorecase " match any string case in search
set smartcase " smart case matching
set showmatch " show matching parenthesis on insert
set visualbell " use visual bell instead of beeping
"set foldmethod=syntax "or marker with marker set to {,}
"set foldlevel=9
"set foldcolumn=5 "shows how deep into the fold hierarchy you're in. use a higher number based on preference
"set foldenable
"let perl_fold=1
let java_highlight_functions="style"
let java_highlight_debug=1
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif