From 591670a0459c146dde073ff1fe6422bd29ce3b36 Mon Sep 17 00:00:00 2001 From: Arith Xu Date: Wed, 13 Dec 2017 15:44:36 +0800 Subject: [PATCH] add noautocmd when moving lines up or down --- autoload/SpaceVim/layers/edit.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim/layers/edit.vim b/autoload/SpaceVim/layers/edit.vim index d3cd9973f..bf72fb0a5 100644 --- a/autoload/SpaceVim/layers/edit.vim +++ b/autoload/SpaceVim/layers/edit.vim @@ -211,7 +211,7 @@ function! s:text_transient_state() abort \ 'key' : 'J', \ 'desc' : 'move text down', \ 'func' : '', - \ 'cmd' : 'silent! m .+1', + \ 'cmd' : 'noautocmd silent! m .+1', \ 'exit' : 0, \ }, \ ], @@ -219,7 +219,7 @@ function! s:text_transient_state() abort \ { \ 'key' : 'K', \ 'func' : '', - \ 'desc' : 'move text up', + \ 'desc' : 'noautocmd move text up', \ 'cmd' : 'silent! m .-2', \ 'exit' : 0, \ },