Mercurial > vim
comparison runtime/doc/usr_41.txt @ 34387:e6defaa1e46a v9.1.0120
patch 9.1.0120: hard to get visual region using Vim script
Commit: https://github.com/vim/vim/commit/3f905ab3c4f66562f4a224bf00f49d98a0b0da91
Author: Shougo Matsushita <Shougo.Matsu@gmail.com>
Date: Wed Feb 21 00:02:45 2024 +0100
patch 9.1.0120: hard to get visual region using Vim script
Problem: hard to get visual region using Vim script
Solution: Add getregion() Vim script function
(Shougo Matsushita, Jakub ?uczy?ski)
closes: #13998
closes: #11579
Co-authored-by: =?UTF-8?q?Jakub=20=C5=81uczy=C5=84ski?= <doubleloop@o2.pl>
Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 21 Feb 2024 00:15:02 +0100 |
parents | cce6b834635c |
children | 8d14e400cd20 |
comparison
equal
deleted
inserted
replaced
34386:d9a589d77d3e | 34387:e6defaa1e46a |
---|---|
1 *usr_41.txt* For Vim version 9.1. Last change: 2024 Feb 01 | 1 *usr_41.txt* For Vim version 9.1. Last change: 2024 Feb 20 |
2 | 2 |
3 VIM USER MANUAL - by Bram Moolenaar | 3 VIM USER MANUAL - by Bram Moolenaar |
4 | 4 |
5 Write a Vim script | 5 Write a Vim script |
6 | 6 |
927 getcursorcharpos() get character position of the cursor | 927 getcursorcharpos() get character position of the cursor |
928 setcursorcharpos() set character position of the cursor | 928 setcursorcharpos() set character position of the cursor |
929 | 929 |
930 Working with text in the current buffer: *text-functions* | 930 Working with text in the current buffer: *text-functions* |
931 getline() get a line or list of lines from the buffer | 931 getline() get a line or list of lines from the buffer |
932 getregion() get a region of text from the buffer | |
932 setline() replace a line in the buffer | 933 setline() replace a line in the buffer |
933 append() append line or list of lines in the buffer | 934 append() append line or list of lines in the buffer |
934 indent() indent of a specific line | 935 indent() indent of a specific line |
935 cindent() indent according to C indenting | 936 cindent() indent according to C indenting |
936 lispindent() indent according to Lisp indenting | 937 lispindent() indent according to Lisp indenting |