-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
101 lines (90 loc) · 2.03 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
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
" Basics
set nocompatible
filetype off
call pathogen#runtime_append_all_bundles()
set ignorecase smartcase
set virtualedit=all
set textwidth=75
set formatoptions=qrn1
syntax enable
filetype plugin on
filetype plugin indent on
set backup
set hidden
set ttyfast
set autochdir
set writebackup
set undofile
set backupdir=~/Documents/backups/
set shortmess=aOstT
set backspace=start,eol,indent
set directory=~/.tmp/
" Indent
set autoindent
set tabstop=2
set shiftwidth=2
set expandtab
set smartindent
" Display
set incsearch
set nowrap
set scrolloff=3
set sidescroll=10
set hlsearch
set gdefault
set noerrorbells
"set visualbell t_vb=
set novisualbell
set showcmd
set showmode
set ruler
set number
set shiftround
set showmatch
set relativenumber
" Statusline
set laststatus=2
set statusline=%n " buffer number
set statusline+=\ %-t " tail of filename
set statusline+=\ [%{strlen(&fenc)?&fenc:'none'}, " file encoding
set statusline+=\ %{&ff}] " file format
set statusline+=\ %m%r%h%w%y " flags
set statusline+=\ [%l,%v:%L] " line:column
set statusline+=\ %P " percent
" GUI
if has("gui_running")
"set transp=8
set gfn=Inconsolata\ Medium\ 9
set anti
"set fuoptions=maxvert,maxhorz
endif
set cursorline
colorscheme zenburn
" Folding
set foldenable
set foldmethod=syntax
set foldlevel=100
" Plugins
set wildmenu
let b:delimitMate_expand_cr = 1
let b:delimitMate_expand_space = 1
let g:SuperTabDefaultCompletionType = 'context'
let g:tex_flavor='latex'
set grepprg=egrep\ -nH\ $*
" Mappings
let mapleader = ","
noremap <Space> <C-F>
noremap <S-Space> <C-B>
nnoremap <F2> <ESC>:TlistToggle<RETURN>
nnoremap / /\v
vnoremap / /\v
nnoremap <tab> %
vnoremap <tab> %
inoremap <F1> <ESC>
nnoremap <F1> <ESC>
vnoremap <F1> <ESC>
nnoremap ; :
nnoremap <leader><space> :noh<cr>
nnoremap <leader>, :TlistToggle<RETURN>
inoremap jj <ESC>
autocmd BufRead,BufNewFile *.lisp,*.cl,*.clj runtime plugin/rainbowparen.vim