Commits

ZyX_I committed c49cc36

@aurum/edit: Fixed :read aurum:// issue (it was using command that is to
populate a new buffer), added support for faster opening by other
commands
Updated README

Comments (0)

Files changed (2)

 This plugin provides a vim <--> VCS (currently mercurial, git and subversion) 
 integration for your projects. Features:
 
-  - Partially committing changes ([:AuRecord](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line380-0)).
+  - Partially committing changes ([:AuRecord](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line384-0)).
 
-  - Viewing file state at particular revision ([aurum://file](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line622-0), [:AuFile](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line160-0)).
+  - Viewing file state at particular revision ([aurum://file](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line626-0), [:AuFile](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line160-0)).
 
   - Viewing uncommited changes in a vimdiff, as well as changes between 
-    specific revisions ([:AuVimDiff](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line423-0)). It is also possible to open multiple 
+    specific revisions ([:AuVimDiff](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line427-0)). It is also possible to open multiple 
     tabs with all changes to all files viewed as side-by-side diffs.
 
-  - Viewing revisions log ([:AuLog](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line241-0)). Output is highly customizable.
+  - Viewing revisions log ([:AuLog](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line245-0)). Output is highly customizable.
 
-  - Viewing working directory status ([:AuStatus](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line384-0)).
+  - Viewing working directory status ([:AuStatus](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line388-0)).
 
   - Commiting changes ([:AuCommit](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line101-0)), commit messages are remembered in case of 
-    rollback ([g:aurum_remembermsg](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line911-0)).
+    rollback ([g:aurum_remembermsg](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line915-0)).
 
   - Obtaining various URL’s out of remote repository URL (like URL of the HTML 
     version of the current file with URL fragment pointing to the current line 
-    attached: useful for sharing) ([:AuHyperlink](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line191-0)). For mercurial it also 
+    attached: useful for sharing) ([:AuHyperlink](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line195-0)). For mercurial it also 
     supports git and subversion revisions (in case you are using hg-git and 
     hgsubversion respectively).
 
-  - [aurum#changeset()](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line471-0), [aurum#repository()](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line467-0) and [aurum#status()](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line475-0) functions 
+  - [aurum#changeset()](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line475-0), [aurum#repository()](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line471-0) and [aurum#status()](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line479-0) functions 
     that are to be used from modeline.
 
   - Frontends for various other VCS commands.
 
-Most commands can be reached with a set of mappings (see [aurum-mappings](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line777-0)), 
+Most commands can be reached with a set of mappings (see [aurum-mappings](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line781-0)), 
 all mappings are customizable.
 
 

plugin/aurum/edit.vim

     let existed=bufexists(file)
     call s:F.checkcmd(a:command)
     if type(a:repo)==type({}) &&
-                \a:vcommand=~#'\v%(sil%[ent]\ )?%(e%[dit]|view?)'
+                \a:vcommand=~#'\v^%(%(sil%[ent]|vert%[ical]|lefta%[bove]|'.
+                \                    'abo%[veleft]|rightb%[elow]|'.
+                \                    'bel%[owright]|to%[pleft]|bo%[tright]|'.
+                \                    '\d*tab)\ )*'.
+                \                '%(%(tab)?%(e%[dit]|new)|view?|[ev]new?|'.
+                \                  'sp%[lit]|vs%[plit]|sv%[iew])$'
         let args=copy(a:000)
         let cdescr=s:commands[a:command]
         if has_key(cdescr, 'options') && has_key(cdescr.options, 'pats')
         if bufexists(prevbuf)
             let s:_r.bufvars[bufnr('%')].prevbuf=prevbuf
         endif
-        if a:vcommand[:2] isnot# 'sil'
+        if stridx(a:vcommand, 'sil')==-1
             file
         endif
     else
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.