Map q to quit easily when submitting p4 and svn.
[profile.git] / .vim / doc / move.txt
1 *move.txt* Moving lines and selections up and even down
2
3 Author: Matthias Vogelgesang <github.com/matze>
4 License: MIT (see |move-license|)
5
6 ===============================================================================
7 Contents                                                        *move-contents*
8
9     1. Usage..................................|move-usage|
10     2. Mappings...............................|move-mappings|
11     3. License................................|move-license|
12     4. Changelog..............................|move-changelog|
13
14 ===============================================================================
15 1. Usage                                                           *move-usage*
16
17 The move plugin is used to move lines and visual selections up and down by
18 wrapping the :move command.
19
20 ===============================================================================
21 2. Mappings                                                     *move-mappings*
22
23 To enable custom key maps you must disable the automatic key maps with >
24
25     let g:move_map_keys = 0
26
27 The plugin provide finger-friendly mappings to move text around by using <jk>
28 keys. Your can specify the key modifier that uses in key bindings with >
29
30     let g:move_key_modifier = 'M'
31
32 All mappings can be prefixed with a {count} and will move {count} steps
33 instead of one.
34
35 -------------------------------------------------------------------------------
36 2.1 <Plug>MoveBlockDown
37
38 Move selected block down by one line.
39
40 Default: vmap <A-j> <Plug>MoveBlockDown
41
42 -------------------------------------------------------------------------------
43 2.2 <Plug>MoveBlockUp
44
45 Move selected block up by one line.
46
47 Default: vmap <A-k> <Plug>MoveBlockUp
48
49 -------------------------------------------------------------------------------
50 2.3 <Plug>MoveLineDown
51
52 Move current line down by one.
53
54 Default: nmap <A-j> <Plug>MoveLineDown
55
56 -------------------------------------------------------------------------------
57 2.4 <Plug>MoveLineUp
58
59 Move current line up by one.
60
61 Default: nmap <A-k> <Plug>MoveLineUp
62
63 -------------------------------------------------------------------------------
64 2.5 <Plug>MoveBlockHalfPageDown
65
66 Move selected block down by half a page size.
67
68 Default: not mapped
69
70 -------------------------------------------------------------------------------
71 2.6 <Plug>MoveBlockHalfPageUp
72
73 Move selected block up by half a page size.
74
75 Default: not mapped
76
77 -------------------------------------------------------------------------------
78 2.7 <Plug>MoveLineHalfPageDown
79
80 Move current line down by half a page size.
81
82 Default: not mapped
83
84 -------------------------------------------------------------------------------
85 2.7 <Plug>MoveLineHalfPageUp
86
87 Move current line up by half a page size.
88
89 Default: not mapped
90
91 ===============================================================================
92 3. License                                                       *move-license*
93
94 This plugin is copyright by Matthias Vogelgesang and licensed under the MIT
95 license.
96
97 ===============================================================================
98 3. Changelog                                                   *move-changelog*
99
100 v1.3-dev
101     * Silence :move commands to avoid first-time errors on read-only files.
102
103 v1.2
104     * Released on 08/14/13
105     * Add key modifier for bindings (@vitalk)
106     * Use <A-j> and <A-k> in normal and visual mode (@vitalk)
107     * Add <Plug>Move{Block,Line}HalfPage{Up,Down} to move text in larger
108       increments.
109 v1.1
110     * Released on 08/10/13
111     * Minor bug fixes (helptags, mapping, docs)
112 v1.0
113     * Released on 08/10/13
114
115 vim:ft=help: