0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.1.1213: cannot :put while keeping indent

Problem:  cannot :put while keeping indent
          (Peter Aronoff)
Solution: add the :iput ex command (64-bitman)

fixes: #16225
closes: #16886

Signed-off-by: 64-bitman <60551350+64-bitman@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
64-bitman
2025-03-16 21:10:47 +01:00
committed by Christian Brabandt
parent 7ceca3eb00
commit 250739d442
18 changed files with 268 additions and 81 deletions

View File

@@ -1,4 +1,4 @@
*change.txt* For Vim version 9.1. Last change: 2024 Dec 15
*change.txt* For Vim version 9.1. Last change: 2025 Mar 16
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1149,6 +1149,11 @@ inside of strings can change! Also see 'softtabstop' option. >
:[line]pu[t]! [x] Put the text [from register x] before [line] (default
current line).
*:ip* *:iput*
:[line]ip[ut] [x] like |:put|, but adjust indent to the current line
:[line]ip[ut]! [x] like |:put|!, but adjust indent to the current line
["x]]p or *]p* *]<MiddleMouse>*
["x]]<MiddleMouse> Like "p", but adjust the indent to the current line.
Using the mouse only works when 'mouse' contains 'n'

View File

@@ -1,4 +1,4 @@
*index.txt* For Vim version 9.1. Last change: 2025 Jan 03
*index.txt* For Vim version 9.1. Last change: 2025 Mar 16
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1400,6 +1400,8 @@ tag command action ~
|:inoremenu| :inoreme[nu] like ":noremenu" but for Insert mode
|:intro| :int[ro] print the introductory message
|:interface| :interface start of an interface declaration
|:iput| :ip[ut] like |:put|, but adjust the indent to the
current line
|:isearch| :is[earch] list one line where identifier matches
|:isplit| :isp[lit] split window and jump to definition of
identifier

View File

@@ -2710,6 +2710,8 @@ $quote eval.txt /*$quote*
:insert insert.txt /*:insert*
:interface vim9class.txt /*:interface*
:intro starting.txt /*:intro*
:ip change.txt /*:ip*
:iput change.txt /*:iput*
:is tagsrch.txt /*:is*
:isearch tagsrch.txt /*:isearch*
:isp tagsrch.txt /*:isp*

View File

@@ -1,4 +1,4 @@
*version9.txt* For Vim version 9.1. Last change: 2025 Mar 15
*version9.txt* For Vim version 9.1. Last change: 2025 Mar 16
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -41704,6 +41704,10 @@ Highlighting: ~
Commands: ~
|[r| and |]r| to move the cursor to previous/next rare word
Ex-Commands: ~
|:iput| like |:put| but adjust indent
|:pbuffer| Edit buffer [N] from the buffer list in the preview
window