-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
75 lines (59 loc) · 1.75 KB
/
Copy pathvimrc
File metadata and controls
75 lines (59 loc) · 1.75 KB
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
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin()
" let Vundle manage Vundle
" required!
Plugin 'VundleVim/Vundle.vim'
" My Bundles here:
"
" original repos on github
Plugin 'tpope/vim-fugitive'
Plugin 'Lokaltog/vim-easymotion'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'tpope/vim-rails.git'
Plugin 'henrik/vim-open-url'
Plugin 'airblade/vim-gitgutter'
Plugin 'airblade/vim-rooter'
" vim-scripts repos
Plugin 'L9'
" non github repos
Plugin 'altercation/vim-colors-solarized'
call vundle#end()
filetype plugin indent on " required!
" relative line numbers
Plugin 'myusuf3/numbers'
nnoremap <F3> :NumbersToggle<CR>
nnoremap ; :NERDTreeToggle<CR>
Plugin 'https://github.com/scrooloose/nerdtree'
" Tabs, Spaces and Indentation.
set expandtab " Use spaces for tabs.
set tabstop=2 " Number of spaces to use for tabs.
set shiftwidth=2 " Number of spaces to autoindent.
set softtabstop=2 " Number of spaces for a tab.
set autoindent " Set autoindenting on.
set smartindent " Automatically insert another level of indent when needed.
" colors, etc.
syntax on
if has('gui_running')
set background=dark
endif
colorscheme solarized
" Make jj exit insert mode (since it's almost never typed normally).
imap jj <Esc>:w<CR>
" quiet down
set visualbell
" tab-completion for commands
set wildmenu
set wildmode=longest,list,full
" crontab
" http://tim.theenchanter.com/2008/07/crontab-temp-file-must-be-edited-in.html
set backupskip=/tmp/*,/private/tmp/*
" vim-airline
Plugin 'bling/vim-airline'
set laststatus=2
" F5 to insert current date/time
:nnoremap <F5> "=strftime("%FT%T")<CR>P
:inoremap <F5> <C-R>=strftime("%FT%T")<CR>
set incsearch
autocmd BufWritePost * execute ':silent ! if [ -d .git -a -f todo.txt ]; then git commit -a -m %; fi'