From a7e07f6fde9d3997edcf6a2296feae19818a8b17 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Thu, 14 Jul 2016 01:19:38 +0200 Subject: [PATCH] Add subsections to ToC --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94c5fb0..fb4abd3 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ My [vimrc](https://github.com/mhinz/dotfiles/blob/master/vim/vimrc). - [Getting help offline (alternative)](#getting-help-offline-alternative) - [Getting help online](#getting-help-online) - [Autocmds in practice](#autocmds-in-practice) + - [User events](#user-events) + - [Nested autocmds](#nested-autocmds) - [Clipboard](#clipboard) - [Clipboard usage (Windows, OSX)](#clipboard-usage-windows-osx) - [Clipboard usage (Linux, BSD, ...)](#clipboard-usage-linux-bsd-) @@ -1276,7 +1278,7 @@ If you want to report a Vim bug, use the You can trigger any event right now: `:doautocmd BufRead`. ---- +### User events Especially for plugins it's useful to create your own "User" events: @@ -1308,7 +1310,7 @@ if exists('#User#ChibbyExit') endif ``` ---- +### Nested autocmds By default, autocmds do not nest! If an autocmd executes a command, which in turn would usually trigger another event, it won't happen.