Bug#506190: ftplugin/html.vim: indenting broken

2015-08-02 Thread martin f krafft
also sprach James McCoy james...@debian.org [2015-08-02 02:07 +0200]:
 It seems like all the behaviors are consistent now.  Do you agree the
 bug can be closed?

Yes, I also cannot discern anymore what my main gripe was about.
I still sometimes wish that gqit would leave p and /p on their
own lines and indent the stuff between, reflowing it as fit, but
that's a different issue…

-- 
 .''`.   martin f. krafft madduck@d.o @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
it is the mark of an educated mind
 to be able to entertain a thought
 without accepting it.
-- aristoteles


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Bug#506190: ftplugin/html.vim: indenting broken

2015-08-01 Thread James McCoy
On Sun, Nov 23, 2008 at 11:39:47PM -0500, James McCoy wrote:
 On Wed, Nov 19, 2008 at 08:56:41AM +0100, martin f krafft wrote:
  Look at the attached file. There are three problems/inconsistencies
  with indenting:
  
  1. gq causes lines 4-7 to assume the indent of line 3.
 
 That's not a full command, so I'll assume you meant you were
 reformatting all the text inside the tags (a la gqit).  Reformatting
 simply re-wraps the lines according to the textwidth, causing the new
 line to be indented according to the current indenting rules.  Just like
 manually re-indenting lines 4-7 would use the indent of line 3, so does
 reformatting the text inside the tags.
 
  2. Appending a line after line 3 (o) preserves the indent, as does
 autowrapping when adding more text to line 3.
 
 HTML's indenting is based on the line previous to the line being
 indented.  'indentkeys' is set so that adding a new line (via o or O)
 causes the line to be automatically indented, thus picking up the indent
 of line 3.

The above descriptions are still accurate.

  3. Inserting a newline into line 3 removes the indent.
 
 The html indent script sets 'indentkeys' such that re-indenting is
 performed before the newline is inserted (the *Return value in
 'indentkeys').  Since the line previous to line 3 has zero indent, that
 is how line 3 gets indented.

This doesn't seem to be the case anymore.

It seems like all the behaviors are consistent now.  Do you agree the
bug can be closed?

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy james...@debian.org


signature.asc
Description: Digital signature


Bug#506190: ftplugin/html.vim: indenting broken

2008-11-23 Thread James Vega
On Wed, Nov 19, 2008 at 08:56:41AM +0100, martin f krafft wrote:
 File: /usr/share/vim/vim72/ftplugin/html.vim

Actually indent/html.vim

 Look at the attached file. There are three problems/inconsistencies
 with indenting:
 
 1. gq causes lines 4-7 to assume the indent of line 3.

That's not a full command, so I'll assume you meant you were
reformatting all the text inside the tags (a la gqit).  Reformatting
simply re-wraps the lines according to the textwidth, causing the new
line to be indented according to the current indenting rules.  Just like
manually re-indenting lines 4-7 would use the indent of line 3, so does
reformatting the text inside the tags.

 2. Appending a line after line 3 (o) preserves the indent, as does
autowrapping when adding more text to line 3.

HTML's indenting is based on the line previous to the line being
indented.  'indentkeys' is set so that adding a new line (via o or O)
causes the line to be automatically indented, thus picking up the indent
of line 3.

 3. Inserting a newline into line 3 removes the indent.

The html indent script sets 'indentkeys' such that re-indenting is
performed before the newline is inserted (the *Return value in
'indentkeys').  Since the line previous to line 3 has zero indent, that
is how line 3 gets indented.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega [EMAIL PROTECTED]


signature.asc
Description: Digital signature


Bug#506190: ftplugin/html.vim: indenting broken

2008-11-19 Thread martin f krafft
Package: vim-runtime
Version: 2:7.2.025-2
Severity: normal
File: /usr/share/vim/vim72/ftplugin/html.vim

Look at the attached file. There are three problems/inconsistencies
with indenting:

1. gq causes lines 4-7 to assume the indent of line 3.
2. Appending a line after line 3 (o) preserves the indent, as does
   autowrapping when adding more text to line 3.
3. Inserting a newline into line 3 removes the indent.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim-runtime depends on:
ii  dpkg  1.14.22Debian package management system

Versions of packages vim-runtime recommends:
ii  vim  2:7.2.025-2 Vi IMproved - enhanced vi editor
ii  vim-nox [vim]2:7.2.025-2 Vi IMproved - enhanced vi editor

vim-runtime suggests no packages.

-- no debconf information

-- 
 .''`.   martin f. krafft [EMAIL PROTECTED]
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Nullam magna elit, rutrum eu, blandit venenatis, venenatis ac, neque. Vivamus
  luctus. In enim nibh, ultricies in, viverra at, aliquet quis, tellus.
Suspendisse pulvinar posuere mauris. Quisque mi. Morbi ac nisi. Fusce varius.
Mauris vitae eros eget felis interdum pulvinar. In tempus eros quis lacus.
Suspendisse porttitor sollicitudin lectus. Vestibulum luctus elit in augue.
Nulla nec ante non lacus elementum venenatis.



digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)