-
Notifications
You must be signed in to change notification settings - Fork 2
/
vimrc
53 lines (50 loc) · 2.64 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
" colors
syntax on
" set t_Co=256
filetype plugin indent on
" settings
set nocompatible " don't hack around for vi compatiblity
"set mouse=a " because i'm lame
set nu " line numbers
set backup " do backups
set backupdir=~/.vimbackup " put backups in one place
set directory=~/.vimtmp " put tmp files in one place
set dir=~/.vimtmp " for backup swaps
set noswapfile " wait wat
set hidden " hide buffers, rather than closing them
set modelines=0 " don't allow modelines
set smartindent " let vim indent for you
set smarttab " let vim tab
set autoindent " always set autoindenting on
set copyindent " copy the previous indent on autoindenting
set tabstop=2 " two-space tabs
set shiftwidth=2 " two-space tabs
set expandtab " use spaces for tabs
set incsearch " show search matches while you type
set ignorecase " ignore case when searching
set smartcase " ignore search case if all lowercase
set hlsearch " highlight search terms
set gdefault " default to global replace
set virtualedit=all " free cursor mode
set wrap! " no wordwrap
set backspace=eol,start,indent " allow backspace to delete linebreaks
set scrolloff=10 " have 3 lines of offset (or buffer) when scrolling
set sidescroll=10 " 3 line buffer horizontally as well
set wildmenu " make tab completion for files/buffers act like bash
set wildmode=list:full " show a list when pressing tab and complete first full match
set pastetoggle=<F2> " toggle paste indentation w/ F2
set clipboard+=unnamed " share clipboard
set clipboard=unnamed " please work
set more " page on extended output
set ttyfast " smoother redraws
set lazyredraw " do not redraw while executing macros
set showcmd " show command being typed
set tags=~/.tags " grab tags directory, all the way up to root
set title " set the title
set shortmess=at " eliminate annoying 'Press ENTER or type command to continue' notices
set list listchars=tab:>-,trail:-
set runtimepath^=~/.vim/bundle/ctrlp.vim
" replaces %/ with current directory, and %% with current file
cmap %/ <C-R>=expand("%:p:h")."/"<CR>
cmap %% <C-R>=expand("%")<CR>
inoremap <C-tab> <Esc><<i