17 lines · 527 B · Text
RawDownload
Some tests for buffer-local autocommands STARTTEST:so small.vim:e xx:!rm -f test.out:au BufLeave <buffer> :!echo buffer-local autommand in %>> test.out: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 xxend of test file xx

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t