-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
79 lines (70 loc) · 2.42 KB
/
.vimrc
File metadata and controls
79 lines (70 loc) · 2.42 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
set shiftwidth=4
"set textwidth=80
set softtabstop=4
set tabstop=4
set expandtab
set ignorecase
set enc=UTF-8
syntax on
if has("autocmd")
filetype indent on
endif
set showcmd
set showmatch
set nohlsearch
set foldenable
set foldlevel=0
set foldmethod=indent
set incsearch
set undofile
set undodir=~/.vim/undodir
set modeline
:let g:html_tag_case='lowercase'
" make sure certain file formats are adhered to
au BufNewFile,BufRead dhandler setf mason
au BufNewFile,BufRead autohandler setf mason
au BufNewFile,BufRead *.html setf mason
au BufNewFile,BufRead syshandler setf perl
au BufNewFile,BufRead *.coffee setf coffee
" skeleton files
au BufNewFile *.py 0r ~/.vim/skel/pythonscript.vim
au BufNewFile *.pl 0r ~/.vim/skel/perlscript.vim
au BufNewFile *.pm 0r ~/.vim/skel/perlmodule.vim
au BufNewFile *.xsl 0r ~/.vim/skel/xslt.vim
au BufNewFile *.xslt 0r ~/.vim/skel/xslt.vim
au BufNewFile *.xml 0r ~/.vim/skel/xml.vim
au BufNewFile dhandler 0r ~/.vim/skel/dhandler.vim
au BufNewFile syshandler 0r ~/.vim/skel/syshandler.vim
au BufNewFile autohandler 0r ~/.vim/skel/autohandler.vim
au FileType yaml setlocal tabstop=2 expandtab shiftwidth=2 softtabstop=2
au FileType javascript setlocal tabstop=2 expandtab shiftwidth=2 softtabstop=2
"au FileType javascript setlocal tabstop=2 expandtab shiftwidth=2 softtabstop=2
autocmd FileType html setlocal shiftwidth=4 tabstop=4
" Protect large files from sourcing and other overhead.
" Files become read only
if !exists("my_auto_commands_loaded")
let my_auto_commands_loaded = 1
" Large files are > 10M
" Set options:
" eventignore+=FileType (no syntax highlighting etc
" assumes FileType always on)
" noswapfile (save copy of file)
" bufhidden=unload (save memory when other file is viewed)
" buftype=nowritefile (is read-only)
" undolevels=-1 (no undo possible)
let g:LargeFile = 1024 * 1024 * 10
augroup LargeFile
autocmd BufReadPre * let f=expand("<afile>") | if getfsize(f) > g:LargeFile | set eventignore+=FileType | syntax off | setlocal foldmethod=manual | else | set eventignore-=FileType | endif
augroup END
endif
" display all empty lines, and tabs
set listchars=tab:>-,trail:·
set bg=dark
" pick up my aliases
set shell=zsh\ -l
abbrev pdb import pdb; pdb.set_trace()
abbrev inspect import code; code.interact(local=dict(globals(), **locals()))
syn match loneNext "^\s*next\s*$"
hi def link loneNext Error
syn match techDebt "DEBT"
hi def link techDebt Error