Patch 8.2.4050
Problem:Vim9: need to prefix every item in an autoload script.
Solution: First step in supporting "vim9script autoload" and "import
autoload".
Files: runtime/doc/repeat.txt, runtime/doc/vim9.txt, src/structs.h,
src/errors.h, s
On 10-Jan-2022 08:37, Bram Moolenaar wrote:
Patch 8.2.4050
Problem:Vim9: need to prefix every item in an autoload script.
Solution: First step in supporting "vim9script autoload" and "import
autoload".
Files: runtime/doc/repeat.txt, runtime/doc/vim
I have tried new way of autoload and for me it didn't work (windows
8.2.4050)
I have autoload/comment.vim:
vim9script autoload
# Toggle comments
# Usage:
# 1. Save in ~/.vim/autoload/comment.vim
# 2. Add following mappings to vimrc:
# import autoload 'comment.vim'
# nnoremap gc
John Marriott wrote:
> On 10-Jan-2022 08:37, Bram Moolenaar wrote:
> > Patch 8.2.4050
> > Problem:Vim9: need to prefix every item in an autoload script.
> > Solution: First step in supporting "vim9script autoload" and "import
> >
Maxim Kim wrote:
> I have tried new way of autoload and for me it didn't work (windows
> 8.2.4050)
>
> I have autoload/comment.vim:
>
> vim9script autoload
>
> # Toggle comments
> # Usage:
> # 1. Save in ~/.vim/autoload/comment.vim
> # 2. Add following mappings to vimrc:
> # import
Following:
import autoload 'comment.vim'
nnoremap gc comment.Toggle()
xnoremap gc comment.Toggle()
nnoremap gcc comment.Toggle() .. '_'
Now works (as of 8.2.4058)
понедельник, 10 января 2022 г. в 15:17:40 UTC+3, Bram Moolenaar:
>
> Maxim Kim wrote:
>
> > I have tried new way of autoload a
Oops, I take it back -- it doesn't work :)
вторник, 11 января 2022 г. в 09:31:54 UTC+3, Maxim Kim:
> Following:
>
> import autoload 'comment.vim'
> nnoremap gc comment.Toggle()
> xnoremap gc comment.Toggle()
> nnoremap gcc comment.Toggle() .. '_'
>
> Now works (as of 8.2.4058)
> понедельни