On Jul 23, 2011, at 11:10 AM, Tony Berkopes wrote:

> let s D system("wc -w ".expand("%p"))  <=========== PROBLEM IS HERE let s D 
> system(.... should be let s = system(...

Hm. Wonder how that got changed. Anyway, I've made the correction, sourced 
.vimrc, and don't get any error messages. 

However, I don't know how to run the script. Neither wc nor WC works. 

The comment on the third response at the page Arthur linked to
http://stackoverflow.com/questions/114431/fast-word-count-function-in-vim/120386#120386
suggests with the status line assignment runs on its own and updates the status 
line whenever you stop typing. Is that right?

> " STATUSLINE ASSIGNMENT IS HERE
> set statusline+=[wc:%{WordCount()}]

Is the above sufficient to establish a status line, i.e., cause one to be 
displayed, or does that need to be set separately? Currently I do not have a 
status line. Could this be the source of my problem?

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net




-- 
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

Reply via email to