-
Notifications
You must be signed in to change notification settings - Fork 0
/
gvimrc
39 lines (30 loc) · 868 Bytes
/
gvimrc
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
" macVim keeps themes at: /Applications/MacVim.app/Contents/Resources/vim/runtime/colors
" macVim loads these in order ~/.vimrc, ~/.gvimrc
syntax enable
" Show ruler for 80 chars
:set colorcolumn=80
" Auto change directory to current (helps ctrlp to index only whats needed)
:se autochdir
" Turn off the left / right scrollbars
:set guioptions-=L
:set guioptions-=R
:set guioptions-=r
:set guioptions-=l
" Solarized theme config
set background=dark
" let g:solarized_visibility = "high"
let g:solarized_contrast = "high"
colorscheme solarized
" Load with cursor column enabled
:set cursorcolumn
" Toggle the cursor column highlighting
function! CursorColumnToggle()
if &cursorcolumn
set nocursorcolumn
else
set cursorcolumn
endif
endfunction
" Bind ',cc' to toggle cursorcolumn
let mapleader = ","
nmap <leader>cc :call CursorColumnToggle()<cr>