Commit Graph

679 Commits

Author SHA1 Message Date
Øystein Walle
5eeef2c4d8 Change snippets to use getShell() 2012-11-03 17:13:22 +01:00
Øystein Walle
630b74872b Add test to determine shell
The 'sh' filetype in Vim covers sh, bash and ksh. This function looks
for declared variables that results from Vim's own test. The global
variables are checked first since they are typically specifed by the
user in .vimrc
2012-11-03 17:12:50 +01:00
Øystein Walle
5f1f8d6700 Add snippets for zsh
zsh is a seperate filetype from sh in Vim. This uses the sh snippets
while changing the shebang-related snippets.
2012-11-03 15:48:27 +01:00
Holger Rapp
39f9d77fe3 Improvements to C snippets by Vivien Didelot 2012-11-02 12:46:19 +01:00
Holger Rapp
890e1b6bd5 Bug fixes for D snippets. 2012-11-02 12:20:50 +01:00
kiith-sa
a004ad3dd0 Fixed two minor bugs. 2012-11-01 20:37:58 +01:00
Holger Rapp
629ff849ec New D-snippets from Ferdinand Majerech 2012-11-01 18:34:42 +01:00
kiith-sa
80a60bf818 Added snippets for the D programming language. 2012-11-01 16:57:16 +01:00
Holger Rapp
30fac27e9d Improved documentation a bit. 2012-10-25 07:18:27 +02:00
Holger Rapp
da776e37b5 Updated the installation doc correctly this time. 2012-10-23 19:14:00 +02:00
Holger Rapp
57e08fbe87 Updated installation documentation 2012-10-17 10:13:34 +02:00
Holger Rapp
27cae38529 DEL and c-h now behave as BS in select mode. Patch partly by buztard 2012-10-14 11:41:22 +02:00
Holger Rapp
4d642ddee3 ife snippet for C by theocrite 2012-10-13 12:11:50 +02:00
Holger Rapp
ed941fb59a Removed content tag from html snippets. 2012-10-08 09:10:19 +02:00
Holger Rapp
1690986d23 Indicate success or failure of expansions and jumps
Patch by Jorge Rodrigues.
2012-09-06 19:38:41 +02:00
Holger Rapp
5fe09b8e3a Improved the div snippet in html a bit 2012-09-03 19:29:04 +02:00
Holger Rapp
bb75169301 Updated ChangeLog 2012-09-01 20:13:56 +02:00
Holger Rapp
3fc86a36a8 Fix for folding problem by Aaron 2012-08-22 11:55:31 +02:00
Holger Rapp
e283500a24 Patch by Aaron: optionally disable warning for no Python 2012-08-21 12:51:16 +02:00
Holger Rapp
a916c607b5 Matchit support + small fix by Aaron 2012-08-21 12:48:06 +02:00
Aaron Schrab
5f6d281687 Matchit support for snippet files
If the matchit (http://www.vim.org/scripts/script.php?script_id=39)
plugin is loaded, define pairs to be handled by the % key.
2012-08-21 12:47:20 +02:00
Aaron Schrab
1f151bea64 Remove obsolete comment
Change in b319569 made this comment obsolete.
2012-08-15 23:38:41 -04:00
Holger Rapp
fe81063b60 Improvements to the syntax file by NagatoPain 2012-08-15 14:16:50 +02:00
stardiviner
736698469e improve snipVar matches, like 10 100 etc 2012-08-15 14:15:37 +02:00
Holger Rapp
b319569b7b Fixed bug 1034805: Langmap with escaped characters where a problem 2012-08-15 14:13:50 +02:00
Holger Rapp
aae704bd1a Merged Patch by Aaron Schrab 2012-08-15 11:41:16 +02:00
Aaron Schrab
c04b6aa7bb Leave new scratch buffers in command mode
Modify new_scratch_buffer method to leave the created buffer in command
rather than insert mode.  Currently the only use of this method is for
showing stack traces for errors, when that happens it's much more likely
that the user will want to use command mode to move around than to use
insert mode to add text to the beginning of the buffer.
2012-08-13 12:13:03 -04:00
Aaron Schrab
3584ee3421 Add test with perl syntax folding
Exercise changes from commit 7335225, to check that the problem fixed by
that doesn't recur.

I've run all tests including this one both with and without the
previously mentioned commit, the new test only passes if that commit is
included.  All other tests pass in either case.
2012-08-09 13:19:51 -04:00
Holger Rapp
f98bcd6f53 Test script refactorings by Aaron Schrab 2012-08-09 15:42:16 +02:00
Aaron Schrab
8e3f419c44 Fix tests to work with new version of screen
Debian unstable currently has a pre-release version of screen 4.1.0.
This version changes the "stuff" command so that special characters get
parsed, breaking many of the tests.

Detect if the version of screen being used to run tests does this
parsing, and if so do additional escaping of characters so that tests
again work.

With this change, all tests pass with both old and new versions of
screen.
2012-08-08 19:57:55 -04:00
Aaron Schrab
2ab17b6cca Move getting buffer data into interface class
Put the code that instructs vim to write its buffer to a temporary file
and then reads that file into a python string into the VimInterface
class.  This will allow that to be done by code outside of tests.
2012-08-08 19:57:55 -04:00
Aaron Schrab
fc22af0d1e Use classes for managing vim interaction
Create classes for interacting with vim, a base class with common
methods, a class for interacting via screen, and one for interacting on
Windows.

At startup time an instance of one of these classes is created, and that
object is passed to all of the tests instead of the session.

I haven't been able to get UltiSnips working in vim on Windows to really
test this, but I have verified that vim interactions still work.
2012-08-08 19:57:33 -04:00
Aaron Schrab
461a475d2a Have test script set vim buffer type to nofile
Instruct vim not to complain about quitting without writing the buffer
used to run tests by setting the buftype option to nofile.
2012-08-08 19:39:50 -04:00
Aaron Schrab
2f7317ed8f Document UltiSnipsNoPythonWarning variable
As requested in SirVer/ultisnips#24
2012-08-06 15:45:48 -04:00
Holger Rapp
a1f9776037 Improved HTML and PHP snippets. Patch by Jacek Wysocki 2012-08-06 11:21:50 +02:00
Aaron Schrab
0f08e2e553 Allow suppressing warning about python support
Don't warn about missing python support if the UltiSnipsNoPythonWarning
variable is defined.  This allows users to use a common set of vim
configuration files across a range of systems, even if some of them do
not have python support compiled into vim.
2012-07-31 15:42:35 -04:00
Aaron Schrab
c9bb2921dc Dummy version of UltiSnips_FileTypeChanged()
Define a dummy version of the UltiSnips_FileTypeChanged function before
checking for python support.  If that function isn't defined, the
autocommand defined in ftdetect/UltiSnips.vim will cause an error any
time a new file is opened.  That autocommand is setup before the
function is defined, so we can't setup the autocommand only when the
function exists.
2012-07-31 15:25:36 -04:00
Aaron Schrab
73352257e4 Fix opening folds inserted by snippets
Commit 13331a8 added code to show the current line after insertions, but
later changes caused that to be called too soon.  This left folds
created by a snippet closed, and the cursor at the end of the insertion.
2012-07-31 15:01:15 -04:00
Holger Rapp
890291e42d Adhere to pseudostandard of length of sections in Vim help. Patch by Martin Krauskopf 2012-07-08 12:01:25 +02:00
Alexander Kondratskiy
e9a783857b Better commentboxes. Patch by Alexander Kondratskiy. 2012-07-02 13:14:10 +02:00
Holger Rapp
9cc7c92b5e Updated ChangeLog 2012-06-27 11:43:32 +02:00
Holger Rapp
632ebf5147 added full name of pavel 2012-06-26 11:29:14 +02:00
Holger Rapp
3860ca8d8c Merge pull request #19 from neoascetic/master
Fixes for Markdown
2012-06-26 02:28:20 -07:00
Holger Rapp
44b03675b5 Added exu to the list of contributors 2012-06-26 11:25:29 +02:00
Holger Rapp
066a83d25c Merge branch 'exu' 2012-06-26 11:24:11 +02:00
Holger Rapp
72715d3143 Made an error message more sensible 2012-06-26 11:22:24 +02:00
Pavel Puchkin
ff79899ac3 "markdown" is right filetype, not "mkd" 2012-06-26 19:31:29 +11:00
Pavel Puchkin
7df7896235 Merge branch 'master' of git://github.com/SirVer/ultisnips 2012-06-26 19:18:48 +11:00
Pavel Puchkin
5256107d5f Typo fix in markdown snippet 2012-06-26 19:17:25 +11:00
Holger Rapp
50254a3a77 Ignore unicode/decode errors. This is so that UltiSnips tries harder to stay out of your way 2012-06-26 10:10:42 +02:00