Update documentation for local key mappings.
Original updates from PR #704.
This commit is contained in:
parent
8ec1cccb36
commit
86926b7212
539
doc/vimwiki.txt
539
doc/vimwiki.txt
@ -275,339 +275,316 @@ See also |:VimwikiMakeYesterdayDiaryNote|
|
|||||||
See also |:VimwikiMakeTomorrowDiaryNote|
|
See also |:VimwikiMakeTomorrowDiaryNote|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
3.2. Local mappings
|
3.2. Local mappings *vimwiki-local-mappings*
|
||||||
|
|
||||||
To remap one of these keys, either put it in your .vimrc like this >
|
Below is a listing of all local key mappings provided by Vimwiki. As local
|
||||||
:nmap <Leader>wc <Plug>Vimwiki2HTML
|
settings, they are available when |FileType| is set to "vimwiki". These
|
||||||
or, the better way, put it in a file .vim/ftplugin/vimwiki.vim like this >
|
mappings may overwrite pre-existing mappings but they can be remapped or
|
||||||
:nmap <silent><buffer> <Leader>wc <Plug>Vimwiki2HTML
|
disabled (see |g:vimwiki_key_mappings|).
|
||||||
|
|
||||||
The latter has the advantage that the mapping is local to Vimwiki buffers in
|
To remap commands that begin with <Plug>, you should do the following:
|
||||||
every case.
|
|
||||||
|
|
||||||
Also note that some keys work in normal mode as well as in visual mode. If you
|
:{mode}map {map} <Plug>{command}
|
||||||
remap them using :map, they will also run in operator-pending mode. If you
|
|
||||||
don't want that, use >
|
|
||||||
:nmap <Leader>tt <Plug>VimwikiToggleListItem
|
|
||||||
:vmap <Leader>tt <Plug>VimwikiToggleListItem
|
|
||||||
|
|
||||||
NOTE: if a user mapping or mapping from another plugin uses the same key
|
For commands that do not begin with <Plug>, do:
|
||||||
sequence as one of the following mappings then Vimwiki will not overwrite it.
|
|
||||||
|
|
||||||
|
:{mode}noremap {map} {command}
|
||||||
|
|
||||||
NORMAL MODE *vimwiki-local-mappings*
|
where
|
||||||
*vimwiki_<Leader>wh*
|
`{mode}` is set to `n` for "normal" mode, `v` for "visual", and `i` for "insert"
|
||||||
<Leader>wh Convert current wiki page to HTML.
|
`{map}` is the new key sequence of your choosing
|
||||||
|
`{command}` is the Vimwiki command you are remapping
|
||||||
|
|
||||||
|
Examples: >
|
||||||
|
:nmap <Leader>tl <Plug>VimwikiToggleListItem
|
||||||
|
:vmap <Leader>tl <Plug>VimwikiToggleListItem
|
||||||
|
:nnoremap glo :VimwikiChangeSymbolTo a)<CR>
|
||||||
|
|
||||||
|
The first two lines remap "\tl" to the |:VimwikiToggleListItem| command in both
|
||||||
|
normal and visual modes. |<Leader>| is set to "\" by default. Use `:echo mapleader`
|
||||||
|
to determine if it is set to another value. The third map listed
|
||||||
|
above, which does not contain <Plug>, maps directly to an |Ex| mode command.
|
||||||
|
|
||||||
|
Note that |map| is needed for commands beginning with <Plug>. This recursive
|
||||||
|
version of the "map" command is needed to expand the right hand side to retrieve
|
||||||
|
the <Plug> definition. "noremap" will not work. <Plug> is required and
|
||||||
|
considered to be part of the command.
|
||||||
|
|
||||||
|
It is recommended that you place your local mappings into a file at
|
||||||
|
ftplugin/vimwiki.vim within your .vim configuration directory. Create this file
|
||||||
|
if it doesn't already exist. Or, if you prefer, you can set up a FileType
|
||||||
|
|autocmd| in your vimrc.
|
||||||
|
|
||||||
|
Note: it may be desirable to add `<silent> <buffer>` to mapped commands but
|
||||||
|
this should only be done if the mappings are placed in ftplugin or in
|
||||||
|
a Filetype based autocommand. See the Vim help for a description of these
|
||||||
|
options.
|
||||||
|
|
||||||
|
MAP MODE
|
||||||
|
*vimwiki_<Leader>wh*
|
||||||
|
<Leader>wh n Convert current wiki page to HTML.
|
||||||
Maps to |:Vimwiki2HTML|
|
Maps to |:Vimwiki2HTML|
|
||||||
To remap: >
|
Remap command: `<Plug>Vimwiki2HTML`
|
||||||
:nmap <Leader>wc <Plug>Vimwiki2HTML
|
|
||||||
<
|
*vimwiki_<Leader>whh*
|
||||||
*vimwiki_<Leader>whh*
|
<Leader>whh n Convert current wiki page to HTML and open it in the
|
||||||
<Leader>whh Convert current wiki page to HTML and open it in the
|
|
||||||
webbrowser.
|
webbrowser.
|
||||||
Maps to |:Vimwiki2HTMLBrowse|
|
Maps to |:Vimwiki2HTMLBrowse|
|
||||||
To remap: >
|
Remap command: `<Plug>Vimwiki2HTMLBrowse`
|
||||||
:nmap <Leader>wcc <Plug>Vimwiki2HTMLBrowse
|
|
||||||
<
|
*vimwiki_<Leader>w<Leader>i*
|
||||||
*vimwiki_<Leader>w<Leader>i*
|
<Leader>w<Leader>i n Update diary section (delete old, insert new)
|
||||||
<Leader>w<Leader>i Update diary section (delete old, insert new)
|
|
||||||
Only works from the diary index.
|
Only works from the diary index.
|
||||||
Maps to |:VimwikiDiaryGenerateLinks|
|
Maps to |:VimwikiDiaryGenerateLinks|
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiDiaryGenerateLinks`
|
||||||
:nmap <Leader>wcr <Plug>VimwikiDiaryGenerateLinks
|
|
||||||
<
|
*vimwiki_<CR>*
|
||||||
*vimwiki_<CR>*
|
<CR> n Follow/create wiki link (create target wiki page if
|
||||||
<CR> Follow/create wiki link (create target wiki page if
|
|
||||||
needed).
|
needed).
|
||||||
Maps to |:VimwikiFollowLink|.
|
Maps to |:VimwikiFollowLink|.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiFollowLink`
|
||||||
:nmap <Leader>wf <Plug>VimwikiFollowLink
|
|
||||||
<
|
*vimwiki_<S-CR>*
|
||||||
*vimwiki_<S-CR>*
|
<S-CR> n Split and follow (create target wiki page if needed).
|
||||||
<S-CR> Split and follow (create target wiki page if needed).
|
|
||||||
May not work in some terminals. Remapping could help.
|
May not work in some terminals. Remapping could help.
|
||||||
Maps to |:VimwikiSplitLink|.
|
Maps to |:VimwikiSplitLink|.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiSplitLink`
|
||||||
:nmap <Leader>we <Plug>VimwikiSplitLink
|
|
||||||
<
|
*vimwiki_<C-CR>*
|
||||||
*vimwiki_<C-CR>*
|
<C-CR> n Vertical split and follow (create target wiki page if
|
||||||
<C-CR> Vertical split and follow (create target wiki page if
|
needed). May not work in some terminals. Remapping
|
||||||
needed).
|
could help.
|
||||||
May not work in some terminals. Remapping could help.
|
|
||||||
Maps to |:VimwikiVSplitLink|.
|
Maps to |:VimwikiVSplitLink|.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiVSplitLink`
|
||||||
:nmap <Leader>wq <Plug>VimwikiVSplitLink
|
|
||||||
<
|
*vimwiki_<C-S-CR>* *vimwiki_<D-CR>*
|
||||||
*vimwiki_<C-S-CR>* *vimwiki_<D-CR>*
|
<C-S-CR>, <D-CR> n Follow wiki link (create target wiki page if needed),
|
||||||
<C-S-CR>, <D-CR> Follow wiki link (create target wiki page if needed),
|
|
||||||
opening in a new tab.
|
opening in a new tab.
|
||||||
May not work in some terminals. Remapping could help.
|
May not work in some terminals. Remapping could help.
|
||||||
Maps to |:VimwikiTabnewLink|.
|
Maps to |:VimwikiTabnewLink|.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiTabnewLink`
|
||||||
:nmap <Leader>wt <Plug>VimwikiTabnewLink
|
|
||||||
<
|
*vimwiki_<Backspace>*
|
||||||
*vimwiki_<Backspace>*
|
<Backspace> n Go back to previously visited wiki page.
|
||||||
<Backspace> Go back to previously visited wiki page.
|
|
||||||
Maps to |:VimwikiGoBackLink|.
|
Maps to |:VimwikiGoBackLink|.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiGoBackLink`
|
||||||
:nmap <Leader>wb <Plug>VimwikiGoBackLink
|
|
||||||
<
|
*vimwiki_<Tab>*
|
||||||
*vimwiki_<Tab>*
|
<Tab> n Find next link in the current page.
|
||||||
<Tab> Find next link in the current page.
|
|
||||||
Maps to |:VimwikiNextLink|.
|
Maps to |:VimwikiNextLink|.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiNextLink`
|
||||||
:nmap <Leader>wn <Plug>VimwikiNextLink
|
|
||||||
<
|
*vimwiki_<S-Tab>*
|
||||||
*vimwiki_<S-Tab>*
|
<S-Tab> n Find previous link in the current page.
|
||||||
<S-Tab> Find previous link in the current page.
|
|
||||||
Maps to |:VimwikiPrevLink|.
|
Maps to |:VimwikiPrevLink|.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiPrevLink`
|
||||||
:nmap <Leader>wp <Plug>VimwikiPrevLink
|
|
||||||
<
|
*vimwiki_<Leader>wn*
|
||||||
*vimwiki_<Leader>wn*
|
<Leader>wn n Goto or create new wiki page.
|
||||||
<Leader>wn Goto or create new wiki page.
|
|
||||||
Maps to |:VimwikiGoto|.
|
Maps to |:VimwikiGoto|.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiGoto`
|
||||||
:nmap <Leader>nn <Plug>VimwikiGoto
|
|
||||||
<
|
*vimwiki_<Leader>wd*
|
||||||
*vimwiki_<Leader>wd*
|
<Leader>wd n Delete wiki page you are in.
|
||||||
<Leader>wd Delete wiki page you are in.
|
|
||||||
Maps to |:VimwikiDeleteLink|.
|
Maps to |:VimwikiDeleteLink|.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiDeleteLink`
|
||||||
:nmap <Leader>dd <Plug>VimwikiDeleteLink
|
|
||||||
<
|
*vimwiki_<Leader>wr*
|
||||||
*vimwiki_<Leader>wr*
|
<Leader>wr n Rename wiki page you are in.
|
||||||
<Leader>wr Rename wiki page you are in.
|
|
||||||
Maps to |:VimwikiRenameLink|.
|
Maps to |:VimwikiRenameLink|.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiRenameLink`
|
||||||
:nmap <Leader>rr <Plug>VimwikiRenameLink
|
|
||||||
<
|
*vimwiki_=*
|
||||||
*vimwiki_=*
|
= n Add header level. Create if needed.
|
||||||
= Add header level. Create if needed.
|
|
||||||
There is nothing to indent with '==' command in
|
There is nothing to indent with '==' command in
|
||||||
Vimwiki, so it should be ok to use '=' here.
|
Vimwiki, so it should be ok to use '=' here.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiAddHeaderLevel`
|
||||||
:nmap == <Plug>VimwikiAddHeaderLevel
|
|
||||||
<
|
*vimwiki_-*
|
||||||
*vimwiki_-*
|
- n Remove header level.
|
||||||
- Remove header level.
|
Remap command: `<Plug>VimwikiRemoveHeaderLevel`
|
||||||
To remap: >
|
|
||||||
:nmap -- <Plug>VimwikiRemoveHeaderLevel
|
*vimwiki_[[*
|
||||||
<
|
[[ n Go to the previous header in the buffer.
|
||||||
*vimwiki_[[*
|
Remap command: `<Plug>VimwikiGoToPrevHeader`
|
||||||
[[ Go to the previous header in the buffer.
|
|
||||||
To remap: >
|
*vimwiki_]]*
|
||||||
:nmap <- <Plug>VimwikiGoToPrevHeader
|
]] n Go to the next header in the buffer.
|
||||||
<
|
Remap command: `<Plug>VimwikiGoToNextHeader`
|
||||||
*vimwiki_]]*
|
|
||||||
]] Go to the next header in the buffer.
|
*vimwiki_[=*
|
||||||
To remap: >
|
[= n Go to the previous header which has the same level as
|
||||||
:nmap -> <Plug>VimwikiGoToNextHeader
|
|
||||||
<
|
|
||||||
*vimwiki_[=*
|
|
||||||
[= Go to the previous header which has the same level as
|
|
||||||
the header the cursor is currently under.
|
the header the cursor is currently under.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiGoToPrevSiblingHeader`
|
||||||
:nmap <= <Plug>VimwikiGoToPrevSiblingHeader
|
|
||||||
<
|
*vimwiki_]=*
|
||||||
*vimwiki_]=*
|
]= n Go to the next header which has the same level as the
|
||||||
]= Go to the next header which has the same level as the
|
|
||||||
header the cursor is currently under.
|
header the cursor is currently under.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiGoToNextSiblingHeader`
|
||||||
:nmap => <Plug>VimwikiGoToNextSiblingHeader
|
|
||||||
<
|
*vimwiki_]u* *vimwiki_[u*
|
||||||
*vimwiki_]u* *vimwiki_[u*
|
]u [u n Go one level up -- that is, to the parent header of
|
||||||
]u [u Go one level up -- that is, to the parent header of
|
|
||||||
the header the cursor is currently under.
|
the header the cursor is currently under.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiGoToParentHeader`
|
||||||
:nmap -^ <Plug>VimwikiGoToParentHeader
|
|
||||||
<
|
*vimwiki_+*
|
||||||
*vimwiki_+*
|
+ n v Create and/or decorate links. Depending on the
|
||||||
+ Create and/or decorate links. Depending on the
|
|
||||||
context, this command will: convert words into
|
context, this command will: convert words into
|
||||||
wikilinks; convert raw URLs into wikilinks; and add
|
wikilinks; convert raw URLs into wikilinks; and add
|
||||||
placeholder description text to wiki- or weblinks that
|
placeholder description text to wiki- or weblinks that
|
||||||
are missing descriptions. Can be activated in normal
|
are missing descriptions. Can be activated in normal
|
||||||
mode with the cursor over a word or link, or in visual
|
mode with the cursor over a word or link, or in visual
|
||||||
mode with the selected text.
|
mode with the selected text.
|
||||||
To remap: >
|
Remap commands:
|
||||||
:nmap ++ <Plug>VimwikiNormalizeLink
|
`<Plug>VimwikiNormalizeLink` (normal mode)
|
||||||
:vmap ++ <Plug>VimwikiNormalizeLinkVisual
|
`<Plug>VimwikiNormalizeLinkVisual` (visual mode)
|
||||||
<
|
|
||||||
*vimwiki_<C-Space>*
|
*vimwiki_<C-Space>*
|
||||||
<C-Space> Toggle checkbox of a list item on/off.
|
<C-Space> n Toggle checkbox of a list item on/off.
|
||||||
Maps to |:VimwikiToggleListItem|.
|
Maps to |:VimwikiToggleListItem|.
|
||||||
See |vimwiki-todo-lists|.
|
See |vimwiki-todo-lists|.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiToggleListItem`
|
||||||
:map <Leader>tt <Plug>VimwikiToggleListItem
|
|
||||||
|
|
||||||
gnt *vimwiki_gnt*
|
*vimwiki_gnt*
|
||||||
Find next unfinished task in the current page.
|
gnt n Find next unfinished task in the current page.
|
||||||
Maps to |:VimwikiNextTask|
|
Maps to |:VimwikiNextTask|
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiNextTask`
|
||||||
:nmap <Leader>nt <Plug>VimwikiNextTask
|
|
||||||
<
|
*vimwiki_gl<Space>* *vimwiki_gL<Space>*
|
||||||
*vimwiki_gl<Space>* *vimwiki_gL<Space>*
|
gl<Space> n Remove checkbox from list item.
|
||||||
gl<Space> Remove checkbox from list item.
|
Remap command: `<Plug>VimwikiRemoveSingleCB`
|
||||||
gL<Space> Remove checkboxes from all sibling list items.
|
gL<Space> Remove checkboxes from all sibling list items.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiRemoveCBInList`
|
||||||
:map <Leader><Space> <Plug>VimwikiRemoveSingleCB
|
|
||||||
:map <Leader><Space> <Plug>VimwikiRemoveCBInList
|
*vimwiki_gln* *vimwiki_glp*
|
||||||
<
|
gln n v Increase the "done" status of a list checkbox, i.e.
|
||||||
*vimwiki_gln* *vimwiki_glp*
|
|
||||||
gln Increase the "done" status of a list checkbox, i.e.
|
|
||||||
from [ ] to [.] to [o] etc. See |vimwiki-todo-lists|.
|
from [ ] to [.] to [o] etc. See |vimwiki-todo-lists|.
|
||||||
glp Decrease the "done" status.
|
glp Decrease the "done" status.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiIncrementListItem`
|
||||||
:nmap <M-+> <Plug>VimwikiIncrementListItem
|
|
||||||
:vmap <M-+> <Plug>VimwikiIncrementListItem
|
|
||||||
:nmap <M--> <Plug>VimwikiDecrementListItem
|
|
||||||
:vmap <M--> <Plug>VimwikiDecrementListItem
|
|
||||||
|
|
||||||
*vimwiki_gll* *vimwiki_gLl*
|
*vimwiki_gll* *vimwiki_gLl*
|
||||||
gll Increase the level of a list item.
|
gll n Increase the level of a list item.
|
||||||
|
Remap commnad: `<Plug>VimwikiIncreaseLvlSingleItem`
|
||||||
gLl Increase the level of a list item and all child items.
|
gLl Increase the level of a list item and all child items.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiIncreaseLvlWholeItem`
|
||||||
:map >> <Plug>VimwikiIncreaseLvlSingleItem
|
|
||||||
:map >>> <Plug>VimwikiIncreaseLvlWholeItem
|
*vimwiki_glh* *vimwiki_gLh*
|
||||||
<
|
glh n Decrease the level of a list item.
|
||||||
*vimwiki_glh* *vimwiki_gLh*
|
Remap command: `<Plug>VimwikiDecreaseLvlSingleItem`
|
||||||
glh Decrease the level of a list item.
|
|
||||||
gLh Decrease the level of a list item and all child items.
|
gLh Decrease the level of a list item and all child items.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiDecreaseLvlWholeItem`
|
||||||
:map << <Plug>VimwikiDecreaseLvlSingleItem
|
|
||||||
:map <<< <Plug>VimwikiDecreaseLvlWholeItem
|
*vimwiki_glr* *vimwiki_gLr*
|
||||||
<
|
glr n Renumber list items if the cursor is on a numbered
|
||||||
*vimwiki_glr* *vimwiki_gLr*
|
|
||||||
glr Renumber list items if the cursor is on a numbered
|
|
||||||
list item.
|
list item.
|
||||||
|
Remap command: `<Plug>VimwikiRenumberList`
|
||||||
gLr Renumber list items in all numbered lists in the whole
|
gLr Renumber list items in all numbered lists in the whole
|
||||||
file.
|
file. Also readjust checkboxes.
|
||||||
Also readjust checkboxes.
|
Remap command: `<Plug>VimwikiRenumberAllLists`
|
||||||
To remap: >
|
|
||||||
:nmap <c-r> <Plug>VimwikiRenumberList
|
*vimwiki_glstar* *vimwiki_gLstar*
|
||||||
:nmap <c-r> <Plug>VimwikiRenumberAllLists
|
gl* n Make a list item out of a normal line or change the
|
||||||
<
|
|
||||||
*vimwiki_glstar* *vimwiki_gLstar*
|
|
||||||
gl* Make a list item out of a normal line or change the
|
|
||||||
symbol of the current item to *.
|
symbol of the current item to *.
|
||||||
gL* Change the symbol of the current list to *.
|
gL* Change the symbol of the current list to *.
|
||||||
To remap: >
|
Remap command: `:VimwikiChangeSymbolTo *<CR>`
|
||||||
noremap glo :VimwikiChangeSymbolTo *<CR>
|
|
||||||
noremap glO :VimwikiChangeSymbolInListTo *<CR>
|
noremap glO :VimwikiChangeSymbolInListTo *<CR>
|
||||||
<
|
|
||||||
*vimwiki_gl#* *vimwiki_gL#*
|
*vimwiki_gl#* *vimwiki_gL#*
|
||||||
gl# Make a list item out of a normal line or change the
|
gl# n Make a list item out of a normal line or change the
|
||||||
symbol of the current item to #.
|
symbol of the current item to #.
|
||||||
gL# Change the symbol of the current list to #.
|
gL# Change the symbol of the current list to #.
|
||||||
To remap: >
|
Remap command: `:VimwikiChangeSymbolTo #<CR>`
|
||||||
noremap glo :VimwikiChangeSymbolTo #<CR>
|
Remap command: `:VimwikiChangeSymbolInListTo #<CR>`
|
||||||
noremap glO :VimwikiChangeSymbolInListTo #<CR>
|
|
||||||
<
|
*vimwiki_gl-* *vimwiki_gL-*
|
||||||
*vimwiki_gl-* *vimwiki_gL-*
|
gl- n Make a list item out of a normal line or change the
|
||||||
gl- Make a list item out of a normal line or change the
|
|
||||||
symbol of the current item to -.
|
symbol of the current item to -.
|
||||||
|
Remap command: `:VimwikiChangeSymbolTo -<CR>`
|
||||||
gL- Change the symbol of the current list to -.
|
gL- Change the symbol of the current list to -.
|
||||||
To remap: >
|
Remap command: `:VimwikiChangeSymbolInListTo -<CR>`
|
||||||
noremap glo :VimwikiChangeSymbolTo -<CR>
|
|
||||||
noremap glO :VimwikiChangeSymbolInListTo -<CR>
|
*vimwiki_gl1* *vimwiki_gL1*
|
||||||
<
|
gl1 n Make a list item out of a normal line or change the
|
||||||
*vimwiki_gl1* *vimwiki_gL1*
|
|
||||||
gl1 Make a list item out of a normal line or change the
|
|
||||||
symbol of the current item to 1., the numbering is
|
symbol of the current item to 1., the numbering is
|
||||||
adjusted according to the surrounding list items.
|
adjusted according to the surrounding list items.
|
||||||
|
Remap command: `:VimwikiChangeSymbolTo 1.<CR>`
|
||||||
gL1 Change the symbol of the current list to 1. 2. 3. ...
|
gL1 Change the symbol of the current list to 1. 2. 3. ...
|
||||||
To remap: >
|
Remap command: `:VimwikiChangeSymbolInListTo 1.<CR>`
|
||||||
noremap glo :VimwikiChangeSymbolTo 1.<CR>
|
|
||||||
noremap glO :VimwikiChangeSymbolInListTo 1.<CR>
|
*vimwiki_gla* *vimwiki_gLa*
|
||||||
<
|
gla n Make a list item out of a normal line or change the
|
||||||
*vimwiki_gla* *vimwiki_gLa*
|
|
||||||
gla Make a list item out of a normal line or change the
|
|
||||||
symbol of the current item to a), the numbering is
|
symbol of the current item to a), the numbering is
|
||||||
adjusted according to the surrounding list items.
|
adjusted according to the surrounding list items.
|
||||||
|
Remap command: `:VimwikiChangeSymbolTo a)<CR>`
|
||||||
gLa Change the symbol of the current list to a) b) c) ...
|
gLa Change the symbol of the current list to a) b) c) ...
|
||||||
To remap: >
|
Remap command: `:VimwikiChangeSymbolInListTo a)<CR>`
|
||||||
noremap glo :VimwikiChangeSymbolTo a)<CR>
|
|
||||||
noremap glO :VimwikiChangeSymbolInListTo a)<CR>
|
*vimwiki_glA* *vimwiki_gLA*
|
||||||
<
|
glA n Make a list item out of a normal line or change the
|
||||||
*vimwiki_glA* *vimwiki_gLA*
|
|
||||||
glA Make a list item out of a normal line or change the
|
|
||||||
symbol of the current item to A), the numbering is
|
symbol of the current item to A), the numbering is
|
||||||
adjusted according to the surrounding list items.
|
adjusted according to the surrounding list items.
|
||||||
|
Remap command: `:VimwikiChangeSymbolTo A)<CR>`
|
||||||
gLA Change the symbol of the current list to A) B) C) ...
|
gLA Change the symbol of the current list to A) B) C) ...
|
||||||
To remap: >
|
Remap command: `:VimwikiChangeSymbolInListTo A)<CR>`
|
||||||
noremap glo :VimwikiChangeSymbolTo A)<CR>
|
|
||||||
noremap glO :VimwikiChangeSymbolInListTo A)<CR>
|
*vimwiki_gli* *vimwiki_gLi*
|
||||||
<
|
gli n Make a list item out of a normal line or change the
|
||||||
*vimwiki_gli* *vimwiki_gLi*
|
|
||||||
gli Make a list item out of a normal line or change the
|
|
||||||
symbol of the current item to i), the numbering is
|
symbol of the current item to i), the numbering is
|
||||||
adjusted according to the surrounding list items.
|
adjusted according to the surrounding list items.
|
||||||
|
Remap command: `:VimwikiChangeSymbolTo i)<CR>`
|
||||||
gLi Change the symbol of the current list to
|
gLi Change the symbol of the current list to
|
||||||
i) ii) iii) ...
|
i) ii) iii) ...
|
||||||
To remap: >
|
Remap command: `:VimwikiChangeSymbolInListTo i)<CR>`
|
||||||
noremap glo :VimwikiChangeSymbolTo i)<CR>
|
|
||||||
noremap glO :VimwikiChangeSymbolInListTo i)<CR>
|
*vimwiki_glI* *vimwiki_gLI*
|
||||||
<
|
glI n Make a list item out of a normal line or change the
|
||||||
*vimwiki_glI* *vimwiki_gLI*
|
|
||||||
glI Make a list item out of a normal line or change the
|
|
||||||
symbol of the current item to I), the numbering is
|
symbol of the current item to I), the numbering is
|
||||||
adjusted according to the surrounding list items.
|
adjusted according to the surrounding list items.
|
||||||
|
Remap command: `:VimwikiChangeSymbolTo I)<CR>`
|
||||||
gLI Change the symbol of the current list to
|
gLI Change the symbol of the current list to
|
||||||
I) II) III) ...
|
I) II) III) ...
|
||||||
To remap: >
|
Remap command: `:VimwikiChangeSymbolInListTo I)<CR>`
|
||||||
noremap glo :VimwikiChangeSymbolTo I)<CR>
|
|
||||||
noremap glO :VimwikiChangeSymbolInListTo I)<CR>
|
*vimwiki_glx*
|
||||||
<
|
glx n Toggle checkbox of a list item disabled/off.
|
||||||
*vimwiki_glx*
|
|
||||||
glx Toggle checkbox of a list item disabled/off.
|
|
||||||
Maps to |:VimwikiToggleRejectedListItem|.
|
Maps to |:VimwikiToggleRejectedListItem|.
|
||||||
See |vimwiki-todo-lists|.
|
See |vimwiki-todo-lists|.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiToggleRejectedListItem`
|
||||||
:map <Leader>tx <Plug>VimwikiToggleRejectedListItem
|
|
||||||
<
|
*vimwiki_gqq* *vimwiki_gww*
|
||||||
*vimwiki_gqq* *vimwiki_gww*
|
gqq n Reformats table after making changes.
|
||||||
gqq Format table. If you made some changes to a table
|
or Remap command: `<Plug>VimwikiTableAlignQ`
|
||||||
or without swapping insert/normal modes this command
|
gww Remap command: `<Plug>VimwikiTableAlignW`
|
||||||
gww will reformat it.
|
|
||||||
To remap: >
|
*vimwiki_gq1* *vimwiki_gw1*
|
||||||
:nmap <Leader>gq <Plug>VimwikiTableAlignQ
|
gq1 n Fast format table. The same as the previous, except
|
||||||
:nmap <Leader>gw <Plug>VimwikiTableAlignW
|
|
||||||
<
|
|
||||||
*vimwiki_gq1* *vimwiki_gw1*
|
|
||||||
gq1 Fast format table. The same as the previous, except
|
|
||||||
or that only a few lines above the current line are
|
or that only a few lines above the current line are
|
||||||
gw1 tested. If the alignment of the current line differs,
|
tested. If the alignment of the current line differs,
|
||||||
then the whole table gets reformatted.
|
then the whole table gets reformatted.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiTableAlignQ1`
|
||||||
:nmap <Leader>q1 <Plug>VimwikiTableAlignQ1
|
gw1 Remap command:`<Plug>VimwikiTableAlignW1`
|
||||||
:nmap <Leader>w1 <Plug>VimwikiTableAlignW1
|
|
||||||
<
|
*vimwiki_<A-Left>*
|
||||||
*vimwiki_<A-Left>*
|
<A-Left> n Move current table column to the left.
|
||||||
<A-Left> Move current table column to the left.
|
|
||||||
See |:VimwikiTableMoveColumnLeft|
|
See |:VimwikiTableMoveColumnLeft|
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiTableMoveColumnLeft`
|
||||||
:nmap <Leader>wtl <Plug>VimwikiTableMoveColumnLeft
|
|
||||||
<
|
*vimwiki_<A-Right>*
|
||||||
*vimwiki_<A-Right>*
|
<A-Right> n Move current table column to the right.
|
||||||
<A-Right> Move current table column to the right.
|
|
||||||
See |:VimwikiTableMoveColumnRight|
|
See |:VimwikiTableMoveColumnRight|
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiTableMoveColumnRight`
|
||||||
:nmap <Leader>wtr <Plug>VimwikiTableMoveColumnRight
|
|
||||||
<
|
*vimwiki_<C-Up>*
|
||||||
*vimwiki_<C-Up>*
|
<C-Up> n Open the previous day's diary link if available.
|
||||||
<C-Up> Open the previous day's diary link if available.
|
|
||||||
See |:VimwikiDiaryPrevDay|
|
See |:VimwikiDiaryPrevDay|
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiDiaryPrevDay`
|
||||||
:nmap <Leader>k <Plug>VimwikiDiaryPrevDay
|
|
||||||
<
|
*vimwiki_<C-Down>*
|
||||||
*vimwiki_<C-Down>*
|
<C-Down> n Open the next day's diary link if available.
|
||||||
<C-Down> Open the next day's diary link if available.
|
|
||||||
See |:VimwikiDiaryNextDay|
|
See |:VimwikiDiaryNextDay|
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiDiaryNextDay`
|
||||||
:nmap <Leader>j <Plug>VimwikiDiaryNextDay
|
|
||||||
<
|
Mouse mappings *vimwiki_mouse*
|
||||||
Mouse mappings *vimwiki_mouse*
|
|
||||||
|
|
||||||
These mappings are disabled by default.
|
These mappings are disabled by default.
|
||||||
See |g:vimwiki_key_mappings| to enable.
|
See |g:vimwiki_key_mappings| to enable.
|
||||||
@ -626,57 +603,55 @@ Note: <2-LeftMouse> is just left double click.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
INSERT MODE *vimwiki-table-mappings*
|
TABLE MAPPINGS, INSERT MODE *vimwiki-table-mappings*
|
||||||
*vimwiki_i_<CR>_table*
|
*vimwiki_i_<CR>_table*
|
||||||
<CR> Go to the table cell beneath the current one, create
|
<CR> Go to the table cell beneath the current one, create
|
||||||
a new row if on the last one.
|
a new row if on the last one.
|
||||||
|
|
||||||
*vimwiki_i_<Tab>_table*
|
*vimwiki_i_<Tab>_table*
|
||||||
<Tab> Go to the next table cell, create a new row if on the
|
<Tab> Go to the next table cell, create a new row if on the
|
||||||
last cell.
|
last cell.
|
||||||
|
|
||||||
INSERT MODE *vimwiki-list-mappings*
|
LIST MAPPINGS, INSERT MODE *vimwiki-list-mappings*
|
||||||
*vimwiki_i_<CR>*
|
*vimwiki_i_<CR>*
|
||||||
<CR> In a list item, insert a new bullet or number in the
|
<CR> In a list item, insert a new bullet or number in the
|
||||||
next line, numbers are incremented.
|
next line, numbers are incremented.
|
||||||
In an empty list item, delete the item symbol. This is
|
In an empty list item, delete the item symbol. This is
|
||||||
useful to end a list, simply press <CR> twice.
|
useful to end a list, simply press <CR> twice.
|
||||||
See |vimwiki-lists| for details and for how to
|
See |vimwiki-lists| for details and for how to
|
||||||
configure the behavior.
|
configure the behavior.
|
||||||
|
Remap command: `<Plug>VimwikiReturn15`
|
||||||
|
|
||||||
*vimwiki_i_<S-CR>*
|
*vimwiki_i_<S-CR>*
|
||||||
<S-CR> Does not insert a new list item, useful to create
|
<S-CR> Does not insert a new list item, useful to create
|
||||||
multilined list items.
|
multilined list items. See |vimwiki-lists| for
|
||||||
See |vimwiki-lists| for details and for how to
|
details and for how to configure the behavior. The
|
||||||
configure the behavior.
|
default map may not work in all terminals and may
|
||||||
|
need to be remapped.
|
||||||
|
Remap command: `<Plug>VimwikiReturn22`
|
||||||
|
|
||||||
*vimwiki_i_<C-T>*
|
*vimwiki_i_<C-T>*
|
||||||
<C-T> Increase the level of a list item.
|
<C-T> Increase the level of a list item.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiIncreaseLvlSingleItem`
|
||||||
:imap <C-E> <Plug>VimwikiIncreaseLvlSingleItem
|
|
||||||
<
|
*vimwiki_i_<C-D>*
|
||||||
*vimwiki_i_<C-D>*
|
|
||||||
<C-D> Decrease the level of a list item.
|
<C-D> Decrease the level of a list item.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiDecreaseLvlSingleItem`
|
||||||
:imap <C-E> <Plug>VimwikiDecreaseLvlSingleItem
|
|
||||||
<
|
*vimwiki_i_<C-L>_<C-J>*
|
||||||
*vimwiki_i_<C-L>_<C-J>*
|
|
||||||
<C-L><C-J> Change the symbol of the current list item to the next
|
<C-L><C-J> Change the symbol of the current list item to the next
|
||||||
available. From - to 1. to * to I) to a).
|
available. From - to 1. to * to I) to a).
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiListNextSymbol`
|
||||||
:imap <C-A> <Plug>VimwikiListNextSymbol
|
|
||||||
<
|
*vimwiki_i_<C-L>_<C-K>*
|
||||||
*vimwiki_i_<C-L>_<C-K>*
|
|
||||||
<C-L><C-K> Change the symbol of the current list item to the prev
|
<C-L><C-K> Change the symbol of the current list item to the prev
|
||||||
available. From - to a) to I) to * to 1.
|
available. From - to a) to I) to * to 1.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiListPrevSymbol`
|
||||||
:imap <C-S> <Plug>VimwikiListPrevSymbol
|
|
||||||
<
|
*vimwiki_i_<C-L>_<C-M>*
|
||||||
*vimwiki_i_<C-L>_<C-M>*
|
|
||||||
<C-L><C-M> Create/remove a symbol from a list item.
|
<C-L><C-M> Create/remove a symbol from a list item.
|
||||||
To remap: >
|
Remap command: `<Plug>VimwikiListToggle`
|
||||||
:imap <C-K> <Plug>VimwikiListToggle
|
|
||||||
<
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
3.3. Text objects *vimwiki-text-objects*
|
3.3. Text objects *vimwiki-text-objects*
|
||||||
|
Loading…
Reference in New Issue
Block a user