diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-27 09:06:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-27 01:06:46 +0000 |
commit | 750e1836afb49b860fa11b4336a7ae351720a553 (patch) | |
tree | d46b75c6d0bc947fcfc268e2e103e6fdf1a9547a /runtime | |
parent | 8f40ffdb92b6ca25529b470e4a4e2bb7ddbb000a (diff) | |
download | rneovim-750e1836afb49b860fa11b4336a7ae351720a553.tar.gz rneovim-750e1836afb49b860fa11b4336a7ae351720a553.tar.bz2 rneovim-750e1836afb49b860fa11b4336a7ae351720a553.zip |
vim-patch:9.1.1224: cannot :put while keeping indent (#33076)
Problem: cannot :put while keeping indent (Peter Aronoff)
Solution: add the :iput ex command (64-bitman)
fixes: vim/vim#16225
closes: vim/vim#16886
https://github.com/vim/vim/commit/e08f10a55c3f15b0b4af631908551d88ec4fe502
Cherry-pick test_put.vim changes from patch 8.2.1593.
N/A patches:
vim-patch:9.1.1213: cannot :put while keeping indent
vim-patch:9.1.1215: Patch 9.1.1213 has some issues
Co-authored-by: 64-bitman <60551350+64-bitman@users.noreply.github.com>
Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/change.txt | 5 | ||||
-rw-r--r-- | runtime/doc/index.txt | 2 | ||||
-rw-r--r-- | runtime/doc/news.txt | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index f7cbf7fd36..3d71c3e032 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -1105,6 +1105,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' diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt index b814b3be78..4744b24e84 100644 --- a/runtime/doc/index.txt +++ b/runtime/doc/index.txt @@ -1348,6 +1348,8 @@ tag command action ~ |:inoreabbrev| :inorea[bbrev] like ":noreabbrev" but for Insert mode |:inoremenu| :inoreme[nu] like ":noremenu" but for Insert mode |:intro| :int[ro] print the introductory message +|: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 diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 7bdacd73bf..ad1481e304 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -115,7 +115,7 @@ DIAGNOSTICS EDITOR -• todo +• |:iput| works like |:put| but adjusts indent. EVENTS |