-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.vimrc
60 lines (45 loc) · 1.12 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
" Allow vim to break compatibility with vi
" Must come first, required
set nocompatible
" vim-plug, place plugins between here and the end call
call plug#begin('~/.vim/plugged')
" NerdTree, file directory tree
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
" Open the tree directory with ctrl-n
map <C-n> :NERDTreeToggle<CR>
" Color Scheme
Plug 'mhartington/oceanic-next'
Plug 'haishanh/night-owl.vim'
" Make tab handle all completions
Plug 'ervandew/supertab'
" Fancy statusline
Plug 'bling/vim-airline'
Plug 'vim-airline/vim-airline-themes'
call plug#end()
" Set line numbers
set number
" Set tabs to 2 spaces
set tabstop=2
set expandtab
set shiftwidth=2
set autoindent
set smartindent
" Smart backspacing
set backspace=indent,eol,start
" Enable theming
syntax enable
" for vim 7
set t_Co=256
" for vim 8
if (has('termguicolors'))
set termguicolors
endif
let g:oceanic_next_terminal_bold = 1
let g:oceanic_next_terminal_italic = 1
" Color scheme
colorscheme night-owl
" Disable the arrow keys to force myself to learn to use other commands
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>