vim: move classify code to top for reusability
vim: make backward word (b) use VIM-style word boundaries.