From c449d257075a65ae4404e66c39e17f6bc0d19bd4 Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Fri, 3 Mar 2023 22:03:22 +0100 Subject: disable indentation while pasting answer --- plugin/vim-ai.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugin/vim-ai.vim') diff --git a/plugin/vim-ai.vim b/plugin/vim-ai.vim index 134f878..cd0cd6f 100644 --- a/plugin/vim-ai.vim +++ b/plugin/vim-ai.vim @@ -18,11 +18,13 @@ function! AIRun(...) range execute a:firstline . ',' . a:lastline . 'd' + set paste if a:lastline == buff_lastline execute "normal! o" . output . "\" else execute "normal! O" . output . "\" endif + set nopaste endfunction -- cgit v1.2.3