From: Nicolas Boisselier Date: Tue, 21 Mar 2023 21:21:57 +0000 (+0100) Subject: FileCheckSyntaxe Unknow type cmd X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=91fe9ba0b004dfc68e5b095a95cc954393a04409;p=nb.git FileCheckSyntaxe Unknow type cmd --- diff --git a/etc/vim/source/functions.vim b/etc/vim/source/functions.vim index d9de05cf..6ce1ea2a 100644 --- a/etc/vim/source/functions.vim +++ b/etc/vim/source/functions.vim @@ -37,7 +37,13 @@ func! FileCheckSyntaxe() if ( g:mimeCheck->get(FileType()) == '0') echoerr "Unknown filetype: ".&filetype - let cmd = 'xargs -IZ sh -c "ls -ahl Z" <<<' + let cmd = 'xargs -IZ sh -c "ls -ahl Z && wc Z|sed' + \ .' -e \"s/^ */lines=/\"' + \ .' -e \"s/ \+/,words=/\"' + \ .' -e \"s/ \+/,bytes=/\"' + \ .' -e \"s/ \+\/.*$//\"' + \ .'" <<<' + "let cmd = 'xargs -IZ sh -c "ls -ahl Z && wc Z|cut -d\" \" -f3-6" <<<' else let cmd = g:mimeCheck->get(FileType()) endif