-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.vimrc
More file actions
executable file
·40 lines (30 loc) · 1 KB
/
.vimrc
File metadata and controls
executable file
·40 lines (30 loc) · 1 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
syntax enable
set tabstop=4 " number of visual spaces per TAB
set softtabstop=4 " number of spaces in tab when editing
set expandtab " tabs are spaces
set cursorline " highlight current line
set incsearch " search as characters are entered
set hlsearch " highlight matches
set lazyredraw " redraw only when we need to.
set showmatch " highlight matching [{()}]
set number " show line numbers
set laststatus=2 " display status line
" vim-plug
let g:vim_plug_home = '/usr/local/share/vim/bundle'
execute 'source ' . g:vim_plug_home . '/autoload/plug.vim'
call plug#begin(g:vim_plug_home . '/plugged')
Plug 'whatyouhide/vim-gotham'
call plug#end()
map <F1> :set nonumber!<CR>
map <F2> :NERDTreeToggle<CR>
map <F3> :AirlineToggle<CR>
" jump half-page up/down and cursor middle
nnoremap <C-d> <C-d>zz
nnoremap <C-u> <C-u>zz
try
colorscheme gotham256
catch /^Vim\%((\a\+)\)\=:E185/
colorscheme default
set background=dark
endtry
let g:airline_theme='gotham256'