-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvimrc
102 lines (76 loc) · 2.34 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
" enable syntax highlighting
syntax enable
" show line numbers
set number
" set tabs to have 4 spaces
set ts=2
set foldmethod=indent
set foldlevel=0
set foldclose=all
" indent when moving to the next line while writing code
set autoindent
" expand tabs into spaces
set expandtab
" when using the >> or << commands, shift lines by 4 spaces
set shiftwidth=2
" show a visual line under the cursor's current line
set cursorline
set cursorcolumn
" show the matching part of the pair for [] {} and ()
set showmatch
set scrolloff=10
set expandtab
set tabstop=4
set shiftwidth=4
set autoindent
set number " show line numbers
set backspace=2
set ruler
set hlsearch " highlights search results
set incsearch " search as characters are entered
set mouse=a
set nowrap
set colorcolumn=80
set smarttab
set smartcase
set showcmd
set lazyredraw " redraw only when necessary
set encoding=utf-8
" Clear search highlight by hitting enter
nnoremap <CR> :nohlsearch<CR>
" toggle paste mode to get rid of spacing issues when pasting
map <leader>pp :setlocal paste!<cr>
" use ctrl + jklh for switching b/w vimsplits instead of ctrl+w -> jhlk
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" open new splits below/right of current vim file
set splitbelow
set splitright
syntax on
colorscheme koehler
autocmd BufWritePre * %s/\s\+$//e
filetype plugin on
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
autocmd CompleteDone * pclose
autocmd BufNewFile,BufRead *.hql set syntax=SQL
" let g:ycm_python_binary_path = '/usr/local/bin/python3'
" trying this vundle garbage
set nocompatible " 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'
" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
Plugin 'vim-scripts/indentpython.vim'
Bundle 'Valloric/YouCompleteMe'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
set background=dark