]> 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:

disable supertab by default, enable it only for mail
authormartin f. krafft <madduck@madduck.net>
Tue, 10 Feb 2009 12:33:27 +0000 (13:33 +0100)
committermartin f. krafft <madduck@madduck.net>
Tue, 10 Feb 2009 12:33:27 +0000 (13:33 +0100)
.vim/ftplugin/mail.vim
.vimrc

index e7164136963f355bea667fb9bda5db6b8eaa0a8f..87e913c1d547f7f6e341bfa4a2dda15c4205195e 100644 (file)
@@ -74,8 +74,10 @@ set completefunc=LBDBCompleteFn
 
 " And this magic by James Vega, which ensures that we only complete with lbdb
 " on the recipient lines of the mail header.
-ino <expr> <C-n> DelegateCompletion(1)
-ino <expr> <C-p> DelegateCompletion(0)
+inoremap <expr> <C-n> DelegateCompletion(1)
+inoremap <expr> <Tab> DelegateCompletion(1)
+inoremap <expr> <C-p> DelegateCompletion(0)
+inoremap <expr> <S-Tab> DelegateCompletion(0)
 
 fun! DelegateCompletion(next)
   if getline('.') =~? '^\%(To\|B\=Cc\):'
diff --git a/.vimrc b/.vimrc
index 779375b91756852ba7afb3dc389bb540a1db7614..176cf78195cdeadea563c275c9f700251b177a2a 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -1514,3 +1514,6 @@ let &cpo=s:cpo_save
 unlet s:cpo_save
 
 source $HOME/.vim/macros/table.vim
+
+let g:SuperTabMappingForward = '<nul>'
+let g:SuperTabMappingBackward = '<s-nul>'