where to install tlib?

2007-05-15 Thread Claus Atzenbeck
Hi all,

I run Vim 7.0 on Mac OS X. I want to try out tmru
http://www.vim.org/scripts/script.php?script_id=1864, which requires
tlib http://www.vim.org/scripts/script.php?script_id=1863.

I moved tmru.vim into ~/.vim/plugin, but where do I install tlib.vba?

Cheers,
Claus



Project script

2007-03-23 Thread Claus Atzenbeck
Hi all:

I started using the Project script
http://www.vim.org/scripts/script.php?script_id=69. Apparently, it
cannot gather files recursively in subdirectories, for example:

project/a/test.tex
project/b/c/abc.tex
project/d/e/xyz.tex

I would like to have all *.tex files listed in Project, something like
that:

Projects=/home/user/project filter=*.tex flags=??? {
 test.tex
 abc.tex
 xyz.tex
}

Furthermore, whenever I add another .tex file somewhere in project/ or
any of its subdirectories I would like to have it updated.

Did I overlook something or is the not possible?
Would there be an easy workaround?

Claus


Re: Project script

2007-03-23 Thread Claus Atzenbeck
On Fri, 23 Mar 2007, Mika Fischer wrote:

 In the project window you can use \c to generate a new project fold.
 It will ask you a few things an generate it for you. In your case you
 may want to use \C which works recursively.

  Furthermore, whenever I add another .tex file somewhere in project/ or
  any of its subdirectories I would like to have it updated.

 In the directory fold press \r. Again \R works recursively, so you
 can also press \R in the top level of the project.

Thanks for your mail. \C works perfectly, however \R seems not to add
recently created subdirectories. Is there a way to update a Project
entry as if I would create a new entry with \C?

Claus


Spell check not working when editing HTML

2007-03-22 Thread Claus Atzenbeck
Hi,

I use Vim 7.0 (on Mac OS 10.4.9). Spell checking works perfectly,
however, not when editing HTML files. Even after typing :setlocal spell
spelllang=en_us, I don't get any error marks.

Other files, such as plain text or LaTeX, work perfectly with spell
checking.

Any idea why this could be the case?

Thanks,
Claus


Re: Spell check not working when editing HTML

2007-03-22 Thread Claus Atzenbeck
On Thu, 22 Mar 2007, Claus Atzenbeck wrote:

 I use Vim 7.0 (on Mac OS 10.4.9). Spell checking works perfectly,
 however, not when editing HTML files. Even after typing :setlocal spell
 spelllang=en_us, I don't get any error marks.

I found a solution shortly after sending this e-mail:

:sy spell toplevel

switches on spell checking.

However, I don't see any reason why HTML editing should not have spell
checking on by default. What would be the best solution for turning it
on for HTML file by default?

Claus


Masking in context for spell check -- was:Re: Spell check not working when editing HTML

2007-03-22 Thread Claus Atzenbeck
On Thu, 22 Mar 2007, A.J.Mechelynck wrote:

 However, I notice that the spell checker doesn't understand entities:
 ougrave; is highlighted as a misspelling even though où is a valid word
 in modern French.

In fact, I have the same problem with LaTeX documents: For instance, \a
(or even a with German package on) would be ä, but this is not
recognized by the spell checker. So, 'ändern' (German) is recognized as
being correct, but '\andern' or 'andern' is not.

I don't know if there are solutions provided for mapping such masking in
their context (HTML, LaTeX, etc.) Anyone who has a workaround or
solution?

Claus

jump from word to word

2007-01-30 Thread Claus Atzenbeck
Hi all,

w jumps from word to word. However, it considers German umlauts
(äöüÄÖÜ) and German sz (ß) as word end. For example, w stops at the
indicated positions:

Schwämme überall.
^   ^^   ^^ ^

However, I would desire instead:

Schwämme überall.
^^  ^

Any idea how to teach Vim to consider special characters as mentioned
above as normal letters?

Thanks for any hint.
Claus

RE: jump from word to word

2007-01-30 Thread Claus Atzenbeck
On Tue, 30 Jan 2007, Roy Fulbright wrote:

 Try using capital W instead.

Thanks, this helps. I read about it when I started using Vim, however,
apparently I forgot that.

Claus


Re: jump from word to word

2007-01-30 Thread Claus Atzenbeck
On Tue, 30 Jan 2007, Jürgen Krämer wrote:

 note that W uses Vim's definition of WORD, i.e., any sequence of
 non-blank characters separated by white space is considered to be a
 WORD. In practice this means that W will not stop at commas, dots,
 exclamation marks, quotes, etc. It might be better to

   :set iskeyword=@,48-57,_,192-255

 which considers all characters where the C runtime function isalpa()
 returns TRUE, all digits, the underscore, and all characters in the
 range from 192 to 255 to be part of a word. Then w should work as
 wanted.

Perfect. This is exactly what I wanted. Thanks!

Claus