-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot.vimrc
More file actions
40 lines (34 loc) · 1.36 KB
/
dot.vimrc
File metadata and controls
40 lines (34 loc) · 1.36 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
"" From http://mislav.uniqpath.com/2011/12/vim-revisited/
"" Note the "ln -s <this-file> ~/.vimrc" :-)
set nocompatible
syntax on
set encoding=utf-8
set showcmd " display incomplete commands
"" Whitespace
set wrap
set textwidth=80
"set nowrap " don't wrap lines
set tabstop=4 shiftwidth=4 softtabstop=4 " a tab is four spaces
set expandtab " use spaces, not tabs
set backspace=indent,eol,start " backspace through everything in insert mode
"" Searching
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
"" Enda's color
color elflord
color macvim " Setting the color to macvim is what I want to do, but
" for an unknown reason, it isn't picked up on
" its own, so I need to set and then reset it
" here.
" Show me a ruler
set ruler
set number
filetype plugin indent on " load file type plugins + indentation
filetype plugin on
" Set up puppet manifest and spec options
au BufRead,BufNewFile *.pp
\ set filetype=puppet
au BufRead,BufNewFile *_spec.rb
\ nmap <F8> :!rspec --color %<CR>