Add dotspacemacs-ex-substitute-global setting

If non-nil, this setting inverts the behavior of the 'g' flag in

    :s/pattern/replacement/g
This commit is contained in:
Fredrik Bergroth 2016-01-08 15:16:26 +01:00 committed by syl20bnr
parent de4c7502c0
commit 71aa5f6616
2 changed files with 7 additions and 0 deletions

View File

@ -140,6 +140,10 @@ size to make separators look not too crappy.")
(defvaralias 'dotspacemacs-remap-Y-to-y$ 'evil-want-Y-yank-to-eol
"If non nil `Y' is remapped to `y$'.")
(defvaralias 'dotspacemacs-ex-substitute-global 'evil-ex-substitute-global
"If non nil, `:substitute' changes all matches in a line by default.
The `g' flag toggles one or all matches.")
(defvar dotspacemacs-default-layout-name "Default"
" Name of the default layout.")

View File

@ -134,6 +134,9 @@ values."
;; (Not implemented) dotspacemacs-distinguish-gui-ret nil
;; If non nil `Y' is remapped to `y$'. (default t)
dotspacemacs-remap-Y-to-y$ t
;; If non nil, `:substitute' changes all matches in a line by default.
;; (default t)
dotspacemacs-ex-substitute-global t
;; Name of the default layout (default "Default")
dotspacemacs-default-layout-name "Default"
;; If non nil the default layout name is displayed in the mode-line.