-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
63 lines (51 loc) · 1.35 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
set nocompatible
set shell=bash
set fileformats=unix
" Set up the window.
filetype plugin indent on
syntax on
set hls
set laststatus=2
set mouse=a
set number
set wildmenu
set splitbelow
" Set up tabs and whitespace display.
set autoindent
set expandtab
set list listchars=tab:»·,trail:·
set shiftwidth=4
set tabstop=4
" Deal with line width.
set colorcolumn=80
set textwidth=79
" Custom mappings.
nnoremap <C-n> :bnext<CR>
nnoremap <C-p> :bprev<CR>
nnoremap Y y$
imap <Nul> <C-space>
inoremap <C-space> <C-n>
" Load MatchIt for traversing `do` / `end` blocks &c with the % key.
runtime macros/matchit.vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Set up Pathogen for managing extensions.
runtime bundle/vim-pathogen/autoload/pathogen.vim
call pathogen#infect()
Helptags
" Configure CtrlP.
let g:ctrlp_map = '<C-o>'
let g:ctrlp_working_path_mode=0
" Configure EasyMotion.
let g:EasyMotion_leader_key = '<Leader>'
" Configure rainbow parentheses.
autocmd FileType clojure RainbowParenthesesToggle
autocmd FileType clojure RainbowParenthesesLoadSquare
autocmd FileType clojure RainbowParenthesesLoadBraces
" Configure Slime.
let g:slime_target = "tmux"
let g:slime_default_config = {"socket_name": "default", "target_pane": "1"}
" Configure Solarized.
let g:solarized_menu=0
set t_Co=256
set background=dark
colorscheme solarized