Variable: viper-syntax-preference

viper-syntax-preference is a customizable and buffer-local variable defined in viper-util.el.gz.

Documentation

Syntax type characterizing Viper's alphanumeric symbols.

Affects movement and change commands that deal with Vi-style words. Works best when set in the hooks to various major modes.

strict-vi means Viper words are (hopefully) exactly as in Vi.

reformed-vi means Viper words are like Emacs words (as determined using Emacs syntax tables, which are different for different major modes) with two exceptions: the symbol _ is always part of a word and typical Vi non-word symbols like ``', \=', :, ", ), and { are excluded. This behaves very close to strict-vi, but also works well with non-ASCII characters from various alphabets.

extended means Viper word constituents are symbols that are marked as being parts of words OR symbols in Emacs syntax tables. This is most appropriate for major modes intended for editing programs.

emacs means Viper words are the same as Emacs words as specified by Emacs syntax tables. This option is appropriate if you like Emacs-style words.

Source Code

;; Defined in /usr/src/emacs/lisp/emulation/viper-util.el.gz
(defcustom viper-syntax-preference 'reformed-vi
  "Syntax type characterizing Viper's alphanumeric symbols.
Affects movement and change commands that deal with Vi-style words.
Works best when set in the hooks to various major modes.

`strict-vi' means Viper words are (hopefully) exactly as in Vi.

`reformed-vi' means Viper words are like Emacs words \(as determined using
Emacs syntax tables, which are different for different major modes) with two
exceptions: the symbol `_' is always part of a word and typical Vi non-word
symbols like `\\=`', `\\='', `:', `\"', `)', and `{' are excluded.
This behaves very close to `strict-vi', but also works well with non-ASCII
characters from various alphabets.

`extended' means Viper word constituents are symbols that are marked as being
parts of words OR symbols in Emacs syntax tables.
This is most appropriate for major modes intended for editing programs.

`emacs' means Viper words are the same as Emacs words as specified by Emacs
syntax tables.
This option is appropriate if you like Emacs-style words."
  :type '(radio (const strict-vi) (const reformed-vi)
		 (const extended) (const emacs))
  :set #'viper-set-syntax-preference
  :local t
  :group 'viper)