-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
65 lines (55 loc) · 1.73 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
" Vundle Base Configs
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline'
" Themes
Plugin 'NLKNguyen/papercolor-theme'
Plugin 'sonph/onehalf', {'rtp': 'vim/'}
call vundle#end() " required
filetype plugin indent on " required
" General
syntax on
set number " Show line numbers
set linebreak " Break lines at word (requires Wrap lines)
set showbreak=+++ " Wrap-broken line prefix
set textwidth=100 " Line wrap (number of cols)
set listchars=eol:·,tab:>·,trail:¬,extends:>,precedes:<,space:␣
set list
" Search Options
set showmatch " Highlight matching brace
set hlsearch " Highlight all search results
set smartcase " Enable smart-case search
set ignorecase " Always case-insensitive
set incsearch " Searches for strings incrementally
" Indent Options
set autoindent " Auto-indent new lines
set expandtab " Use spaces instead of tabs
set shiftwidth=2 " Number of auto-indent spaces
set smartindent " Enable smart-indent
set smarttab " Enable smart-tabs
set softtabstop=2 " Number of spaces per Tab
" Visual Settings
set ruler " Show row and column ruler information
set showtabline=2 " Show tab bar
set laststatus=2
set title
set cursorline
" General Config
set undolevels=1000 " Number of undo levels
set backspace=indent,eol,start " Backspace behaviour
" Color Customization
hi CursorLine cterm=NONE gui=NONE
hi CursorLine ctermbg=yellow
hi LineNr cterm=NONE gui=NONE
hi LineNr ctermbg=lightgray
hi CursorLineNr cterm=NONE gui=NONE
hi CursorLineNr ctermbg=yellow
" Theme Setup
set t_Co=256 " This is may or may not needed.
"set background=light
"colorscheme PaperColor
colorscheme onehalfdark
let g:airline_theme='onehalfdark'