aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test54.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/testdir/test54.in')
-rw-r--r--src/nvim/testdir/test54.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/nvim/testdir/test54.in b/src/nvim/testdir/test54.in
new file mode 100644
index 0000000000..9fc6537e08
--- /dev/null
+++ b/src/nvim/testdir/test54.in
@@ -0,0 +1,22 @@
+Some tests for buffer-local autocommands
+
+STARTTEST
+:so small.vim
+:e xx
+:if has("vms")
+: !del test.out.*
+: au BufLeave <buffer> :!write sys$output "buffer-local autommand in %" > test.out
+:else
+: !rm -f test.out
+: au BufLeave <buffer> :!echo buffer-local autommand in %>> test.out
+:endif
+:e somefile " here, autocommand for xx shall write test.out
+: " but autocommand shall not apply to buffer named <buffer>
+:bwipe xx " here, autocommand shall be auto-deleted
+:e xx " nothing shall be written
+:e somefile " nothing shall be written
+:qa!
+ENDTEST
+
+start of test file xx
+end of test file xx