From 604f744727e57e5dfeb255940621733952dbb27d Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 20 Jan 2016 23:53:14 +0100 Subject: [PATCH] fix typo in documentation about formatters fixes #873 --- doc/airline.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/airline.txt b/doc/airline.txt index 529a619..ba9349c 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -500,7 +500,9 @@ exposed. let g:airline#extensions#tabline#formatter = 'default' " here is how you can define a 'foo' formatter: - function! airline#extensions#tabline#foo#format(bufnr, buffers) + " create a file in the dir autoload/airline/extensions/tabline/formatter/ + " called foo.vim + function! airline#extensions#tabline#formatter#foo#format(bufnr, buffers) return fnamemodify(bufname(a:bufnr), ':t') endfunction let g:airline#extensions#tabline#formatter = 'foo'