Hi, On Thu, Jul 21, 2011 at 16:20, Eric Weir <eew...@bellsouth.net> wrote:
> I've found a "manuscript word count" plugin at vim.org. Next time it would be nice to have a final link to the objected resource included in your message, instead of possible responders first have to search. In this case this would have been <url: http://www.vim.org/scripts/script.php?script_id=1191> The creator explains that "Standard word count utilities (like unix 'wc') do > not provide an accurate count because they count breaks between words. In > fiction writing, some sentences--like this one--have more words than breaks > between words." > How the h*** can you have more words than breaks between them? Ain't a word the thing between to non-word things? Whatever ... > So it does what I want but there are no installation instructions and I'm > not certain how to install it. I put it in ~/.vim/plugin and reloaded Vim > but it does not work. > That's right. And in "Konsole.app" one can see why: org.vim.MacVim[7660]: Error detected while processing ~/.vim/plugin/wc.vim: org.vim.MacVim[7660]: line 4: org.vim.MacVim[7660]: E492: Not an editor command: ^M org.vim.MacVim[7660]: line 9: org.vim.MacVim[7660]: E15: Invalid expression: !&cp && !exists(":WC") && has("user_commands")^M org.vim.MacVim[7660]: line 57: org.vim.MacVim[7660]: E171: Missing :endif This nice little "plugin" is obviously DOS-ed. Solution: - move the file "wc.vim" out of "~/.vim/.plugin", open it with "vim" or "MacVim". - Execute ":set filetype=unix" and force a save. - Quit vim/MacVim - move "wc.vim" to "~/.vim/plugin" - be happy Honestly: a plugin author that does not know about different line ending styles does word count better than "wc" (which exists for aeons and nevertheless does wrong?)? I'm impressed. A little ... -- Regards, Peter -- You received this message from the "vim_mac" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php