diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-03-03 22:03:22 +0100 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-03-03 22:03:22 +0100 |
| commit | c449d257075a65ae4404e66c39e17f6bc0d19bd4 (patch) | |
| tree | c0d3b7131fe4c069f2a0f83f8c30cd537b67f87c /plugin/vim-ai.vim | |
| parent | b15261e533d0b1fe60ee7073419e95183629a32c (diff) | |
| download | vim-ai-c449d257075a65ae4404e66c39e17f6bc0d19bd4.tar.gz | |
disable indentation while pasting answer
Diffstat (limited to '')
| -rw-r--r-- | plugin/vim-ai.vim | 2 |
1 files changed, 2 insertions, 0 deletions
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 . "\<Esc>" else execute "normal! O" . output . "\<Esc>" endif + set nopaste endfunction |