]> git.nbdom.net Git - nb.git/commitdiff
FileCheckSyntaxe Unknow type cmd
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 21 Mar 2023 21:21:57 +0000 (22:21 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 21 Mar 2023 21:21:57 +0000 (22:21 +0100)
etc/vim/source/functions.vim

index d9de05cfd92d06a732290cc39cb537318abb6922..6ce1ea2ab7b919e38ad5d3873653456f6d618626 100644 (file)
@@ -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