-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
80 lines (54 loc) · 2.62 KB
/
vimrc
File metadata and controls
80 lines (54 loc) · 2.62 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
76
77
78
79
80
" Example Vim configuration.
" Copy or symlink to ~/.vimrc or ~/_vimrc.
call pathogen#infect()
set nocompatible " Must come first because it changes other options.
" silent! call pathogen#runtime_append_all_bundles()
syntax enable " Turn on syntax highlighting.
filetype plugin indent on " Turn on file type detection.
set history=10000 " Keep a decent history
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 smartcase " But case-sensitive if expression contains a capital letter.
set noignorecase " Case-sensitive searching
set number " Show line numbers.
set ruler " Show cursor position.
set showmatch " Show matching brackets
set incsearch " Highlight matches as you type.
set hlsearch " Highlight matches.
set ignorecase smartcase " make searches case-sensitive only if they contain upper-case characters
set scrolloff=3 " Show 3 lines of context around the cursor.
" Prevent Vim from clobbering the scrollback buffer. See
" http://www.shallowsky.com/linux/noaltscreen.html
set t_ti= t_te=
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
" UNCOMMENT TO USE
set tabstop=2 " Global tab width.
set shiftwidth=2 " And again, related.
set expandtab " Use spaces instead of tabs
set laststatus=2 " Show the status line all the time
" TODO customise this further so that I can choose colorschemes easily
set background=dark
" colorscheme solarized
source ~/.vim/global.vim
source ~/.vim/bindings.vim
source ~/.vim/plugins.vim
if filereadable(expand("~/.vim_local"))
source ~/.vim_local
endif
if filereadable(expand("~/.vim/cucumber_tables.vim"))
source ~/.vim/cucumber_tables.vim
endif
if filereadable(expand("~/.vim/ruby.vim"))
source ~/.vim/ruby.vim
endif
if filereadable(expand("~/.vim/mime_types.vim"))
source ~/.vim/mime_types.vim
endif