-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
62 lines (42 loc) · 2.65 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
set nocompatible " Don't run in VI compatability mode (MUST COME FIRST)
" Load pathogen for plugin management
runtime bundle/pathogen/autoload/pathogen.vim
silent! call pathogen#infect()
" silent! call pathogen#helptags()
set showcmd " Display incomplete commands.
set showmode " Display the mode you're in.
set backspace=indent,eol,start " Intuitive backspacing.
set hidden " Handle multiple buffers better.
set wildmenu " Enhanced command line completion.
set wildmode=list:longest " Complete files like a shell.
set ignorecase " Case-insensitve searching.
set smartcase " But case-sensitive if expression contains a capital letter.
set incsearch " Highlight matches as you type.
set hlsearch " Highlight matches.
set nowrap " Turn off line wrapping.
set scrolloff=3 " Show 3 lines of context around the cursor.
set title " Set the terminal's title.
set visualbell " No Beeping.
set nobackup " Don't make a backup before overwriting a file.
set nowritebackup " And again.
set directory=$HOME/.vim/tmp//,. " Keep swap files in one location
set noswapfile " Turn off swap files
set tabstop=2 " Global tab width.
set shiftwidth=2 " and again, related.
set expandtab " Use spaces instead of tabs.
set number " Display line numbers.
set laststatus=2 " Show that status line all the time.
set statusline=[%n]\ %<%.99f\ %h%w%m%r%y\ %{fugitive#statusline()}\ %{exists('g:loaded_rvm')?rvm#statusline():''}%{exists('*CapsLockStatusline')?CapsLockStatusline():''}%=%-16(\ %l,%c-%v\ %)%P
syntax enable " Turn on syntax highlighting.
set background=dark " Set background.
colorscheme ir_black " Color scheme.
filetype plugin indent on " Turn on file type detection.
" retag ctags for project and gems
map <Leader>rt :!/usr/local/bin/ctags --extra=+f --exclude=.git --exclude=test --exclude=*.html --exclude=*.haml --exclude=Makefile --exclude=*.min.js --exclude=*.css --exclude=*.sass --exclude=*.yml --exclude=Rakefile --exclude=tmp --exclude=spec --exclude=Gemfile --exclude=Gemfile.lock --exclude=README --exclude=log -R * `bundle show rails`/../*<CR><CR>
" flush command-t cash
map <Leader>ct :CommandTFlush<CR><CR>
" tagbar toggle display
map <Leader>f :TagbarToggle<CR><CR>
" change zencoding default expansion
let g:user_zen_expandabbr_key = '<c-e>'
let g:use_zen_complete_tag = 1