In insert mode, <c-v>O will let you insert ascii keycodes as octal
numbers. Hence, an 'O' must not be preceeded by <c-v>. However, <c-v> is
necessary, if a:char is <c-\>.
Fix#59
- Improved(?) the foldtext
- Itemize environments can nest
- Replaced a stack implementation by vim lists
- Add some debugging code to SyntaxFolds.vim
- Removed some bugs
- Speedup of folding
Description: Fix error message on double loading
If the file plugin/remoteOpen.vim is loaded twice by vim (e.g. at both local
and system-wide installation), errors about redefined commands are shown.
This patch should fix this.
Author: Johann Felix Soden <johfel@gmx.de>
Bug-Debian: http://bugs.debian.org/444426
Why: Apparently, you cannot use
:if v:version >= 700
:for something
...
:endfor
:endif
the :endfor and :for trigger errors.
Fix: For now, just remove this code from latex-suite since there is a new
release purely for vim7 coming up.
using FB_Strntok() to get the i^th line of glob('*'), iterate using
stridx(). This makes the time required by FB_OpenFileBrowser() to list
the files in C:/WINDOWS/system32 reduce from 104 seconds to 1 second.
If v:version >= 700, then we can directly use Vim's inbuilt list and
split() functions. This makes the time go to 0.6 seconds.
commands to do the following:
1. change the EOL style of all vim files to be just LF.
2. changed the mime-type of all files to text/plain
3. removed the executable flag on all files.
This should hopefully make the repo look better on all platforms etc.
:iab zzz whatever
then typing 'z<space>' triggers the abbreviation in the presence of
latex-suite. (Cristian Rigamonti)
Why: The reg-exp used to find out if a iab existed was faulty.
Fix: Fix the regexp to use an exact match of the previous word.
>>> \begin{array}
>>> \end{}
results in
>>> \begin{array}
>>> \end{<++>}
with the cursor at the end (Berta Milan)
Why: When the indentation of a line changes while typing the text returned
by IMAP_PutTextWithMovement, then IMAP_Mark('go') does not go to the
same location as set by IMAP_Mark('set'). This causes the cursor to be
located not before the first placeholder causing the first
placeholder to be "missed".
Fix: Check to see if the indentation of the line remembered by
IMAP_Mark('set') has changed and if so, move a little to the left or
right to adjust for the indentation changing.
Why: With 'ignorecase' set, 'etB' matches 'ETB', therefore, LookupCharacter
assumes that a map exists for 'etB' and tries to find the value of
s:Map_Tex_etB which doesn't exist.
Fix: Force matching case with the \C pattern.
Why: The following vim command
:drop File Name with spaces
opens up multiple files.
Fix: escape() the file name before issuing the drop command.
NOTE: There is a vim bug where
exec "drop ".escape(filename, '\ ')
hangs GVIM.
Why: Vim eats up all but the last remote_send call when multiple
invokations to this function are made (Vim bug)
Fix: Collapse the entire set of keys into a single string and make a single
remote_send call.
IMAP_Jumpfunc().
Why: s:RemoveLastHistoryItem sets @/ to the last search item in the @/
history, but @/ is not necessarily always the last item in the @/
history.
Fix: Remember @/ in Tex_LastSearchPattern and then restore it.
explorer.vim which ships with vim. It would have been _really_ nice to have
first discussed the implementation of this feature so I could have avoided
this problem beforehand. :(
would open it in a new session. But for projects with lots of
files, this can become painful. Therefore, instead of opening in
new sessions each time, open files in the same session we used the
first time we had to create a session.
from the command line as follows:
gvim -c ":RemoteOpen +<lnum> <filename>"
where <lnum> is the line-number you wish <filename> to open to. What will
happen is that a new gvim will start up and enquire from all previous
sessions if <filename> is already open in any of them. If it is, then it
will edit the file in that session and bring it to the foreground and itself
quit. Otherwise, it will not quit and instead open up the file for editing
at <lnum>.
This was mainly created to be used with Yap (the dvi previewer in miktex),
so you can specify the program for "inverse search" as specified above.
This ensures that the inverse search uses the correct gvim each time.
is necessary for things like explorer-completion.
Change is to make EditEntry function global available. It makes possible
to remap standard explorer shortcuts for better interaction with lS.
I signalized this on vim@vim.org and hope it will be standard behaviour
of explorer.vim in next Vim editions thus we won't need this file. But
for today pros are much more than contras I think.
(sorry for my english today, please correct my faults in latex-suite.txt
if you find few minutes)
abbreviations starting with the letter 'a', then typing 'a<space>'
would trigger an expansion.
Cause: The :iab command also echoes for partial completions.
Solution: Check more thoroughly whether a word is an abbreviation LHS or
not.
(Preben Randhol, Sanip P Deshmukh)
Cause: If a mapping ends in a letter (say '\'), then abbreviations are not
triggered by that letter. For example, if we have
imap \ <C-r>='\'<CR>
iab 12 twelve
Then typing 12\ doesn't expand to twelve\.
(Strangely enough "imap \ ?" doesn't have this problem and we get
twelve?. Vim bug?)
This problem is aggravated by the fact that latex-suite "protects"
most letters to avoid expansions such as ``2 -> `\sqrt{}
Solution: After checking for mappings ending in a letter, if that letter is
not in 'iskeyword', then also check whether the previous word has
an abbreviation. Since vim does not have the equivalent of
mapcheck() for abbreviations, this is complicated (maybe even hacky).
:behave mswin
is set, which in turn sets &selection=inclusive. This makes
IMAP_Jumpfunc() skip selecting the last character of
Imap_PlaceHolderEnd. (Sumit Bhardwaj)
Solution: Temporarily set &selection = exclusive in IMAP_Jumpfunc().