modify command ResetIndentLines as IndentLinesReset

This commit is contained in:
Yggdroot
2013-01-23 14:40:37 +08:00
parent 513ad7e095
commit b26c723fb1
2 changed files with 9 additions and 5 deletions

View File

@@ -1,9 +1,9 @@
" Script Name: indentLine.vim " Script Name: indentLine.vim
" Version: 1.0.3 " Version: 1.0.4
" Last Change: Dec 25, 2012 " Last Change: Jan 23, 2013
" Author: Yggdroot <archofortune@gmail.com> " Author: Yggdroot <archofortune@gmail.com>
" "
" Description: To show the indent line " Description: To show the indent lines
if !has("conceal") || exists("g:indentLine_loaded") if !has("conceal") || exists("g:indentLine_loaded")
finish finish
@@ -94,7 +94,7 @@ endfunction
autocmd BufWinEnter * call <SID>Setup() autocmd BufWinEnter * call <SID>Setup()
autocmd BufRead,ColorScheme * call <SID>InitColor() autocmd BufRead,ColorScheme * call <SID>InitColor()
command! -nargs=? ResetIndentLines call <SID>ResetWidth(<f-args>) command! -nargs=? IndentLinesReset call <SID>ResetWidth(<f-args>)
command! IndentLinesToggle call <SID>IndentLinesToggle() command! IndentLinesToggle call <SID>IndentLinesToggle()
" vim:et:ts=4:sw=4:fdm=marker:fmr={{{,}}} " vim:et:ts=4:sw=4:fdm=marker:fmr={{{,}}}

View File

@@ -49,10 +49,13 @@ g:indentLine_indentLevel *g:indentLine_indentLevel*
============================================================================== ==============================================================================
COMMANDS *indentLine-commands* COMMANDS *indentLine-commands*
ResetIndentLines [number] IndentLinesReset [number]
if 'shiftwidth' changes, using this command can redraw the if 'shiftwidth' changes, using this command can redraw the
indentLines. number is optional, it means the width between indentLines. number is optional, it means the width between
two indent level, if ommited, value of 'shiftwidth' is used. two indent level, if ommited, value of 'shiftwidth' is used.
IndentLinesToggle
toggle the indent lines of the current buffer.
============================================================================== ==============================================================================
FAQ *indentLine-faq* FAQ *indentLine-faq*
@@ -66,5 +69,6 @@ Thanks to the following people for suggestions and patches:
NagatoPain NagatoPain
Salman Halim Salman Halim
Christophe
============================================================================== ==============================================================================
vim:tw=78:ts=8:ft=help:norl:noet vim:tw=78:ts=8:ft=help:norl:noet