-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
136 lines (110 loc) · 3.38 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
" % is current filename
set nocompatible " We're running Vim, not Vi!
filetype off
let iCanHazVundle=1
let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
if !filereadable(vundle_readme)
echo "Installing Vundle.."
echo ""
silent !mkdir -p ~/.vim/bundle
silent !git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle
let iCanHazVundle=0
endif
set runtimepath+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Plugin 'gmarik/vundle'
"Plugins
Plugin 'jpalardy/vim-slime'
Plugin 'Townk/vim-autoclose'
Plugin 'scrooloose/nerdtree'
Plugin 'ervandew/supertab'
let g:SuperTabDefaultCompletionType = "context"
set omnifunc=syntaxcomplete#Complete
set completeopt-=preview
"Languages
Plugin 'tpope/vim-git'
Plugin 'smerrill/vcl-vim-plugin'
Plugin 'fatih/vim-go'
"use :GoInstallBinaries to add goimports, etc
let g:go_fmt_command = "goimports"
"Plugin 'AutoComplPop'
if iCanHazVundle == 0
echo "Installing Plugins, please ignore key map error messages"
echo ""
:PluginInstall
endif
filetype plugin indent on
"
" Brief help
" :PluginList - list configured bundles
" :PluginInstall(!) - install(update) bundles
" :PluginSearch(!) foo - search(or refresh cache first) for foo
" :PluginClean(!) - confirm(or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Plugin command are not allowed..
""""""""""""""""""""""""""""""""""
syntax on " Enable syntax highlighting
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
set autoindent " always set autoindenting on
set expandtab
set autoindent
set tabstop=4
set shiftwidth=4
set number
set showmatch
set softtabstop=4
set smarttab
set backspace=2
"let g:solarized_termtrans=1
"let g:solarized_termcolors=256
""let g:solarized_contrast = 'high'
"set background=dark
"colorscheme solarized
"set background=light
"hi clear
"syntax reset
highlight Normal guibg=Black guifg=Gray65
highlight Comment guifg=DarkGreen ctermfg=DarkGreen
highlight Identifier guifg=Gray ctermfg=Gray
highlight Statement guifg=DarkCyan ctermfg=DarkCyan
highlight IncSearch guifg=Cyan ctermfg=Cyan
highlight Search guifg=Yellow ctermfg=Yellow
highlight Constant guifg=Red gui=None
highlight Constant ctermfg=Red cterm=none
highlight Type guifg=Blue gui=none
highlight Type ctermfg=Blue cterm=none
augroup filetypedetect
au BufNewFile,BufRead *.ec,*.EC,*.pc setf esqlc
au BufNewFile,BufRead *.pig set filetype=pig syntax=pig
au BufNewFile,BufRead *.hql set filetype=hive syntax=hive
augroup END
"testing features
autocmd BufEnter * :syntax sync fromstart
set pastetoggle=<F2>
" disable arrow keys
"map <up> <nop>
"map <down> <nop>
"map <left> <nop>
"map <right> <nop>
"imap <up> <nop>
"imap <down> <nop>
"imap <left> <nop>
"imap <right> <nop>
set wildmenu
"set nohlsearch
set hlsearch
" Map <C-L> (redraw screen) to also turn off search highlighting until the
" " next search
nnoremap <C-L> :nohl<CR><C-L>
"higlight trailing whitespace
set list listchars=tab:\ \ ,trail:·
map <F3> :NERDTreeToggle<CR>
cmap w!! w !sudo tee % >/dev/null