/* Tab-Completion */ format fix
This commit is contained in:
parent
fc37919d32
commit
9ec21725eb
3
Vim.mw
3
Vim.mw
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user