misc/127550: [tools] [patch] src/tools/tools/editing/freebsd.vim improvement

Sofian Brabez sbrabez at gmail.com
Mon Sep 22 23:00:09 UTC 2008


>Number:         127550
>Category:       misc
>Synopsis:       [tools] [patch] src/tools/tools/editing/freebsd.vim improvement
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 22 23:00:08 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Sofian Brabez
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
FreeBSD atemi 7.0-RELEASE FreeBSD 7.0-STABLE #1: Sun Feb 24 19:59:52 UTC 2008 root at atemi:/usr/obj/usr/src/sys/ATEMI i386
>Description:
This patch add a new feature in src/tools/tools/editing/freebsd.vim to create vuxml template using vim registers.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- freebsd.vim.orig	2008-09-23 00:14:01.000000000 +0200
+++ freebsd.vim	2008-09-23 00:31:40.000000000 +0200
@@ -66,3 +66,10 @@
     setlocal tabstop=8
     setlocal textwidth=80
 endfun
+
+" This macro for Vim (tested with Vim v7.1) create a new vuxml template
+" entry. Add line source ~/vuxml.vim in you .vimrc to create v register.
+" Use register with @v command. It generate new uuid and add suitable vuxml tags
+" like the section 11.3.2 of porters-handbook.
+
+let @v=':%!uuidgeni<vuln vid="$"><topic></topic>  <affects>    <package>      <name></name>      <name></name>      <name></name>      <range><ge></ge><lt></lt></range>      <range><ge><lt><lt></range>      <range><eq><eq></range>    </package>    <package>      <name></name>      <range><lt></lt></range>      <range><ge></ge><lt></lt></range>    </package>  </affects>  <description>    <body xmlns="http://www.w3.org/1999/xhtml">      <p></p>      <blockquote        cite="">      </blockquote>    </body>  </description>  <references>    <freebsdsa></freebsdsa>    <freebsdpr></freebsdpr>    <cvename></cvename>    <cvename></cvename>    <bid></bid>    <certsa></certsa>    <certvu></certvu>    <uscertsa></uscertsa>    <uscertta></uscertta>    <mlist msgid=""></mlist>    <url></url>  </references>  <dates>    <discovery></discovery>    <entry></entry>    <modified></entry>  </dates></vuln>:wgg'


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list