-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
82 lines (61 loc) · 2.48 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
set nocompatible
let g:yankring_history_dir = '$HOME/.vim/'
let g:yankring_history_file = 'yankring_history'
call pathogen#runtime_append_all_bundles()
runtime macros/matchit.vim
set wildmenu " fancy command completion menu!
" Miscellaneous Options. Values:
" a: ":read" sets window filename
" A: ":write" sets window filename
" B: backslash has no special meaning in ":map"
" c: search continues from the end of the match
" e: automatically add <CR> to the end of executed registers
" F: ":write" sets buffer filename
" s: set buffer options on entering the buffer
" W: refuse to overwrite a readonly file, even with :w!
" Z: don't reset 'readonly' when using :w!
set cpoptions=aABceFsWZ
syntax on
" Backup directory
set backupdir=~/.vim/backupfiles,/var/tmp,/tmp,.
" Swapfile directory
set directory=~/.vim/swapfiles,/var/tmp,/tmp,.
" Suffixes that get lower priority when doing tab completion for filenames.
" These are files we are not likely to want to edit or read.
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
" Text Formatting -- Specific File Formats
filetype on " enable filetype detection
filetype plugin on
filetype indent on
set scrolloff=6
" Window options
set ruler " shows cursor position in the lower right
set showcmd " shows incomplete command to the left of the ruler
set winminheight=0 " allow windows to be 0 lines tall
set winminwidth=0 " allow windows to be 0 lines wide
set laststatus=2 " always show statusline
" Uncomment the following to have Vim jump to the last position when
" reopening a file
" if has("autocmd")
" au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
" \| exe "normal g'\"" | endif
" endif
source $HOME/.vim/filetypes
source $HOME/.vim/gui
source $HOME/.vim/bindings
source $HOME/.vim/editing
set autowrite " Automatically save before commands like :next and :make
set autoread " Automatically reload
"set hidden " Hide buffers when they are abandoned
set mouse=a " Enable mouse usage (all modes) in terminals
set visualbell
" highlight clojure builtins
let g:clj_highlight_builtins=1
" Disable line numbers for :TOhtml
let g:html_number_lines = 0
let NERDSpaceDelims = 1
set tabstop=2 shiftwidth=2 expandtab
" Without setting this, ZoomWin restores windows in a way that causes
" equalalways behavior to be triggered the next time CommandT is used.
" This is likely a bludgeon to solve some other issue, but it works
set noequalalways