ZyX_I avatar ZyX_I committed 598034f

@aurum/bufvars: Moved it to @%aurum/bufvars

Comments (0)

Files changed (17)

autoload/aurum.vim

 "▶1 
+scriptencoding utf-8
 execute frawor#Setup('0.1', {'@%aurum/repo': '5.0',
             \                '@aurum/cache': '1.0',
             \            '@%aurum/cmdutils': '3.0',})

autoload/aurum/annotate.vim

 "▶1 
 scriptencoding utf-8
 execute frawor#Setup('1.0', {'@%aurum/cmdutils': '3.0',
-            \                  '@aurum/bufvars': '0.0',
+            \                 '@%aurum/bufvars': '0.0',
             \                     '@aurum/edit': '1.0',
             \                          '@aurum': '1.0',
             \                     '@/resources': '0.0',

autoload/aurum/bufvars.vim

+"▶1 
+scriptencoding utf-8
+execute frawor#Setup('0.0', {'@/resources': '0.0',})
+let s:bufvars={}
+"▶1 bufwipeout
+function s:F.bufwipeout()
+    let buf=+expand('<abuf>')
+    if has_key(s:bufvars, buf)
+        let bvar=s:bufvars[buf]
+        if !has_key(bvar, 'command')
+        elseif has_key(bvar, 'bwfunc')
+            let eval='<SNR>'.s:_sid.'_Eval'
+            call feedkeys("\<C-\>\<C-n>:call ".
+                    \      "call(".eval."('s:bufvars[".buf."].bwfunc'), ".
+                    \           "[".eval."('s:bufvars[".buf."]')], {}) | ".
+                    \"call ".eval."('remove(s:bufvars, ".buf.")')\n", 'n')
+            return
+        endif
+        unlet s:bufvars[buf]
+    endif
+endfunction
+"▶1 AurumBufVars augroup
+augroup AurumBufVars
+    autocmd BufWipeOut * :call s:F.bufwipeout()
+augroup END
+let s:_augroups+=['AurumBufVars']
+"▶1
+call s:_f.postresource('bufvars', s:bufvars, 1)
+"▶1
+call frawor#Lockvar(s:, 'bufvars')
+" vim: ft=vim ts=4 sts=4 et fmr=▶,▲

autoload/aurum/cmdutils.vim

             \                       '@/os': '0.0',
             \               '@%aurum/repo': '5.0',
             \                '@aurum/edit': '1.0',
-            \             '@aurum/bufvars': '0.0',})
+            \            '@%aurum/bufvars': '0.0',})
 let s:_messages={
             \  'nrepo': 'Failed to find a repository',
             \'noafile': 'Failed to deduce which file to annotate',

autoload/aurum/commit.vim

             \                     '@aurum': '1.0',
             \             '@%aurum/status': '1.0',
             \           '@%aurum/cmdutils': '3.0',
-            \             '@aurum/bufvars': '0.0',
+            \            '@%aurum/bufvars': '0.0',
             \                '@aurum/edit': '1.0',})
 let s:_messages={
             \'emptmsg': 'Message must contain at least one non-blank character',

autoload/aurum/diff.vim

 "▶1 
 scriptencoding utf-8
 execute frawor#Setup('0.0', {'@%aurum/cmdutils': '3.1',
-            \                  '@aurum/bufvars': '0.0',
+            \                 '@%aurum/bufvars': '0.0',
             \                '@aurum/lineutils': '0.0',
             \                 '@%aurum/vimdiff': '1.0',
             \                     '@aurum/edit': '1.2',

autoload/aurum/file.vim

 "▶1 
 scriptencoding utf-8
 execute frawor#Setup('0.0', {'@%aurum/cmdutils': '3.1',
-            \                  '@aurum/bufvars': '0.0',
+            \                 '@%aurum/bufvars': '0.0',
             \                '@aurum/lineutils': '0.0',
             \                 '@%aurum/vimdiff': '1.0',
             \                     '@aurum/edit': '1.2',

autoload/aurum/log.vim

 execute frawor#Setup('1.1', {'@%aurum/cmdutils': '3.0',
             \            '@aurum/log/templates': '0.0',
             \                '@aurum/lineutils': '0.0',
-            \                  '@aurum/bufvars': '0.0',
+            \                 '@%aurum/bufvars': '0.0',
             \                     '@aurum/edit': '1.1',
             \                          '@aurum': '1.0',
             \                       '@/options': '0.0',

autoload/aurum/record.vim

             \         '@%aurum/cmdutils': '3.0',
             \         '@aurum/lineutils': '0.0',
             \              '@aurum/edit': '1.0',
-            \           '@aurum/bufvars': '0.0',})
+            \          '@%aurum/bufvars': '0.0',})
 let s:_options={
             \'recheight': {'default': 0,
             \               'filter': '(if type "" earg _  range 0 inf)'},

autoload/aurum/repo.vim

             \                       '@/os': '0.0',
             \                  '@/options': '0.0',
             \           '@aurum/lineutils': '0.0',
-            \             '@aurum/bufvars': '0.0',
+            \            '@%aurum/bufvars': '0.0',
             \                     '@aurum': '1.0',})
 let s:drivers={}
 let s:repos={}

ftplugin/aurumannotate.vim

 endif
 setlocal noswapfile
 setlocal nomodeline
-execute frawor#Setup('0.0', {'@aurum/bufvars': '0.0',
-            \               '@%aurum/vimdiff': '1.0',
-            \              '@%aurum/annotate': '1.0',
-            \              '@%aurum/cmdutils': '3.1',
-            \                   '@aurum/edit': '1.2',
-            \                    '@/mappings': '0.0',
-            \                          '@/os': '0.0',})
+execute frawor#Setup('0.0', {'@%aurum/bufvars': '0.0',
+            \                '@%aurum/vimdiff': '1.0',
+            \               '@%aurum/annotate': '1.0',
+            \               '@%aurum/cmdutils': '3.1',
+            \                    '@aurum/edit': '1.2',
+            \                     '@/mappings': '0.0',
+            \                           '@/os': '0.0',})
 let s:_messages={
             \  'nofile': 'File %s was added in revision %s',
             \ 'norfile': 'File %s is not present in the working directory '.

ftplugin/aurumcommit.vim

 setlocal noswapfile
 setlocal nomodeline
 execute frawor#Setup('0.0', {'@/mappings': '0.0',
-            \            '@aurum/bufvars': '0.0',
+            \           '@%aurum/bufvars': '0.0',
             \            '@%aurum/commit': '1.0',})
 "▶1 com.runcommap
 function s:F.runcommap(action)

ftplugin/aurumlog.vim

 setlocal noswapfile
 setlocal nomodeline
 execute frawor#Setup('0.1', {'@%aurum/cmdutils': '3.1',
-            \                  '@aurum/bufvars': '0.0',
+            \                 '@%aurum/bufvars': '0.0',
             \                     '@aurum/edit': '1.0',
             \                 '@%aurum/vimdiff': '1.0',
             \                            '@/os': '0.0',

ftplugin/aurumstatus.vim

 setlocal textwidth=0
 setlocal noswapfile
 setlocal nomodeline
-execute frawor#Setup('0.0', {'@aurum/bufvars': '0.0',
-            \               '@%aurum/vimdiff': '1.0',
-            \              '@%aurum/cmdutils': '3.0',
-            \                   '@aurum/edit': '1.2',
-            \                '@%aurum/commit': '1.0',
-            \                    '@/mappings': '0.0',
-            \                          '@/os': '0.0',})
+execute frawor#Setup('0.0', {'@%aurum/bufvars': '0.0',
+            \                '@%aurum/vimdiff': '1.0',
+            \               '@%aurum/cmdutils': '3.0',
+            \                    '@aurum/edit': '1.2',
+            \                 '@%aurum/commit': '1.0',
+            \                     '@/mappings': '0.0',
+            \                           '@/os': '0.0',})
 let s:_messages={
             \  'nopars': 'Revision %s has no parents',
         \}

plugin/aurum/bufvars.vim

-"▶1 
-scriptencoding utf-8
-if !exists('s:_pluginloaded')
-    execute frawor#Setup('0.0', {'@/resources': '0.0',}, 0)
-    finish
-elseif s:_pluginloaded
-    finish
-endif
-let s:bufvars={}
-"▶1 bufwipeout
-function s:F.bufwipeout()
-    let buf=+expand('<abuf>')
-    if has_key(s:bufvars, buf)
-        let bvar=s:bufvars[buf]
-        if !has_key(bvar, 'command')
-        elseif has_key(bvar, 'bwfunc')
-            let eval='<SNR>'.s:_sid.'_Eval'
-            call feedkeys("\<C-\>\<C-n>:call ".
-                    \      "call(".eval."('s:bufvars[".buf."].bwfunc'), ".
-                    \           "[".eval."('s:bufvars[".buf."]')], {}) | ".
-                    \"call ".eval."('remove(s:bufvars, ".buf.")')\n", 'n')
-            return
-        endif
-        unlet s:bufvars[buf]
-    endif
-endfunction
-"▶1 AurumBufVars augroup
-augroup AurumBufVars
-    autocmd BufWipeOut * :call s:F.bufwipeout()
-augroup END
-let s:_augroups+=['AurumBufVars']
-"▶1
-call s:_f.postresource('bufvars', s:bufvars, 1)
-"▶1
-call frawor#Lockvar(s:, '_pluginloaded,bufvars')
-" vim: ft=vim ts=4 sts=4 et fmr=▶,▲

plugin/aurum/edit.vim

                 \                   '@/resources': '0.0',
                 \                  '@%aurum/repo': '5.0',
                 \              '@aurum/lineutils': '0.0',
-                \                '@aurum/bufvars': '0.0',}, 0)
+                \               '@%aurum/bufvars': '0.0',}, 0)
     call FraworLoad('@/autocommands')
     call FraworLoad('@/functions')
     let s:auefunc={}

syntax/aurumlog.vim

     finish
 endif
 execute frawor#Setup('0.0', {'@aurum/log/templates': '0.0',
-            \                      '@aurum/bufvars': '0.0',})
+            \                     '@%aurum/bufvars': '0.0',})
 function s:F.syndef()
     let buf=bufnr('%')
     if !has_key(s:_r.bufvars, buf)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.