mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-11 12:33:47 -05:00
Minor formatting
This commit is contained in:
@@ -5,7 +5,7 @@ function! s:SetBufferOptDefault(opt, val) "{{{2
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Map(map, to, mode)
|
function! s:Map(map, to, mode) "{{{2
|
||||||
if !hasmapto(a:map, a:mode)
|
if !hasmapto(a:map, a:mode)
|
||||||
for l:mode in split(a:mode, '.\zs')
|
for l:mode in split(a:mode, '.\zs')
|
||||||
execute l:mode . 'map <buffer>' a:to a:map
|
execute l:mode . 'map <buffer>' a:to a:map
|
||||||
@@ -13,7 +13,7 @@ function! s:Map(map, to, mode)
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:UnMap(map, mode)
|
function! s:UnMap(map, mode) "{{{2
|
||||||
if !empty(maparg(a:map, a:mode))
|
if !empty(maparg(a:map, a:mode))
|
||||||
for mode in split(a:mode, '.\zs')
|
for mode in split(a:mode, '.\zs')
|
||||||
execute l:mode . 'unmap <buffer>' a:map
|
execute l:mode . 'unmap <buffer>' a:map
|
||||||
|
|||||||
Reference in New Issue
Block a user