-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
69 lines (52 loc) · 1.73 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
63
64
65
66
67
68
69
call plug#begin()
" sensible defaults
Plug 'tpope/vim-sensible'
" pulling in colorschemes
Plug 'flazz/vim-colorschemes'
" for javascript editing (but not exclusively)
Plug 'jelera/vim-javascript-syntax'
Plug 'pangloss/vim-javascript'
Plug 'othree/html5.vim'
" miscellaneous development plugins
Plug 'nathanaelkane/vim-indent-guides'
Plug 'Raimondi/delimitMate'
Plug 'scrooloose/syntastic'
" for vim-orgmode
Plug 'tpope/vim-speeddating'
" command-t
Plug 'wincent/command-t'
call plug#end()
set t_Co=256
set background=dark
colorscheme distinguished
imap <C-CR> <CR><Esc>O
set hlsearch
set number
set relativenumber
" This does what it says on the tin. It will check your file on open too, not
" just on save.
" " You might not want this, so just leave it out if you don't.
" let g:syntastic_check_on_open=1
" syntastic errors to ignore.
let g:syntastic_html_tidy_ignore_errors=[" proprietary attribute \"ng-", " proprietary attribute \"ui-sortable\""]
let g:syntastic_disabled_filetypes=['html']
" Command-T
" Ignore bower components and npm modules when indexing
let g:CommandTWildIgnore=&wildignore . ",**/bower_components/*,**/node_modules/*,**/dist/*"
let mapleader=","
autocmd FileType javascript setlocal shiftwidth=2 tabstop=2
autocmd FileType html setlocal shiftwidth=2 tabstop=2
:nnoremap <F5> :buffers<CR>:buffer<Space>
" Put plugins and dictionaries in this dir (also on Windows)
let vimDir = '$HOME/.vim'
let &runtimepath.=','.vimDir
" Keep undo history across sessions by storing it in a file
if has('persistent_undo')
let myUndoDir = expand(vimDir . '/undodir')
" Create dirs
call system('mkdir ' . vimDir)
call system('mkdir ' . myUndoDir)
let &undodir = myUndoDir
set undofile
endif
set listchars+=eol:$,space:.