Add a .vimrc autocommand for template processing (indent and tab handling)

RESOLVED FIXED

Status

()

--
trivial
RESOLVED FIXED
14 years ago
13 years ago

People

(Reporter: dennis.melentyev, Assigned: cso)

Tracking

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050217
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050217

To help avoid tab symbols injection into templates, please, add the text
suggesting VIm users to add the following autocommand into .vimrc:

  au BufNewFile,BufRead *.tmpl set et ts=2 sw=2 tw=80

The appropriate place for this is near '<li>Indentation - HTML and XML Templates
should have a 2-space indent.' code.

Reproducible: Always
Assignee: mozilla.webmaster → justdave
Component: webmaster@mozilla.org → bugzilla.org
Product: mozilla.org → Bugzilla
QA Contact: danielwang → default-qa
Version: other → unspecified
sounds good to me.  anyone want to take care of updating the page?
Assignee: justdave → documentation
Status: UNCONFIRMED → NEW
Ever confirmed: true
Yeah, I'll do it sometime, if Colin doesn't get to it first. :-)
Assignee: documentation → mkanat
(Assignee)

Comment 3

13 years ago
Created attachment 196666 [details] [diff] [review]
Patch v1
Assignee: mkanat → colin.ogilvie
Status: NEW → ASSIGNED
Attachment #196666 - Flags: review?(mkanat)
Comment on attachment 196666 [details] [diff] [review]
Patch v1

Looks good to me. Remind me to carry it over in my Dev Guide update that would
otherwise tromp it.
Attachment #196666 - Flags: review?(mkanat) → review+
Checking in docs/developer.html.tmpl;
/cvsroot/mozilla-org/html/projects/bugzilla/docs/developer.html.tmpl,v  <-- 
developer.html.tmpl
new revision: 1.9; previous revision: 1.8
done
Status: ASSIGNED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.