Skip to content

Commit c920045

Browse files
committed
Version 0.6; update README
1 parent a979397 commit c920045

File tree

2 files changed

+33
-18
lines changed

2 files changed

+33
-18
lines changed

README.md

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ do the following instead:
2727
[![weechat-vimode screencast (webm; 7.63M](https://ptpb.pw/be75e2b38eb743a29682ca60e6768ab8d0418250.png)](https://ptpb.pw/a826c31608ec80d0eed229b8747b2bdd27b92ca3.webm)
2828

2929
# Usage:
30-
To switch to Normal mode, press `Esc` or `Ctrl+Space`.
30+
To switch to Normal mode, press `Esc` or `Ctrl+Space`. You can also use an
31+
alternate mapping while in Insert mode, similar to `:image jk <Esc>` in vim.
32+
See the `imap_esc` and `imap_esc_timeout` options for more details.
3133

3234
Two bar items are provided:
3335

@@ -70,7 +72,8 @@ quote the message (`Q`, `m` and `q`).
7072
### Operators:
7173
* `d{motion}` Delete text that **{motion}** moves over.
7274
* `c{motion}` Delete **{motion}** text and start Insert mode.
73-
* `y{motion}` Yank **{motion}** text to clipboard.
75+
* `y{motion}` Yank **{motion}** text to clipboard. Uses xclip by default.
76+
You can change this with the `copy\_clipboard\_cmd` option.
7477

7578
### Motions:
7679
* `h` **[count]** characters to the left exclusive.
@@ -111,10 +114,12 @@ quote the message (`Q`, `m` and `q`).
111114
* `cc` Delete line and start Insert mode.
112115
* `C` Delete from the cursor position to the end of the line,
113116
and start Insert mode.
114-
* `yy` Yank line to clipboard. Requires xclip.
117+
* `yy` Yank line to clipboard. Uses xclip by default. You can
118+
change this with the `copy\_clipboard\_cmd` option.
115119
* `I` Insert text before the first non-blank in the line.
116-
* `p` Put the text from the clipboard after the cursor. Requires
117-
xclip.
120+
* `p` Put the text from the clipboard after the cursor. Uses
121+
xclip by default. You can change this with the
122+
`paste\_clipboard\_cmd` option.
118123
* `nt` Scroll nicklist up.
119124
* `nT` Scroll nicklist down.
120125

@@ -146,22 +151,26 @@ quote the message (`Q`, `m` and `q`).
146151

147152

148153
# Current commands:
149-
* `:h` Help (`/help`)
154+
* `:h`, `:help` Help (`/help`)
150155
* `:set` Set WeeChat config option (`/set`)
151-
* `:q` Closes current buffer (`/close`)
152-
* `:qall` Exits WeeChat (`/exit`)
153-
* `:w` Saves settings (`/save`)
154-
* `:bp` Go to the previous buffer (`/buffer -1`).
155-
* `:bn` Go to the next buffer (`/buffer +1`).
156-
* `:bd` Close the current buffer (`/close`).
156+
* `:q`, `:quit` Closes current buffer (`/close`)
157+
* `:qa`, `:qall`, `:quita`, `:quitall`
158+
Exits WeeChat (`/exit`)
159+
* `:w`, `:write` Saves settings (`/save`)
160+
* `:bN`, `:bNext`, `:bp`, `:bprevious`
161+
Go to the previous buffer (`/buffer -1`).
162+
* `:bn`, `:bnext` Go to the next buffer (`/buffer +1`).
163+
* `:bd`, `:bdel`, `:bdelete`
164+
Close the current buffer (`/close`).
157165
* `:b#` Go to the last buffer (`/input jump_last_buffer`).
158-
* `:b [N]` Go to buffer [N].
159-
* `:sp` Split current window in two (`/window splith`).
160-
* `:vsp` Split current window in two, but vertically
166+
* `:b [N]`, `:bu [N]`, `:buf [N]`, `:buffer [N]`
167+
Go to buffer [N].
168+
* `:sp`, `:split` Split current window in two (`/window splith`).
169+
* `:vs`, `:vsplit` Split current window in two, but vertically
161170
(`/window splitv`).
162171
* `:!{cmd}` Execute shell command (`/exec -buffer shell`)
163-
* `:s/pattern/repl`
164-
* `:s/pattern/repl/g`
172+
* `:s/pattern/repl`
173+
`:s/pattern/repl/g`
165174
Search/Replace \*
166175
* `:<num>` Start cursor mode and go to line.
167176
* `:command` All other commands will be passed to WeeChat (e.g.
@@ -188,6 +197,12 @@ information). `&` in the replacement is also substituted by the pattern. If the
188197
Many fixes and improvements. WeeChat ≥ 1.0.0 required.
189198
* version 0.5: added: line numbers bar (disabled by default), :<num>
190199
commands, C, D. Many fixes and improvements.
200+
* version 0.6: added python3 support, `:imap <key_sequence> <Esc>`,
201+
`/vimode_go_to_normal` for use in user-defined key
202+
bindings, nt/nT to scroll nicklist, support for
203+
user-defined commands for copying/pasting, simple
204+
tab-completion for Ex mode. Flipped J/K and gT/gt. Other
205+
bug fixes and improvements.
191206

192207
For the full change log, please check the [list of commits][1].
193208

vimode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
SCRIPT_NAME = "vimode"
4141
SCRIPT_AUTHOR = "GermainZ <[email protected]>"
42-
SCRIPT_VERSION = "0.5"
42+
SCRIPT_VERSION = "0.6"
4343
SCRIPT_LICENSE = "GPL3"
4444
SCRIPT_DESC = ("Add vi/vim-like modes and keybindings to WeeChat.")
4545

0 commit comments

Comments
 (0)