forked from pivotalforks/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
53 lines (41 loc) · 2.11 KB
/
vimrc
File metadata and controls
53 lines (41 loc) · 2.11 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
" ----------
" Vim Config
" ----------
"
"
" How this works:
"
" This file is minimal. Most of the vim settings and initialization is in
" several files in .vim/init. This makes it easier to find things and to
" merge between branches and repos.
"
" Please do not add configuration to this file, unless it *really* needs to
" come first or last, like Pathogen and sourcing the machine-local config.
" Instead, add it to one of the files in .vim/init, or create a new one.
" Pathogen (This must happen first.)
" --------
filetype off " Avoid a Vim/Pathogen bug
call pathogen#helptags()
call pathogen#runtime_append_all_bundles()
set nocompatible " Don't maintain compatibility with vi
syntax on " Highlight known syntaxes
filetype plugin indent on
" Source initialization files
" ---------------------------
runtime! init/**.vim
" Machine-local vim settings - keep this at the end
" --------------------------
au BufNewFile,BufRead *.less set filetype=less
silent! source ~/.vimrc.local
let NERDTreeShowHidden=1
set nofoldenable
set guifont=Menlo\ Regular:h12
set nohls
imap <D-N> it { should accept_nested_attributes_for :
imap <D-M> it { should allow_mass_assignment_of :
imap <D-V> it { should validate_
imap <D-O> <ESC>o
imap <D-P> <SPACE><Left><ESC>pi<Right><Right><BS>
let g:syntastic_html_tidy_ignore_errors = [ '<form> lacks "action" attribute', 'trimming empty <i>', 'trimming empty <li>', 'unescaped & which should be written as &', '<form> proprietary attribute "novalidate"', '<input> proprietary attribute "required"', '<tags-input> is not recognized!', 'trimming empty <tags-input>', 'discarding unexpected <tags-input>', 'discarding unexpected </tags-input>', '<fb:login-button> is not recognized!', 'discarding unexpected <fb:login-button>', 'discarding unexpected </fb:login-button>', '<div> attribute "id" has invalid value ', '<a> escaping malformed URI reference', '<textarea> proprietary attribute "placeholder"', 'trimming empty <span>', '<img> escaping malformed URI reference', '<img> lacks "src" attribute']
command! W w|call system('touch -m .')
set cc=80