[EMAIL PROTECTED] wrote:
Hello,

is it possible in a vimrc for comma separated
option strings like this one below to break:

set
dictionary=$VIM\SQLDict\BPMS_Stamm.txt,$VIM\SQLDict\BPMS_Mandant.txt,$VIM\SQL
Dict\CBS_2005.txt,$VIM\SQLDict\ICCS_Net_Strommixer.txt,$VIM\SQLDict\DBS.txt,$
VIM\SQLDict\cbsbestenergy.txt,$VIM\SQLDict\iccs_2005.txt... many other
files..


Thank You

Joachim
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/



For a comma-separated list you can use ":set +=", as follows:

  set dictionary=$VIM\SQLDict\BPMS_Stamm.txt
  set dictionary+=$VIM\SQLDict\BPMS_Mandant.txt
  set dictionary+=$VIM\SQLDict\CBS_2005.txt
  set dictionary+=$VIM\SQLDict\ICCS_Net_Strommixer.txt
  set dictionary+=$VIM\SQLDict\DBS.txt
  set dictionary+=$VIM\SQLDict\cbsbestenergy.txt
  set dictionary+=$VIM\SQLDict\iccs_2005.txt
etc.

Each string is appended: with += at the end of the current value (and preceded by a comma if the option wasn't empty); with ^= at the start of the current value (and followed by a comma if the option wasn't empty).

":set +=" and ":set ^=" can be used with three kinds of options: numbers (arithmetic add or multiply), comma-separated lists (append or prepend, with comma) or sets of flags (append or prepend, without comma). IIUC they can also be used (maybe less usefully) for any string options.

See
        :help :set+=
        :help :set^=

Best regards,
Tony.
--
"Grub first, then ethics."
                -- Bertolt Brecht

Reply via email to