-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
executable file
·81 lines (66 loc) · 2.19 KB
/
.vimrc
File metadata and controls
executable file
·81 lines (66 loc) · 2.19 KB
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
filetype plugin indent on
set ai
set wrap
set updatetime=100
set signcolumn=yes
set nocompatible
set paste
set incsearch
set confirm
set number
set ignorecase
set smartcase
set wildmenu
set wildmode=list:longest,full
set tabstop=2 " The width of a TAB is set to 4.
" Still it is a \t. It is just that
" Vim will interpret it to be having
" a width of 4.
set shiftwidth=2 " Indents will have a width of 4
set softtabstop=2 " Sets the number of columns for a TAB
set expandtab " Expand TABs to spaces
set encoding=utf-8
set laststatus=2
syntax on
" Plugin Settings
map <C-l> :NERDTreeToggle<CR>
map <C-t> :tabnew<CR>
set background=dark
let g:solarized_termtrans = 1
"olorscheme solarized
" indent-guis plugin
colorscheme default
set background=dark
set ts=2 sw=2 et
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_start_level=1
let g:indent_guides_guide_size = 2
"https://github.com/ntpeters/vim-better-whitespace
autocmd BufWritePre * StripWhitespace
autocmd BufWritePre * retab
let g:gitgutter_enabled = 1
let g:gitgutter_highlight_lines = 0
let g:gitgutter_highlight_linenrs = 0
" highlight GitGutterAdd guifg=#009900 ctermfg=2
" highlight GitGutterChange guifg=#bbbb00 ctermfg=3
" highlight GitGutterDelete guifg=#ff2222 ctermfg=1
" highlight link GitGutterDeleteLine DiffText
set statusline+=%#warningmsg#
set statusline+=%*
"http://stackoverflow.com/questions/20663169/vim-really-slow-with-long-yaml
map BufNewFile,BufRead *.yaml,*.yml so ~/.vim/yaml.vim
let g:SuperTabDefaultCompletionType = "context"
" let g:auto_save = 1
" let g:auto_save_events = ["InsertLeave", "TextChanged"]
" Undo files
if v:version > 702
set undofile " Save undos after file closes
set undodir=/tmp " Where to save the undo information
" Since this is set to /tmp, the undo files will be
" deleted when the server reboots.
" But it is still better than not having it.
set undolevels=1000 " How many undos
set undoreload=10000 " Number of lines to save for undo
endif
execute pathogen#helptags()
execute pathogen#infect()