-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
95 lines (73 loc) · 1.98 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
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
Plug 'junegunn/vim-easy-align'
" Color Scheme
Plug 'morhetz/gruvbox'
" GitGutter
Plug 'airblade/vim-gitgutter'
" Airline
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" Auto brackets and stuff
Plug 'Raimondi/delimitMate'
" Rainbow Parenthesis
Plug 'luochen1990/rainbow'
let g:rainbow_active = 1 " activates the plugin
" NERDTRee
Plug 'scrooloose/nerdtree'
" Syntax support
Plug 'sheerun/vim-polyglot'
" Add plugins to &runtimepath
call plug#end()
" map leader
let mapleader=","
"UI Things
syntax on " turns syntax highlighting on
set background=dark
colorscheme gruvbox
if strftime("%H") < 17 && strftime("%H") > 6
"set background=light
else
set background=dark
endif
if has('gui_running')
colorscheme gruvbox
set guifont=Hack:h14
endif
set number " show line numbers
" set cursorline " highlight the current line
filetype indent on " indenting for file types
filetype plugin on
set lazyredraw " only redraw when needed
set showmatch " highlight matching brackets
set wildmenu " visual autocomplete for command menu
set incsearch " search as characters are entered
set hlsearch " highlights search matches
nnoremap <leader><space> :nohlsearch<CR>
" For tabbing and stuff
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
"Remove sidebars
:set guioptions-=L
:set guioptions-=l
:set guioptions-=R
:set guioptions-=r
let NERDTreeIgnore=['\.pyc$']
"Spell checking
autocmd BufRead,BufNewFile *.md setlocal spell spelllang=en_us
autocmd BufRead,BufNewFile *.txt setlocal spell spelllang=en_us
autocmd BufRead,BufNewFile *.tex setlocal spell spelllang=en_us
"Text wrapping
au BufRead,BufNewFile *.md setlocal textwidth=100
au BufRead,BufNewFile *.txt setlocal textwidth=100
au BufRead,BufNewFile *.tex setlocal textwidth=100
"Hot-reload
set autoread
set backspace=indent,eol,start
"disable the arrow keys
noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>