From 73f125dcf24db4baabe9be76d02de63be22dbd44 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 5 Nov 2017 20:06:01 +0900 Subject: [PATCH] fix some coding styles in help for command switching colorschemes --- doc/lightline.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/lightline.txt b/doc/lightline.txt index dc9ab50..9595500 100644 --- a/doc/lightline.txt +++ b/doc/lightline.txt @@ -4,7 +4,7 @@ Version: 0.1 Author: itchyny (https://github.com/itchyny) License: MIT License Repository: https://github.com/itchyny/lightline.vim -Last Change: 2017/08/21 08:33:12. +Last Change: 2017/11/05 20:05:17. CONTENTS *lightline-contents* @@ -1252,22 +1252,22 @@ Problem 13: *lightline-problem-13* can easily switch between lightline colorschemes by adding the following LightlineColorscheme command to your .vimrc(_vimrc). > - function! s:setLightlineColorscheme(name) + function! s:set_lightline_colorscheme(name) abort let g:lightline.colorscheme = a:name call lightline#init() call lightline#colorscheme() call lightline#update() - endfun + endfunction - function! s:lightlineColorschemes(...) + function! s:lightline_colorschemes(...) abort return join(map( \ globpath(&rtp,"autoload/lightline/colorscheme/*.vim",1,1), \ "fnamemodify(v:val,':t:r')"), \ "\n") - endfun + endfunction - com! -nargs=1 -complete=custom,s:lightlineColorschemes LightlineColorscheme - \ call s:setLightlineColorscheme() + command! -nargs=1 -complete=custom,s:lightline_colorschemes LightlineColorscheme + \ call s:set_lightline_colorscheme() < Problem 14: *lightline-problem-14* The 'E541' warning appears on the right hand side.