Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
obse.vim72 linesDownload Raw Back to ftplugin
1" Vim filetype plugin file2" Language:    Oblivion Language (obl)3" Original Creator: Kat <katisntgood@gmail.com>4" Maintainer:  Kat <katisntgood@gmail.com>5" Created:     2021 Aug 086" Last Change: 2022 Nov 137"              2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')8 9if exists("b:did_ftplugin")10  finish11endif12 13let s:cpo_save = &cpo14set cpo&vim15 16let b:undo_ftplugin = "setl com< cms<"17 18noremap <script> <buffer> <silent> [[ <nop>19noremap <script> <buffer> <silent> ]] <nop>20 21noremap <script> <buffer> <silent> [] <nop>22noremap <script> <buffer> <silent> ][ <nop>23 24setlocal commentstring=;\ %s25setlocal comments=:;26 27function s:NextSection(type, backwards, visual)28    if a:visual29        normal! gv30    endif31 32  if a:type == 133    let pattern = '\v(\n\n^\S|%^)'34    let flags = 'e'35  elseif a:type == 236    let pattern = '\v^\S.*'37    let flags = ''38  endif39 40  if a:backwards41    let dir = '?'42  else43    let dir = '/'44  endif45 46  execute 'silent normal! ' . dir . pattern . dir . flags . "\r"47endfunction48 49noremap <script> <buffer> <silent> ]]50  \ :call <SID>NextSection(1, 0, 0)<cr>51 52noremap <script> <buffer> <silent> [[53  \ :call <SID>NextSection(1, 1, 0)<cr>54 55noremap <script> <buffer> <silent> ][56  \ :call <SID>NextSection(2, 0, 0)<cr>57 58noremap <script> <buffer> <silent> []59  \ :call <SID>NextSection(2, 1, 0)<cr>60 61vnoremap <script> <buffer> <silent> ]]62  \ :<c-u>call <SID>NextSection(1, 0, 1)<cr>63vnoremap <script> <buffer> <silent> [[64  \ :<c-u>call <SID>NextSection(1, 1, 1)<cr>65vnoremap <script> <buffer> <silent> ][66  \ :<c-u>call <SID>NextSection(2, 0, 1)<cr>67vnoremap <script> <buffer> <silent> []68  \ :<c-u>call <SID>NextSection(2, 1, 1)<cr>69 70let &cpo = s:cpo_save71unlet s:cpo_save72 
codekingpro/portable-devtools · Team Ai