fix(vim): correct broken symlink, missing commands, and bad VimwikiGoBackLink
- README: fix plain-Vim install symlink (ln -s target/… → ln -s ../target/… so the relative path resolves correctly from inside bin/) - ftplugin: add missing VimwikiUISelect command on the Vim path - ftplugin: add missing -count attribute on NuwikiTabIndex (Vim path) - ftplugin: fix VimwikiGoBackLink (Neovim path) — `normal!` with no argument causes E471; use `execute "normal! \<C-o>"` instead Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -31,6 +31,7 @@ if !has('nvim')
|
||||
|
||||
command! -buffer -count VimwikiIndex call nuwiki#commands#wiki_index(<count>)
|
||||
command! -buffer -count VimwikiTabIndex call nuwiki#commands#wiki_tab_index(<count>)
|
||||
command! -buffer VimwikiUISelect call nuwiki#commands#wiki_ui_select()
|
||||
command! -buffer VimwikiDiaryIndex call nuwiki#commands#diary_index()
|
||||
command! -buffer VimwikiMakeDiaryNote call nuwiki#commands#diary_today()
|
||||
command! -buffer VimwikiMakeYesterdayDiaryNote call nuwiki#commands#diary_yesterday()
|
||||
@@ -80,7 +81,7 @@ if !has('nvim')
|
||||
|
||||
" :Nuwiki* canonical aliases (P10) — Vim side.
|
||||
command! -buffer -count NuwikiIndex call nuwiki#commands#wiki_index(<count>)
|
||||
command! -buffer NuwikiTabIndex call nuwiki#commands#wiki_tab_index(<count>)
|
||||
command! -buffer -count NuwikiTabIndex call nuwiki#commands#wiki_tab_index(<count>)
|
||||
command! -buffer NuwikiDiaryIndex call nuwiki#commands#diary_index()
|
||||
command! -buffer NuwikiDiaryToday call nuwiki#commands#diary_today()
|
||||
command! -buffer NuwikiDiaryYesterday call nuwiki#commands#diary_yesterday()
|
||||
@@ -267,7 +268,7 @@ command! -buffer VimwikiDiaryPrevDay lua require('nuwiki.commands').dia
|
||||
command! -buffer VimwikiDiaryGenerateLinks lua require('nuwiki.commands').diary_generate_index()
|
||||
|
||||
command! -buffer VimwikiFollowLink lua vim.lsp.buf.definition()
|
||||
command! -buffer VimwikiGoBackLink normal!
|
||||
command! -buffer VimwikiGoBackLink execute "normal! \<C-o>"
|
||||
command! -buffer VimwikiSplitLink split | lua vim.lsp.buf.definition()
|
||||
command! -buffer VimwikiVSplitLink vsplit | lua vim.lsp.buf.definition()
|
||||
command! -buffer VimwikiTabnewLink tabnew | lua vim.lsp.buf.definition()
|
||||
|
||||
Reference in New Issue
Block a user