3 filetype plugin indent on
11 set wildmode=longest,list,full
24 let &l:shiftwidth = l:width
25 let &l:softtabstop = l:width
27 command! T setlocal noexpandtab shiftwidth=8 softtabstop=0
28 command! -nargs=? S call Spaces(<args>)
29 autocmd BufNewFile,BufRead */linux-2.6/* T
30 autocmd FileType html S 2
33 let &t_ti = &t_ti . "\e[?2004h"
34 let &t_te = "\e[?2004l" . &t_te
35 function XTermPasteBegin(ret)
36 set pastetoggle=<Esc>[201~
40 map <expr> <Esc>[200~ XTermPasteBegin("i")
41 imap <expr> <Esc>[200~ XTermPasteBegin("")
44 let g:debchangelog_fold_enable = 1
45 let g:debcontrol_fold_enable = 1
46 let g:jxml_syntax_folding = 1
47 au FileType xml setlocal foldmethod=syntax
49 hi link localWhitespaceError Error
50 au Syntax * syn match localWhitespaceError /\(\zs\%#\|\s\)\+$/ display
51 au Syntax * syn match localWhitespaceError / \+\ze\t/ display
53 function! s:headertemplate(name)
54 let guard=toupper(substitute(substitute(a:name, '[^[:alnum:]]', '_', 'g'), '^[^[:alpha:]]', '_&', ''))
55 return "#ifndef " . guard . "\n#define " . guard . "\n\n\n\n#endif /* " . guard . " */"
57 au BufNewFile *.h s@^$@\=s:headertemplate(expand('<afile>'))@ | 4
59 iabbrev jj Josh Triplett and Jamey Sharp
60 iabbrev cjj Commit by Josh Triplett and Jamey Sharp
63 autocmd BufRead *.mkd set ai wrapmargin=10 spell formatoptions=tcroqn2 comments=n:>;