Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.

Commit 5f67d1b

Browse files
committed
Remove bad example
1 parent 5a64548 commit 5f67d1b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ function! s:FooMode()
8383
endfunction
8484
```
8585

86-
After defining said function, you can create a mapping to enter the mode. Be sure to use `<expr>`. Example:
86+
After defining said function, you can create a mapping to enter the mode. Example:
8787

8888
```viml
8989
command! FooModeEnter call libmodal#Enter('FOO', funcref('s:FooMode'))
90-
nnoremap <expr> <leader>n FooModeEnter
90+
nnoremap <leader>n :FooModeEnter
9191
```
9292

9393
- Note the `funcref()` call. __It must be there__ or else `libmodal#Enter` won't execute properly.

doc/libmodal.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ To define a new mode, you must first create a |user-function| to pass into
117117
<
118118

119119
After defining said |user-function|, you can create a |mapping| to enter the
120-
mode. Be sure to use |map-<expr>|. Example:
120+
mode.
121121

122122
>
123123
command! FooModeEnter call libmodal#Enter('FOO', funcref('s:FooMode'))
124-
nnoremap <expr> <leader>n FooModeEnter
124+
nnoremap <leader>n :FooModeEnter
125125
<
126126

127127
- NOTE: the |funcref()| call must be there or else |libmodal#Enter| won't

0 commit comments

Comments
 (0)