]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

merge words
authormartin f. krafft <madduck@madduck.net>
Sat, 5 Sep 2009 10:06:05 +0000 (12:06 +0200)
committermartin f. krafft <madduck@madduck.net>
Sat, 5 Sep 2009 10:08:25 +0000 (12:08 +0200)
.vim/colors/madduck.vim
.vim/ftplugin/tex.vim
.vim/spell/en.utf-8.add
.vimrc

index 6d62396d41b2e53da38298e3fd76189056942899..3947d39494c6d7c17ab37127e55dfd1089ac1b21 100644 (file)
@@ -56,7 +56,7 @@ else
   hi mailQuoted5            ctermfg=darkmagenta
   hi mailQuoted6            ctermfg=darkgreen
 
-  hi Error      ctermfg=White       ctermbg=Red     cterm=reverse   term=reverse
+  hi Error     ctermfg=White       ctermbg=Red     cterm=none   term=none
   hi Todo      ctermfg=Black       ctermbg=Yellow  cterm=standout  term=standout
 
   hi SpellBad          ctermfg=white   ctermbg=darkred cterm=none      term=reverse
index 4e3bb1e0c49bdc6fb6de28ff20d450d85349c380..7d3361fff774242bc95a3b7faaa93476695e8667 100644 (file)
@@ -1,3 +1,5 @@
 let Tex_UsePython = 1
 
 let Tex_FoldedMisc = "preamble,<<<"
+
+"let g:Imap_UsePlaceHolders = 0
index e6048106e41c97c9233fd55b5b503274d5a5f449..56a3f851d8817fa3f4cd3ae3655781c5f58d0d74 100644 (file)
@@ -1,83 +1,88 @@
-pleonastic
-Tarde's
-pleonastic
+ADSL
+Ajzen
+Akkerman
+alioth
+alright
+anonymise
+anonymised
+anonymising
+autotools
 B
-S
+blog
+blogged
+bo
+Boehm
+BTS
+c0ffee
+changelog
 cosmopolite
-trialable
-learnable
-Homophily
-homophilous
-Trialability
 cosmopoliteness
+deadbeef
+debhelper
+debian
 Debian
-Slackware
+Debianisation
+debianised
 Debian's
+Delphis
+devel
+diff
+dpkg
+EFTE
+Farquhar
+Fishbein
+freenode
+Genericity
 hamm
-debian
-mdadm
-svn
-blogged
-blog
+heterophilous
+heterophily
+Heterophily
+homophilous
+homophily
+Homophily
+iff
+IRC
+Jun
+learnable
+lenny
+Likert
+lintian
+localite
 madduck
-vcs
-upstream's
-ADSL
-diff
-snapshotted
-debianised
-Debianisation
-changelog
-screenshot
+mdadm
 namespace
+oldstable
+panelist
+panelists
+peercolation
+Peercolation
+phd
+pkg
+pleonastic
+RC
 rebase
-rebasing
-alright
-alioth
-iff
 rebases
-workflow
-lenny
-deadbeef
-c0ffee
-tarballs
-dpkg
-BTS
-freenode
-IRC
+rebasing
 rex
-bo
-Troup
+s
+S
 Schulze
-Wichert
-Akkerman
-RC
-oldstable
+screenshot
+Slackware
+snapshotted
+svn
 tarball
+tarballs
+Tarde's
+tesseract
+trialability
 Trialability
-Fishbein
-Ajzen
-workflows
-homophily
-Heterophily
-heterophilous
-heterophily
-localite
-Debian
-EFTE
-anonymised
-Delphis
-Farquhar
-Boehm
-s
-vi
-devel
-pkg
-panelists
-anonymise
-panelist
-anonymising
-Jun
-Likert
+trialable
+Troup
 Ubuntu
-peercolation
+upstream's
+vcs
+vi
+Wichert
+workflow
+workflows
diff --git a/.vimrc b/.vimrc
index 176cf78195cdeadea563c275c9f700251b177a2a..2855c1c8353e597dce953d795ae786503065b455 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -1108,6 +1108,7 @@ set dir=.,$TMPDIR//,/var/tmp//,/tmp//
 " updatetime
 " time in msec after which the swap file will be updated
 "       set ut=4000
+set ut=10000
 
 " maxmem
 " maximum amount of memory in Kbyte used for one buffer
@@ -1450,14 +1451,28 @@ autocmd BufNewFile,BufRead /etc/logcheck/*.d*/* set tw=0
 autocmd BufNewFile,BufRead /home/madduck/debian/pkg/logcheck/*/rulefiles/linux/*.d*/* set tw=0
 
 " jump to last known position in file (:he last-position-jump)
-autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"zz" | endif
+autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g`\"zz" | endif
+
+" leave the w mark whenever a file is written
+autocmd BufWrite * normal mw
+
+" leave the i mark whenever we go idle (after updatetime)
+augroup markidle
+  autocmd CursorHold * normal mi
+  "autocmd CursorHoldI * normal mi "DISABLED while broken (shifts left)
+augroup end
 
 " disable list mode when inserting stuff, otherwise keep it enabled, it's
-" useful
+" useful (see also setting lcs)
 augroup listinsert
   autocmd InsertEnter * set nolist
   autocmd InsertLeave * set list
 augroup end
+" flag trailing spaces as error only when not inserting
+augroup tsperrorinsert
+  autocmd InsertEnter * match none /\s\+$/
+  autocmd InsertLeave * match Error /\s\+$/
+augroup end
 
 if &cp | set nocp | endif
 let s:cpo_save=&cpo
@@ -1495,6 +1510,11 @@ map <Leader>sy :echo synIDattr(synID(line("."), col("."), 1), "name")<CR>
 
 map <Leader>/ :nohlsearch<CR>
 
+omap [{ :normal {jj<CR>
+nmap [{ :normal {jj<CR>
+omap ]} :normal }kk<CR>
+nmap ]} :normal }kk<CR>
+
 iab sgf Sehr geehrte Frau
 iab sgh Sehr geehrter Herr
 iab lf Liebe Frau
@@ -1509,6 +1529,10 @@ iab mbbg Mit bundesbrüderlichen Grüßen
 iab mvbg Mit verbandsbrüderlichen Grüßen
 iab vd Vielen Dank
 iab vld Vielen lieben Dank
+iab email e-mail
+iab emails e-mails
+iab Email E-mail
+iab Emails E-mails
 
 let &cpo=s:cpo_save
 unlet s:cpo_save