I wrote:
> This works quite well:
>
> func! Sow()
> if (getline(".")[col(".") - 1] =~ '\k')
> normal wb
> else
> call search('\<', 'sW')
> endif
> endfunc
Or even better:
func! StartOfWord()
call search('.\>', 'cWs')
call search('\<', 'cWb')
endfunc
Rob.
--
Robert Webb <[EMAIL PROTECTED]>,
Want to make polyhedra?
http://www.software3d.com/Stella.php
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---