From 71aa5f6616a433f74a10844d411901942b269eb7 Mon Sep 17 00:00:00 2001 From: Fredrik Bergroth Date: Fri, 8 Jan 2016 15:16:26 +0100 Subject: [PATCH] Add dotspacemacs-ex-substitute-global setting If non-nil, this setting inverts the behavior of the 'g' flag in :s/pattern/replacement/g --- core/core-dotspacemacs.el | 4 ++++ core/templates/.spacemacs.template | 3 +++ 2 files changed, 7 insertions(+) diff --git a/core/core-dotspacemacs.el b/core/core-dotspacemacs.el index 472e8014a..f27c33318 100644 --- a/core/core-dotspacemacs.el +++ b/core/core-dotspacemacs.el @@ -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.") diff --git a/core/templates/.spacemacs.template b/core/templates/.spacemacs.template index f074477e4..5cc9296c5 100644 --- a/core/templates/.spacemacs.template +++ b/core/templates/.spacemacs.template @@ -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.