diff --git a/autoload/SpaceVim/layers/VersionControl.vim b/autoload/SpaceVim/layers/VersionControl.vim index 12431a211..1dbe5b342 100644 --- a/autoload/SpaceVim/layers/VersionControl.vim +++ b/autoload/SpaceVim/layers/VersionControl.vim @@ -324,7 +324,7 @@ function! s:change_options(key) abort endif setlocal modifiable let content = s:generate_git_log_popup_content() - normal! "_ggdG + normal! gg"_dG call setline(1, content) setlocal nomodifiable endif diff --git a/autoload/SpaceVim/plugins/flygrep.vim b/autoload/SpaceVim/plugins/flygrep.vim index 0e1ddc101..8e930a6e9 100644 --- a/autoload/SpaceVim/plugins/flygrep.vim +++ b/autoload/SpaceVim/plugins/flygrep.vim @@ -372,7 +372,7 @@ function! s:close_grep_job() abort endif call timer_stop(s:grep_timer_id) call timer_stop(s:preview_timer_id) - noautocmd normal! "_ggdG + noautocmd normal! gg"_dG call s:update_statusline() let s:complete_input_history_num = [0,0] endfunction @@ -753,7 +753,7 @@ function! s:previous_match_history() abort endif let s:complete_input_history_num[0] += 1 let s:MPT._prompt.begin = s:complete_input_history(s:complete_input_history_base, s:complete_input_history_num) - noautocmd normal! "_ggdG + noautocmd normal! gg"_dG call s:MPT._handle_fly(s:MPT._prompt.begin . s:MPT._prompt.cursor .s:MPT._prompt.end) endfunction @@ -765,7 +765,7 @@ function! s:next_match_history() abort endif let s:complete_input_history_num[1] += 1 let s:MPT._prompt.begin = s:complete_input_history(s:complete_input_history_base, s:complete_input_history_num) - noautocmd normal! "_ggdG + noautocmd normal! gg"_dG call s:MPT._handle_fly(s:MPT._prompt.begin . s:MPT._prompt.cursor .s:MPT._prompt.end) endfunction diff --git a/autoload/SpaceVim/plugins/help.vim b/autoload/SpaceVim/plugins/help.vim index 4e2ea1bb2..e5c0bc534 100644 --- a/autoload/SpaceVim/plugins/help.vim +++ b/autoload/SpaceVim/plugins/help.vim @@ -127,7 +127,7 @@ function! s:open_describe_buffer(desc) abort exe winnr . 'wincmd w' endif setlocal modifiable - silent normal! "_ggdG + silent normal! gg"_dG silent call setline(1, a:desc) setlocal nomodifiable let b:defind_file_name = split(a:desc[-1][12:], ':')