Update runtime files
This commit is contained in:
@ -41,14 +41,19 @@ def GDScriptFoldLevel(): string
|
||||
enddef
|
||||
|
||||
|
||||
# Next/Previous section
|
||||
def NextSection(back: bool, cnt: number)
|
||||
for n in range(cnt)
|
||||
search('^\s*func\s', back ? 'bW' : 'W')
|
||||
endfor
|
||||
enddef
|
||||
if !exists("g:no_plugin_maps")
|
||||
# Next/Previous section
|
||||
def NextSection(back: bool, cnt: number)
|
||||
for n in range(cnt)
|
||||
search('^\s*func\s', back ? 'bW' : 'W')
|
||||
endfor
|
||||
enddef
|
||||
|
||||
nnoremap <silent><buffer> ]] <scriptcmd>NextSection(false, v:count1)<CR>
|
||||
nnoremap <silent><buffer> [[ <scriptcmd>NextSection(true, v:count1)<CR>
|
||||
xmap <buffer><expr> ]] $'<C-\><C-N>{v:count1}]]m>gv'
|
||||
xmap <buffer><expr> [[ $'<C-\><C-N>{v:count1}[[m>gv'
|
||||
nnoremap <silent><buffer> ]] <scriptcmd>NextSection(false, v:count1)<CR>
|
||||
nnoremap <silent><buffer> [[ <scriptcmd>NextSection(true, v:count1)<CR>
|
||||
xmap <buffer><expr> ]] $'<C-\><C-N>{v:count1}]]m>gv'
|
||||
xmap <buffer><expr> [[ $'<C-\><C-N>{v:count1}[[m>gv'
|
||||
b:undo_ftplugin ..=
|
||||
\ " | silent exe 'unmap <buffer> [['"
|
||||
\ .. " | silent exe 'unmap <buffer> ]]'"
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user