mirror of
https://gitlab.com/wsdjeg/vim-galore-zh_cn.git
synced 2025-01-19 12:49:28 +08:00
Reset value on cmd
This commit is contained in:
parent
3a198165c9
commit
bea19b4461
@ -1,9 +1,4 @@
|
|||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
let s:file = []
|
|
||||||
let s:linenr = 0
|
|
||||||
let s:colnr = 0
|
|
||||||
let s:qf = []
|
|
||||||
let s:bufnr = 0
|
|
||||||
let s:ERRORS = {
|
let s:ERRORS = {
|
||||||
\ 'E001' : ['中文字符后使用英文标点', '[^a-zA-Z],'],
|
\ 'E001' : ['中文字符后使用英文标点', '[^a-zA-Z],'],
|
||||||
\ }
|
\ }
|
||||||
@ -12,6 +7,9 @@ command! -nargs=? CheckChinese call s:check(<q-args>)
|
|||||||
function! s:check(...) abort
|
function! s:check(...) abort
|
||||||
let s:file = getline(1,'$')
|
let s:file = getline(1,'$')
|
||||||
let s:bufnr = bufnr('$')
|
let s:bufnr = bufnr('$')
|
||||||
|
let s:linenr = 0
|
||||||
|
let s:colnr = 0
|
||||||
|
let s:qf = []
|
||||||
for l:line in s:file
|
for l:line in s:file
|
||||||
let s:linenr += 1
|
let s:linenr += 1
|
||||||
call s:parser(l:line)
|
call s:parser(l:line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user