-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc_mac
100 lines (80 loc) · 2 KB
/
.vimrc_mac
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
96
97
98
99
100
set nocompatible
" vundle settings
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#rc()
" let Vundle manage Vundle
Bundle 'gmarik/vundle'
" My bundles here:
Bundle 'spolu/dwm.vim'
Bundle 'jeffkreeftmeijer/vim-numbertoggle'
Bundle 'scrooloose/nerdtree'
Bundle 'jiangmiao/auto-pairs'
Bundle 'kien/ctrlp.vim'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'kien/rainbow_parentheses.vim'
Bundle 'nathanaelkane/vim-indent-guides'
" Language specific bundles
Bundle 'scrooloose/syntastic'
Bundle 'Rip-Rip/clang_complete'
Bundle 'walm/jshint.vim'
Bundle 'jelera/vim-javascript-syntax'
" Theme bundles
Bundle 'altercation/vim-colors-solarized'
Bundle 'bling/vim-airline'
Bundle 'editorconfig/editorconfig-vim'
Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
" Bundle 'Valloric/YouCompleteMe'
" Theme settings
syntax on
set t_Co=256
set encoding=utf-8
set laststatus=2
colorscheme solarized
let g:airline_powerline_fonts = 1
let g:airline_theme="solarized"
execute "set colorcolumn=" . join(range(81,335), ',')
let g:solarized_termtrans=1
set background=dark
" Whitespace settings
set nowrap
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set smarttab
set autoindent
set smartindent
set cindent
" Indent Guides
let g:indent_guides_start_level=2
let g:indent_guides_guide_size=1
" Search settings
set hlsearch
set incsearch
set ignorecase
set smartcase
" Movement setting
set relativenumber
let g:NumberToggleTrigger="<F2>"
" NerdTree toggle
map <C-e> :NERDTreeToggle<CR>
" Enter clears search
nnoremap <CR> :noh<CR><CR>
" Clang
let g:clang_c_options = '-std=gnull'
let g:clang_cpp_options = '-std=c++ll -stdlib=libc++'
" Extra settings
set noswapfile
inoremap jk <ESC>
filetype plugin indent on
set guifont=Source\ Code\ Pro\ for\ Powerline:h19
let g:Powerline_symbols = 'fancy'
set encoding=utf-8
set t_Co=256
set fillchars+=stl:\ ,stlnc:\
set term=xterm-256color
set termencoding=utf-8
nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
set cursorline
let g:airline#extensions#tabline#enabled = 1