From 2ac808bc739126eaf8957c87221e2db8d98580d0 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Mon, 5 May 2008 18:37:35 -0500 Subject: formatting --- vimrc | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index ecbc606..32d096f 100644 --- a/vimrc +++ b/vimrc @@ -15,7 +15,7 @@ set autoread " Gentoo disables modelines by default set modeline -"}}} +" }}} " Display {{{ " color! syntax on @@ -110,7 +110,7 @@ let postscr_fonts=1 let postscr_encodings=1 " }}} " }}} -"}}} +" }}} " Improve power of commands {{{ " backspace over autoindent, end of line (to join lines), and preexisting test set backspace=indent,eol,start @@ -135,7 +135,7 @@ set dictionary+=/usr/share/dict/words " complete from the dictionary also set complete+=k -"}}} +" }}} " Make vim less whiny {{{ " :bn with a change in the current buffer? no prob! set hidden @@ -148,7 +148,7 @@ set confirm " 50 milliseconds for escape timeout instead of 1000 set ttimeoutlen=50 -"}}} +" }}} " Indentation {{{ " normal sized tabs! set tabstop=8 @@ -176,12 +176,12 @@ set cinoptions+=b1,:0,l1,g0,(0,W1 " reindent whenever 'break;' is typed set cinkeys+==break; -"}}} +" }}} " Folding {{{ " fold only when I ask for it damnit! set foldmethod=marker -"}}} -"}}} +" }}} +" }}} " Colors {{{ colorscheme peachpuff " word completion menu {{{ @@ -191,26 +191,26 @@ highlight PmenuSbar ctermbg=cyan highlight PmenuThumb ctermfg=red highlight WildMenu ctermfg=grey ctermbg=darkblue -"}}} +" }}} " folding {{{ highlight Folded ctermbg=black ctermfg=darkgreen -"}}} +" }}} " hlsearch {{{ highlight Search NONE ctermfg=red -"}}} +" }}} " color end of line whitespace {{{ autocmd InsertEnter * syn clear EOLWS | syn match EOLWS excludenl /\s\+\%#\@!$/ autocmd InsertLeave * syn clear EOLWS | syn match EOLWS excludenl /\s\+$/ hi EOLWS ctermbg=red " }}} -"}}} +" }}} " Autocommands {{{ " When editing a file, always jump to the last cursor position {{{ autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif -"}}} +" }}} " Skeletons {{{ autocmd BufNewFile *.pl silent 0read ~/.vim/skeletons/perl.pl | normal Gdd autocmd BufNewFile *.pm silent 0read ~/.vim/skeletons/perl.pm | exe 'normal 4G' | silent :.s/Foo/\=expand("%")/ | silent :.s#lib/## | silent :.s#/#::#g | silent :.s/.pm;/;/ | normal Gdd2k @@ -219,22 +219,22 @@ autocmd BufNewFile *.c silent 0read ~/.vim/skeletons/c.c | normal Gddk autocmd BufNewFile *.tex silent 0read ~/.vim/skeletons/tex.tex | normal Gddk autocmd BufNewFile Makefile silent 0read ~/.vim/skeletons/Makefile | normal Gddgg$ autocmd BufNewFile Makefile.PL silent 0read ~/.vim/skeletons/Makefile.PL | normal Gdd6G$ -"}}} +" }}} " Auto +x {{{ au BufWritePost *.{sh,pl} silent exe "!chmod +x %" -"}}} +" }}} " Perl :make does a syntax check {{{ autocmd FileType perl setlocal makeprg=$VIMRUNTIME/tools/efm_perl.pl\ -c\ %\ $* autocmd FileType perl setlocal errorformat=%f:%l:%m autocmd FileType perl setlocal keywordprg=perldoc\ -f -"}}} +" }}} " Latex :make converts to pdf {{{ autocmd FileType tex setlocal makeprg=~/bin/latexpdf\ --show\ % " }}} " Lua needs to have commentstring set {{{ autocmd FileType lua setlocal commentstring=--%s " }}} -"}}} +" }}} " Remappings {{{ " Change the completion function easily {{{ nmap \cn :call SuperTabSetCompletionType("< C-P>") @@ -273,7 +273,7 @@ function s:spell() endfunction map :call spell() imap :call spell() -"}}} +" }}} " Arrow keys {{{ map gk map gj @@ -286,7 +286,7 @@ imap g " }}} " Hit in insert mode after a bad paste (thanks absolon) {{{ inoremap u:set paste.:set nopastegi -"}}} +" }}} " Miscellaneous {{{ " have Y behave analogously to D rather than to dd nmap Y y$ @@ -303,7 +303,7 @@ nmap \n :set invnumber " manually resync the syntax highlighting nmap \s :syntax sync fromstart " }}} -"}}} +" }}} " Plugin settings {{{ " Enhanced Commentify {{{ let g:EnhCommentifyBindInInsert = 'No' -- cgit v1.2.3-54-g00ecf