-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
111 lines (90 loc) · 3.2 KB
/
vimrc
File metadata and controls
111 lines (90 loc) · 3.2 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
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
101
102
103
104
105
106
107
108
109
110
let mapleader = ','
let localleader = '\\'
runtime bundle/vim-pathogen/autoload/pathogen.vim
execute pathogen#infect()
colorscheme flatlandia
syntax on
filetype plugin indent on
set number
set wildmode=full
set cindent
set shiftwidth=2
set expandtab
set incsearch
set hlsearch
set cursorline
" originally highlight CursorLine term=underline ctermbg=238 guibg=#2d3033 guisp=#36393c
highlight CursorLine term=underline ctermbg=238 guibg=#4C4C4C guisp=#36393c
" highlight Cursor guifg=white guibg=darkblue
command FixTrailingSpaces %s/\s\+$//
nnoremap <Leader>0 :nohl<Enter>
nnoremap <Leader>a /<C-R><C-W><Enter>
nnoremap <Leader>s :w<Enter>
nnoremap <Leader>t :NERDTreeToggle<Enter>
nnoremap <Leader>1 :w<Enter>:bp<Enter>
nnoremap <Leader>2 :w<Enter>:bn<Enter>
nnoremap <Leader>3 :w<Enter>:bd<Enter>
imap jj <Esc>
" Ctrl-Space now omnicompletes as well
inoremap <C-Space> <C-x><C-o>
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#branch#enabled = 1
let g:airline#extensions#tabline#fnamecollapse = 0
let g:airline#extensions#tabline#buffer_nr_show = 1
let g:airline#extensions#tabline#fnamemod = ':t'
set laststatus=2 " Show the status line
if has('clipboard')
set clipboard=unnamed
endif
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
if has("gui_running")
set guitablabel=%M%t
if has("gui_gnome")
set guifont=Inconsolata\ for\ Powerline\ 14
command BigFont set guifont=Inconsolata\ for\ Powerline\ 16
command MidFont set guifont=Inconsolata\ for\ Powerline\ 14
command SmallFont set guifont=Inconsolata\ for\ Powerline\ 12
set guioptions-=m "remove menu bar
set guioptions-=T "remove toolbar
elseif has("gui_macvim")
set guifont=Inconsolata\ for\ Powerline:h18
command BigFont set guifont=Inconsolata\ for\ Powerline:h22
command MidFont set guifont=Inconsolata\ for\ Powerline:h18
command SmallFont set guifont=Inconsolata\ for\ Powerline:h16
nnoremap <Leader>f :set fullscreen<Enter>:set guioptions+=T<Enter>:set guioptions-=T<Enter>
nnoremap <Leader>F :set nofullscreen<Enter>
nnoremap <D-1> :w<Enter>:bp<Enter>
inoremap <D-1> <Esc>:w<Enter>:bp<Enter>
nnoremap <D-2> :w<Enter>:bn<Enter>
inoremap <D-2> <Esc>:w<Enter>:bn<Enter>
nnoremap <D-3> :w<Enter>:bd<Enter>
endif
endif
let g:airline_powerline_fonts = 1
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
let g:airline_symbols.branch = ''
let g:airline_symbols.readonly = ''
let g:airline_symbols.linenr = ''
if executable("ag")
set grepprg=ag\ --nogroup\ --nocolor
" add --hidden to include hidden files in ctrlp file list.
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
endif
" Tell tmux to change window names.
if &term == "screen"
autocmd BufReadPost,FileReadPost,BufNewFile * call system("tmux rename-window 'vim " . expand("%:t") . "'")
endif
" Rainbow parens
let g:rbpt_loadcmd_toggle = 0
au VimEnter * RainbowParenthesesActivate
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
" Set vim-clojure-static indentation options
let g:clojure_align_multiline_strings = 1
cd ~/projects