/* Tab-Completion */ format fix

This commit is contained in:
Sven 2006-02-07 19:09:14 +00:00
parent fc37919d32
commit 9ec21725eb

3
Vim.mw
View File

@ -1,5 +1,5 @@
=Tab-Completion=
<pre>
function InsertTabWrapper(direction) " automagically decide what to do with <tab>
let col = col('.') -1 " <s-tab> in insert mode
if !col
@ -16,3 +16,4 @@ endfunction
inoremap <tab> <c-r>=InsertTabWrapper(1)<cr>
inoremap <s-tab> <c-r>=InsertTabWrapper(-1)<cr>
</pre>