comparison runtime/ftplugin/gdscript.vim @ 30324:0827d3d6d8c0

Update runtime files Commit: https://github.com/vim/vim/commit/9712ff1288f942736ed76c0dec014909f067eec9 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 18 13:04:22 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sun, 18 Sep 2022 14:15:05 +0200
parents ebed259f919f
children
comparison
equal deleted inserted replaced
30323:7637e274f2a6 30324:0827d3d6d8c0
39 return $"{indent}" 39 return $"{indent}"
40 endif 40 endif
41 enddef 41 enddef
42 42
43 43
44 # Next/Previous section 44 if !exists("g:no_plugin_maps")
45 def NextSection(back: bool, cnt: number) 45 # Next/Previous section
46 for n in range(cnt) 46 def NextSection(back: bool, cnt: number)
47 search('^\s*func\s', back ? 'bW' : 'W') 47 for n in range(cnt)
48 endfor 48 search('^\s*func\s', back ? 'bW' : 'W')
49 enddef 49 endfor
50 enddef
50 51
51 nnoremap <silent><buffer> ]] <scriptcmd>NextSection(false, v:count1)<CR> 52 nnoremap <silent><buffer> ]] <scriptcmd>NextSection(false, v:count1)<CR>
52 nnoremap <silent><buffer> [[ <scriptcmd>NextSection(true, v:count1)<CR> 53 nnoremap <silent><buffer> [[ <scriptcmd>NextSection(true, v:count1)<CR>
53 xmap <buffer><expr> ]] $'<C-\><C-N>{v:count1}]]m>gv' 54 xmap <buffer><expr> ]] $'<C-\><C-N>{v:count1}]]m>gv'
54 xmap <buffer><expr> [[ $'<C-\><C-N>{v:count1}[[m>gv' 55 xmap <buffer><expr> [[ $'<C-\><C-N>{v:count1}[[m>gv'
56 b:undo_ftplugin ..=
57 \ " | silent exe 'unmap <buffer> [['"
58 \ .. " | silent exe 'unmap <buffer> ]]'"
59 endif