Commit Graph

  • 933c8adf72 - instead of custom functions for creating prompt strings of environments/commands/templates/packages etc, use a function Tex_CreatePrompt() everywhere. See main.vim for usage details. It turns out the bug Mikolaj reported with the prompt not changing was becuause of a buggy SetUpCommandPrompt() function. TODO: There are many globally visible functions not starting with the Tex_ prefix. Will have to fix that soon. Srinath Avadhanula 2003-01-15 02:52:47 +00:00
  • d85929c466 - fixed bug ^[0-9][0-9]$ in .... - Removed "loose ends" for handling $...$ and \(...\) commands Mikolaj Machowski 2003-01-14 23:56:52 +00:00
  • 2d56565d58 - defining the german quotes here... This makes any file in which \usepackage{german} is detected use "` and '" as the quote characters... Srinath Avadhanula 2003-01-14 23:00:08 +00:00
  • 92b05810a4 - Problem with last commit. Srinath Avadhanula 2003-01-14 22:51:19 +00:00
  • e4015d66a4 - expansion of g to \gamma makes writing german quotes difficult because correct german quotes are " and '". Protect this expansion as well... TODO: This seems to getting wierd. A better way would have been to check for math mode. But how to do that? Checking for synIDattr() =~? 'math' is not good enough because \cite and \sum are both 'texStatement's. TODO: Is this getting too annoying to be left enabled by default? Benji suggests disabling this by default. Srinath Avadhanula 2003-01-14 22:46:56 +00:00
  • 0b9337155e - previously created g:Tex_package_detected had a form: inputencgeometrypolski Not declared: inputenc,geometry,polski. Fixed. - Last command in package file (without , at the end) was losing last letter. Fixed by adding , to commandList - Don't create separator if command and option lists in package file are empty. Rare but possible. Mikolaj Machowski 2003-01-14 22:02:42 +00:00
  • 912248ebd9 new package file Mikolaj Machowski 2003-01-14 22:01:23 +00:00
  • c848230e7e change in layout of file to make it compatible with the rest of package files Mikolaj Machowski 2003-01-14 22:01:05 +00:00
  • 5edbe94f65 critical bugs - missing dot contacenating (WTH is spelling of this word?) string Mikolaj Machowski 2003-01-14 22:00:22 +00:00
  • ca2675a422 - Added section in SetTeXOptions about TexPromptedCommands Mikolaj Machowski 2003-01-14 13:41:26 +00:00
  • a1f951f35f - Added short description of g:Tex_PromptedCommands and basic TexLet value Mikolaj Machowski 2003-01-14 13:40:56 +00:00
  • 15a4db66be - Implementation of Fast Environment set of macros for LaTeX commands - Basically these are the same functions but rewritten to work for commands - there are some oddities thus I decided to separate it functionality from env macro - it is easier to read code. Maybe integrate it later. - New mapping <F7> and <S-F7> to insert and change command name from menu. It works properly only for \com{} style commands (not for $ and \( ) - There is one strange thing about updating g:Tex_PromptedCommands/Environments (more about updating in log for packages.vim). Mikolaj Machowski 2003-01-14 13:40:44 +00:00
  • 98b56384ed - Added to Tex_pack_all() scanning for \newenvironment and \newcommand lines and adds new names to g:Tex_Prompted variables. - Updating is based on g:Tex_...Default, whole scanning is done from nil, thus it should work for removing \new..., but it doesn't work :( It looks like SetUp...Prompt uses some cached values. Mikolaj Machowski 2003-01-14 13:40:39 +00:00
  • 480d756036 unification of modelines (especially ff=unix) and removing Last Change lines Mikolaj Machowski 2003-01-12 22:02:40 +00:00
  • 7f6a07885f bug - s:visual was not unset after the call to Tex_PutEnvironment. This cased successive menu items to all regard s:isvisual = 'yes', causing stuff to break. Srinath Avadhanula 2003-01-11 20:42:02 +00:00
  • 8fa4c58c60 Fixed problem with undefined s:isvisual in Tex_PutEnvironment by testing with exists() Mikolaj Machowski 2003-01-11 20:09:40 +00:00
  • 2b814b1adf - temporary commit. Srinath Avadhanula 2003-01-11 09:05:39 +00:00
  • 021172a358 - New file: newlatex-suite.txt This is a temporary file for reworking the documentation. I noticed that the original documentation read too much like a story... In particular, the table of contents was too wordy and the user didn't get a nice overview at a glance. This is an attempt to rework mainly the TOC and maybe some of the sections too... In particular: - add sections for how to customize. A section containing all the available options. - a section containing all available <Plug>'d maps and again how to override the default maps. - add documentation for bibtex.vim, which provides nice support for editing .bbl files. (Alan G Isaac promised some docs for this long ago, but hasn't yet given any). Srinath Avadhanula 2003-01-11 08:42:27 +00:00
  • bff02b6aaa - Protect all printable ascii characters in the range 32-127 from accidental expansion at the beginning of a tex double quote. (Felt a need for this when I realized that ``* and such were still trouble causers). Is this way too agressive? Srinath Avadhanula 2003-01-11 08:25:12 +00:00
  • 5b822aca94 - removing a few lines which do not seem to be used anywhere. - corrected the placeholder description for the \list command. - adding 'description' to the Lists menu (macro in insert mode is EDE) - changing paragraph macro from SPR to SPG as documented. Srinath Avadhanula 2003-01-10 05:33:42 +00:00
  • 0b36924c53 - Charles Boncelet suggested M -> \sum_{}^{}. - In order to guard against expanding to \sum.. on typing M at the start of a quotation, create a fake map call IMAP('M', 'M', 'tex') Since IMAP() always uses the longest lhs ending in a character, this fake map elegantly solves the problem. Use this strategy to "protect" greek letter mappings as well. So now we do not need a special s:TEX_InsertGreekLetter() function... Just create fake maps like a -> a and \a -> \`a. Srinath Avadhanula 2003-01-10 05:11:43 +00:00
  • f0b455b91a - Bugfix: <F5> and then choosing option 5 ('\[') inserted \begin{\[} etc instead of just \[. - Support choosing $$ and \[ after <F5> in visual mode as well. Srinath Avadhanula 2003-01-10 01:56:42 +00:00
  • 47c0ea8dcf - <F5> key works for environments also in visual mode Only for environments, in preamble <F5> is ignored. - :g/Last Change/s/.*/" CVS Header: $Header$/ Mikolaj Machowski 2003-01-09 15:31:36 +00:00
  • 005283a588 new package files Mikolaj Machowski 2003-01-09 11:50:30 +00:00
  • 9186e9ff31 . Adding in the header instead of the Last Change: Wed Jan 08 04:00 PM 2003 PST revision tag is necessary in a file, imo. NOTE: This wont cause spurious revisions, problems in merging etc. Srinath Avadhanula 2003-01-09 00:57:58 +00:00
  • ae67765d27 - always use the blackhole register to do yanks/substitutions etc, otherwise the user's unnamed register gets eaten up. Srinath Avadhanula 2003-01-08 23:50:12 +00:00
  • 3d9f2fa153 Added syntax highlighting for new cite commands provided with this packages Mikolaj Machowski 2003-01-07 22:36:53 +00:00
  • 352cf93b6e new package file Mikolaj Machowski 2003-01-07 22:36:04 +00:00
  • 4e55f84086 - removing an unnecessary line from a previous version. Srinath Avadhanula 2003-01-07 20:53:38 +00:00
  • dadc582f31 - Description of arguments to IMAP_Jumpfunc(). - IMAP_Jumpfunc() is now able to handle <+placeholders withlinebreaks+> - Bug: If we were selecting in the backward direction, and we want to move backwards, then 2 <Plug>IMAP_JumpBack's are needed. i.e, if we have <+1+> <+2+> <+3+> and we do (with <C-k> mapped to <Plug>IMAP_JumpBack) <C-j><C-j><C-k>, from before <+1+>, then we remain in <+2+>. (Bug pointed out by LH) Cause: In visual mode, <Plug>IMAP_JumpBack deselects the text but remains at the end of the selection. (this is default vim behavior). Therefore searching back for the placeholder start character lands us up in the template. Solution: In visual mode, make <Plug>IMAP_JumpBack goto `< after deselecting text. This strategy also leads to considerable simplification at other places. Srinath Avadhanula 2003-01-07 19:43:41 +00:00
  • e3c015dde6 * Improve s:PutTextWithMovement() by using a new helper function, IMAP_Mark(), to position the cursor instead of adding a marker string and searching for it. The marker would cause serious trouble if it occurred anywhere in the inserted text, and minor trouble if it was too long and caused an unwanted line break. Benji Fisher 2003-01-07 18:27:47 +00:00
  • 4174178620 Change from Carl: Srinath Avadhanula 2003-01-07 01:51:13 +00:00
  • f3382db438 - removing the betaup target. - adding a release: target and uphtdocs: target. As of now, both of these have hardcoded srinathava@vim-latex. If someone wants this to change, let me know. The release: target is meant to take care of the annoying problem where every once in a while, releases made via my computer generate CRLF style files. Doing a release via SF should eliminate this problem. - uphtdocs is a way of synchronizing the latex-suite webpage with the latest CVS snapshot. Srinath Avadhanula 2003-01-06 10:10:18 +00:00
  • 20696f458c - removing the time stamp string. It is causing problems in merging from branches etc. - Bug: Pressing a <space> before the second $ of a line like: $aaaaa........$ caused spurious newlines to be inserted after the current line. Cause: Carl knows. Solution: [Cut/paste from Carl Mueller's email about this] Srinath Avadhanula 2003-01-06 00:17:53 +00:00
  • ac66af90a4 adding ff=unix and ft=vim modelines; removing redundant , at the end of variables; removed last <<>> signs; commiting new packages Mikolaj Machowski 2003-01-05 21:47:08 +00:00
  • 0380892159 This is another attempt to deal with encoding problems. Benji Fisher 2003-01-05 14:01:21 +00:00
  • 218c5378c8 Bug: More debugging the debug functions! Ahh... The irony. The Tex_PrintDebug() function wasn't working well. Cause/Solution: used a:pattern instead of pattern Srinath Avadhanula 2003-01-05 08:46:52 +00:00
  • 910ea9241f Bug: <F5> was mapped for all buffers, not just tex files. <S-F5> on the other hand was mapped only for the buffer which activates latex-suite. Cause: -- ditto -- Solution: Provide <plug>ed mappings in here and a function Tex_SetFastEnvironmentMaps(). This function is called from main.vim for every buffer. Thus buffer local maps are made for every tex file opened. Srinath Avadhanula 2003-01-05 08:36:17 +00:00
  • f6baf61054 Bug fix from Carl Mueller. Bug: Reformatting is not done when <space> is pressed at the end of a line like: $aaaaaa.......$ asdf where there are say > &tw 'a's. In other words, reformatting isn't done outside the '$'s. Cause: Do not really know, should ask Carl Solution: Apparently the diff here... Srinath Avadhanula 2003-01-05 04:50:46 +00:00
  • 3a6846809d . There are still some serious bugs in the smartspace mapping. Also, in accordance with the the philosophy of "no surprises even if you haven't read the surprises", I am reluctant to do something as agressive as setting 'tw' to zero by default. People who want this should read the docs, understand the implications and then activate this option. Srinath Avadhanula 2003-01-05 04:39:31 +00:00
  • 70dca535ce Another great bug report from Ulrich Spoerlein. Bug: When the following .tex file is opened with latex-suite, we get a choose package prompt: -----------------------------%<----------------------------- \documentclass{report} \usepackage[a4paper, pdftex, dvips, ps2pdf, bookmarks, bookmarksopen, bookmarksnumbered, colorlinks, linkcolor=blue, urlcolor=blue]{hyperref} \usepackage{cite} \begin{document} \end{document} -----------------------------%<----------------------------- Cause: the original algorithm for finding packages failed when the \usepackage definition was split across lines as shown here. Solution: Rewrite the Tex_pack_all function to act much more robustly. This method is able to account for multiple line definitions pretty well. Just to be on the safe side, ensure that Tex_pack_one is never called with '' which causes the prompt. Srinath Avadhanula 2003-01-05 02:19:26 +00:00
  • b90325478e Remove a bit of pedantic stuff from the docs. We seem to be explaining the same thing too many times... Srinath Avadhanula 2003-01-04 00:56:56 +00:00
  • 87be793e21 Made the debugging statements more advanced. Each file can now call Tex_Debug as call Tex_Debug('something', 'modulename') Afterwards, we can do: call Tex_PrintDebug('modulename') This way debugging statements from various modules will not interfere with each other. Srinath Avadhanula 2003-01-04 00:49:53 +00:00
  • 5b23165397 Since IMAP() is used so often, we do not want the Debug statements to cause a memory leak. Otherwise the debug string will get generally very huge on long usage of latex-suite/imaps. Srinath Avadhanula 2003-01-04 00:44:56 +00:00
  • 3bfac27bb7 Bug: Ulrich Spoerlein reports that, when we press <space> after the following line: $aaaaaaaaaaaaaaaaaa.........$ ^ line starts here. There is a space before the leading $ Then smartspace makes vim go into an infinite loop. Fix: Instead of trying to see if the first character of the line is '$', check if the first non blank character is a '$'. This seems a little like a temporary fix though.. Srinath Avadhanula 2003-01-03 23:08:13 +00:00
  • 712e3aeaf4 Bug: call IMAP('""', '"<++>"<++>', '<+', '+>') doesnt work. In general, any mapping ending in double quote doesn't work. Cause: Double quotes need to be escaped in the call to LookupCharacter(). Srinath Avadhanula 2003-01-03 08:42:16 +00:00
  • c7b5c38d4b Unfortunately, have to repeat Tex_Debug* functions here in case this plugin is used without latex-suite... Script bloat! Maybe when all of the imaps bugs are removed (!) we can remove these functions... Srinath Avadhanula 2003-01-03 08:22:23 +00:00
  • aadde81912 . Remove mappings for jumping back. The user can still choose to use this functionality by uncommenting lines in the texrc (that modification coming soon). Srinath Avadhanula 2002-12-31 19:20:02 +00:00
  • 1100d97bc6 . Follow the <Plug>ed mappings philosophy here as well... . TODO: The meta mappings for brackets.vim might be removed by default in future revisions because they do really annoying things for european users. Only the <plugs> will be provided. A new section in texrc will contain the maps which the user can customize... Srinath Avadhanula 2002-12-31 19:15:37 +00:00
  • 8760518a4d Starting the doc file for the imaps.vim plugin. This is just a quick hack job for now. Its not in the releaseable state yet. But I will keep working at it in the next few days when I get the time... This doc file should describe the various imaps options for placeholders and also how to override the mappings for jumping back and forth... Srinath Avadhanula 2002-12-31 10:04:24 +00:00
  • 13c4fdc89b Bug: <M-c> inserts '\label{<++>}<++>' literally without using IMAP_PutTextWithMovement('\label{<++>}<++>'). Srinath Avadhanula 2002-12-31 09:36:06 +00:00
  • 9d2773507b 1. Problem: When the user tries to trigger an abbreviation near the eol, the marker string being too long triggers a line break. Therefore, just for the time being check to see if phs != phe, and if so, then use phs.phs as the marker (improbable string). We would like ultimately to completeley get over this hack and use movement instead. Srinath Avadhanula 2002-12-31 09:21:01 +00:00
  • f15bf31f83 . BUG: typo, env:longtable was written as enb:longtable TODO: Should we write code to make such typos get handled elegantly? . adding modeline. Srinath Avadhanula 2002-12-30 19:11:21 +00:00
  • 86a43747bd Bug: Pressing <F5> and then pressing <enter> without choosing anything inserts 0 (zero) Cause: Tex_DoEnvironment() doesn't account for the fact that the user does not choose anything. Therefore, vim by default returns zero. Solution: Make Tex_DoEnvironment return '' if the user hasn't chosen anything. Srinath Avadhanula 2002-12-30 11:12:02 +00:00
  • bcd3de1886 Bug: When we trigger a mapping near the end of the line, things go bad. Cause: The "marker" or the "very improbable string" which is used by IMAP_PutTextWithMovement() to mark the beginning of the left-hand side contains spaces! This causes expansions near the end of a line to trigger line breaks (if 'fo' contains t, which is default and tw != 0), so that the marker text is broken across lines... Havoc ensues. Solution: remove spaces from marker text. Srinath Avadhanula 2002-12-30 10:54:49 +00:00
  • aeee3fc309 Bug: folds for section, subsection etc eat up an \end{document}. Solution: include '^\s*\end{document' in the endfoldpattern of the relevant things. Srinath Avadhanula 2002-12-30 09:04:39 +00:00
  • 2dbd35e492 Bug: <S-F5> always says that we are not in an environment. Cause: used double quotes instead of single quotes in a search pattern. Solution: well, duh! Srinath Avadhanula 2002-12-30 08:59:30 +00:00
  • 5da3fcf54c \numberwithin takes 2 arguments, the environment whose numbering to affect and the parent environment to number within. Srinath Avadhanula 2002-12-30 00:48:43 +00:00
  • 32c9e9b897 . repairing the TMacro command. NOTE: There is still a bug in that the user is not left in insert mode... This seems to be a vim bug (?) Srinath Avadhanula 2002-12-30 00:23:53 +00:00
  • 0a2a054203 Bug: When the command TPackage was used without arguments, then the user couldn't choose a package file. The list would scroll by quickly without waiting for user input and no package would be chosen. Cause: Using a command com! Foo normal! i<C-r>=Foo()<CR> where Foo() asks for user input doesn't seem to work in vim. Solution: Benji suggested that we use something like: com! let ret = Foo() <bar> normal! i<C-r>=ret<CR> This causes the normal! command to not have to get any user input. Srinath Avadhanula 2002-12-30 00:16:51 +00:00
  • e53fee14b3 Typo in docs. Visual macros for sections start with comma (,) not backtick (`). Srinath Avadhanula 2002-12-29 23:51:30 +00:00
  • 1a9ba0f14e Disabling diacritics by default. It looks like most people who need accented characters are able to type them directly, and for those who can't, these maps only save one keystroke, while causing a _lot_ of headaches for people who do not use diacritics. Srinath Avadhanula 2002-12-29 23:42:43 +00:00
  • f38dddef7a . changes from the b-newpackages branch Srinath Avadhanula 2002-12-27 23:01:24 +00:00
  • c73f7a959d . changes from the b-newpackages branch. Srinath Avadhanula 2002-12-27 22:59:25 +00:00
  • a6dd849b37 . merging changes from the b-newpackages branch. Srinath Avadhanula 2002-12-27 22:55:44 +00:00
  • 260061d15a . merging changes from the b-newpackages branch. This merge is proving to be a huge pain. Somehow all that concurrent developement on the main trunk and the branch is screwing things up... Dont know why cvs gives me a lot of 'nonmergable' file errors. Srinath Avadhanula 2002-12-27 22:41:11 +00:00
  • dfee14a0b8 . the menu commands didn't work. Fixed that problem. However, now the commands will be a problem... This has been a long standing problem for me. Will write a better log message later using 'cvs admin -m' Srinath Avadhanula 2002-12-27 01:49:58 +00:00
  • 0321a39a69 . removing "other miscellaneous stuff taken from imaps.vim". This stuff was a remenant of my personal ftplugin/tex.vim. Srinath Avadhanula 2002-12-26 23:51:25 +00:00
  • f74228789f Bug: The mappings in latex-suite effect only the first .tex file being edited. Cause: In a recent chage, when IMAP(lhs, rhs, ft) is called with a a:ft != '', then it sets the mapping to be buffer local. This breaks latex-suite which calls the IMAP() functions only once when it is first started, not for every buffer. Changing things so that the mappings are called with every filetype event will be 1. quite time consuming 2. kind of inefficient in that a _lot_ of lines will need to be resourced with every filetype event. Srinath Avadhanula 2002-12-24 12:51:06 +00:00
  • 1ba7ff28f9 . There was a problem with the last commit. The special characters were not changed and one of the Last Change: Sun Dec 22 06:00 PM 2002 P because of my lastchange.vim plugin ! Srinath Avadhanula 2002-12-23 02:11:49 +00:00
  • 97caf1773b . Added a first line to these files containing the specification of the placeholder characters and the other special characters used for dynamic content as a tab delimited list. Srinath Avadhanula 2002-12-23 02:07:42 +00:00
  • b6d539a6b8 . added 3 functions for debugging, Tex_Debug, Tex_PrintDebug and Tex_ClearDebug. echmosg cannot be used in certain places because it leads to hit enter prompts. Also the messages dissapear with time. Srinath Avadhanula 2002-12-23 02:04:50 +00:00
  • 3a3d98c113 . changed the script local s:PlaceHolderStart/End() functions to global IMAP_GetPlaceHolderStart/End() functions. They need to be visible to templates.vim. Srinath Avadhanula 2002-12-23 02:01:49 +00:00
  • 2e3315dd71 Problem: The original mechanism did not account for the placeholder settings being changed. Changed the templates such that the first line contains a tab delimited list of placeholder specifications used in the file as well as the special characters for computing and executing things within the templates. Srinath Avadhanula 2002-12-23 01:59:18 +00:00
  • fa995b3371 Second attempt at modifying s:TexQuotes(). The renaining problem was not with IMAP_Jumpfunc() but with the interaction of the :imap that calls s:TexQuotes() with the various functions that get called. This hack is not too bad, and it seems to work. Benji Fisher 2002-12-22 14:38:10 +00:00
  • c19a151c8a I modified s:TexQuotes() so that empty quotation marks add place holders: by default, "``''<++>" . This does not yet work, and I think the problem is in IMAP_Jumpfunc(). I fixed one error in this function; I am still working on it. Benji Fisher 2002-12-22 14:12:02 +00:00
  • 45b579b67f Bug fix in using the \V modifier in search. In \V mode, beginning of line is matched by \^ Benji Fisher 2002-12-22 14:12:02 +00:00
  • 3e07be2f73 This is an attempt to deal with the encoding problems. If it is successful, then IMAP() should work, regardless of the encoding, even when the place holders are funky (i.e., outside the 7-bit ASCII range). Benji Fisher 2002-12-22 03:39:06 +00:00
  • b394b37626 . b:tw was initialized only when &tw > 0. Remove this restriction. Also change it so that when &tw was initially zero, then do not do anything at all. Srinath Avadhanula 2002-12-22 03:15:44 +00:00
  • e6c185cad6 This is a merge from the b-newimaps branch. The branch was started when a need to robustify imaps.vim was felt. Before, it had a big dependence on "funky" characters. Since imaps.vim affected a lot of files, this commit has a lot of modified files. Srinath Avadhanula 2002-12-22 03:01:11 +00:00
  • 7a7091ac09 fixed package files Mikolaj Machowski 2002-12-13 17:58:32 +00:00
  • b920992e01 new package files Mikolaj Machowski 2002-12-13 17:58:14 +00:00
  • d8f98f338b I replaced IMAP() with Tex_IMAP() and IMAP_PutTextWithMovement() with Tex_PutTextWithMovement() This is a preliminary step before rewriting these two functions. Benji Fisher 2002-12-13 17:24:36 +00:00
  • 723de779d9 1. I changed the installation instructions: the user's texrc file should be put in .../ftplugin/tex/ and it will be :source'd automatically. TODO: All this belongs in a help file, not in the comments. Benji Fisher 2002-12-13 14:47:29 +00:00
  • d5a6731af4 turning off magic space in verbatim type environments Mikolaj Machowski 2002-12-12 23:40:15 +00:00
  • d5f5d47dde Added switch between magic and normal space - F8 Mikolaj Machowski 2002-12-10 21:13:32 +00:00
  • b32acefd05 . The solution in rev 1.2 was incomplete. Instead of using hasmapto('Tex_MathBF') to see whether map exists, use hasmapto('Tex_MathBF', 'i'). This is because hasmapto() uses 'nvo' as default for mode if unspecified. Srinath Avadhanula 2002-12-09 20:41:56 +00:00
  • 0ef6491ee6 Carl Muellers contribution: Srinath Avadhanula 2002-12-09 20:17:15 +00:00
  • 7dc9aa1eac Modification of TPackage command, now it works: :TPackage<cr> use ChooseFile menu :TPackage package<cr> inserts \usepackage[]��{package}�� depending if package has defined options :TPackage package1 package2 inserts \usepackage{package1} \usepackage{package2} Mikolaj Machowski 2002-12-08 16:52:32 +00:00
  • 4b6403316a . Changed the TOC to a more tree like structure. . Added a latex-smart-keys section... . moved some stuff around so as to be consistent with the TOC. Srinath Avadhanula 2002-12-07 11:06:53 +00:00
  • 29136fa707 . code restructuring. gathered all functions towards the end of file. Srinath Avadhanula 2002-12-07 02:19:06 +00:00
  • de4e47374c Marco Aurelio Valtas Cunha writes: Srinath Avadhanula 2002-12-07 01:09:03 +00:00
  • 874d0b753a Changing encoding from one locale to the next causes huge ugly screen flickers. Therefore only change encoding if the original encoding is not latin1. This will at least cause it to be smoother on machines using latin1 encoding. Srinath Avadhanula 2002-12-07 00:43:41 +00:00
  • 057eb56e70 Changes necessary for proper working of Tex_pack_one: now calling :TPackage returns line \usepackage{choice}. Mikolaj Machowski 2002-12-06 23:55:42 +00:00
  • e602ce1aa1 Modification of Tex_ChooseFile() for proper work with choose list. Previously it didn't accept word value because it was calling Tex_Strntok which accepts only digital value. Now it uses Tex_Strntok only if Choice is '\s*\d\+\s*'. In other case it use GetListMatchItem from libList.vim. This is not possible to make different prompt than "Enter Choice:" because this function is called in package, template and macro context. Making it different would require adding additional argument to function. This is not much work but I doubt this is necessary. At the top of the list is information "Choose a macro", "Choose a template", "Choose a package". Mikolaj Machowski 2002-12-06 23:55:35 +00:00
  • a7c49a1c04 1.7:Use a (local) variable s:RemoveLastHistoryItem instead of a (global) function SAImaps_RemoveLastHistoryItem(). Also, clean up some comment lines from a previous change to this file. Benji Fisher 2002-12-06 16:20:00 +00:00
  • af6426b35e . In the following error message: Srinath Avadhanula 2002-12-06 09:48:22 +00:00
  • b6ecc44507 . added the function SetupHotKeys() which map <S-F1> through <S-F4> to insert new environments. . use the g:Tex_PromptedEnvironments and g:Tex_HotKeyMaps instead of some s: variables. . Code restucturing and cleanup. Srinath Avadhanula 2002-12-06 09:44:06 +00:00
  • dd42ca97ef . enable the smart key mapping functions/maps only if the user wants to. Srinath Avadhanula 2002-12-06 09:37:51 +00:00
  • 0f52d99abd . added options to make the auctex inspired additions customizable. 1. g:Tex_PromptedEnvironments defines the environments which latex-suite will ask the user to choose from when a <F5> is pressed. 2. g:Tex_HotKeyMappings are used in the <S-F1> through <S-F4> key mappings. Srinath Avadhanula 2002-12-06 09:36:54 +00:00