-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.vim
80 lines (63 loc) · 1.58 KB
/
main.vim
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
set nocompatible
set cindent
set autoindent
set noexpandtab
set tabstop=4
set shiftwidth=4
set backup
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set backupskip=/tmp/*,/private/tmp/*
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set writebackup
set number " line numbers
set showcmd
set cursorline " underline in current line
filetype indent on
set showmatch " highlight matching {[()]}
set incsearch " search as you type
set hlsearch " highlight matches
" turn off search highligh
nnoremap <leader><space> :nohlsearch<CR>
" discolor line numbers
" highlight LineNr ctermfg=grey
" remapping ; into :
nore ; :
nore , ;
" required by Vundle
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let vundle manage vundle
Plugin 'VundleVim/Vundle.vim'
" solarized colors
Plugin 'altercation/vim-colors-solarized'
Plugin 'scrooloose/nerdtree'
Plugin 'pangloss/vim-javascript'
Plugin 'vim-airline/vim-airline'
Plugin 'tpope/vim-commentary'
Plugin 'raimondi/delimitmate'
Plugin 'junegunn/limelight.vim'
Plugin 'junegunn/goyo.vim'
Plugin 'vim-scripts/nginx.vim'
Plugin 'mhinz/vim-startify'
" end vundle plugins
call vundle#end()
filetype plugin indent on
" set colorscheme
syntax enable
set background=dark
let g:solarized_visibility='low'
let g:solarized_termcolors=256
colorscheme solarized
" airline fix
let g:airline_powerline_fonts = 1
set laststatus=2
" limelight + goyo integration
autocmd! User GoyoEnter Limelight
autocmd! User GoyoLeave Limelight!
let g:limelight_conceal_ctermfg = 240
" auto search for tags
set tags=./tags
" key mappings:
" F9: make
map <F9> :make<CR>