-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipos.txt
73 lines (53 loc) · 2.37 KB
/
ipos.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
*ipos.txt* Jump to the last insert start position
Author : obcat <[email protected]>
License : MIT License
Requirement : Vim ?.?.???? or later
==============================================================================
CONTENTS *ipos-contents*
INTRODUCTION |ipos-introduction|
VARIABLES |ipos-variables|
KEY MAPPINGS |ipos-key-mappings|
GLOSSARY |ipos-glossary|
==============================================================================
INTRODUCTION *ipos-introduction* *ipos* *ipos.vim*
*vim-ipos* is a Vim plugin that provides features to jump to the position
where the cursor was last time when Insert-ish mode (|ipos-Insert-ish-mode|)
was started. Concretely,
- A mark |g:ipos#mark| that points the position where the cursor was last time
Insert-ish mode was started
- A key sequence |<Plug>(ipos-startinsert)| to jump to the g:ipos#mark and
then start Insert mode
are contained. These features are similar to Vim's builtin |'^| mark and |gi|
command, respectively.
==============================================================================
VARIABLES *ipos-variables*
g:ipos#mark *g:ipos#mark*
Specifies a lowercase |mark| to be set at the cursor position just
after entering Insert-ish mode (|ipos-Insert-ish-mode|). Default:
>
let g:ipos#mark = 'i'
<
This mark is used by |<Plug>(ipos-startinsert)|.
Similar mark: |'^|
g:ipos_mark *g:ipos_mark*
DEPRECATED: Please use |g:ipos#mark| instead. This will be removed in
the future.
==============================================================================
KEY MAPPINGS *ipos-key-mappings*
<Plug>(ipos-startinsert) *<Plug>(ipos-startinsert)*
Jump to the position where the cursor was last time Insert-ish mode
(|ipos-Insert-ish-mode|) was started, and then start Insert mode.
This can only be used in Normal mode. Example:
>
nmap <Leader>i <Plug>(ipos-startinsert)
<
This uses the mark |g:ipos#mark|. It's different from `{g:ipos#mark}i
when 'virtualedit' is off and the mark is past the end of the line.
Similar command: |gi|
==============================================================================
GLOSSARY *ipos-glossary*
Insert-ish mode *ipos-Insert-ish-mode*
A generic term for |Insert-mode|, |Replace-mode| and
|Virtual-Replace-mode|.
==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl: