diff options
| author | Matthias Pall Gissurarson <mpg@mpg.is> | 2014-12-15 20:51:38 +0000 |
|---|---|---|
| committer | Matthias Pall Gissurarson <mpg@mpg.is> | 2014-12-15 21:08:20 +0000 |
| commit | fac48838ea75e943e2e33bbbd4265d91f464317e (patch) | |
| tree | 0e36699ea9655b95eca160fea9f9aebcacf8090f | |
| parent | 71f380b6b6ed38f739c0a4740b3d6de0c52f915a (diff) | |
fixed inconsistency with vim-surround. fixes #47 and #26.
| -rwxr-xr-x | README.md | 2 | ||||
| -rwxr-xr-x | evil-surround.el | 7 |
2 files changed, 2 insertions, 7 deletions
@@ -11,7 +11,7 @@ Alternatively, you can enable surround-mode along a major mode by adding This package uses [Evil](https://gitorious.org/evil) as its vi layer. ## Add surrounding ## -You can surround in visual-state with `s<textobject><trigger>` +You can surround in visual-state with `S<textobject><trigger>` or in normal-state with `ys<textobject><trigger>`. ## Change surrounding ## diff --git a/evil-surround.el b/evil-surround.el index b75b9a8..3e6e476 100755 --- a/evil-surround.el +++ b/evil-surround.el @@ -273,10 +273,6 @@ Becomes this: (goto-char (overlay-start overlay))) (delete-overlay overlay)))) -(evil-define-operator evil-Surround-region (beg end type char) - "Call surround-region, toggling force-new-line" - (interactive "<R>c") - (evil-surround-region beg end type char t)) ;;;###autoload (define-minor-mode evil-surround-mode @@ -300,8 +296,7 @@ Becomes this: "Global minor mode to emulate surround.vim.") (evil-define-key 'operator evil-surround-mode-map "s" 'evil-surround-edit) -(evil-define-key 'visual evil-surround-mode-map "s" 'evil-surround-region) -(evil-define-key 'visual evil-surround-mode-map "S" 'evil-Surround-region) +(evil-define-key 'visual evil-surround-mode-map "S" 'evil-surround-region) (provide 'evil-surround) |
