Skip to content

Conversation

mhinz
Copy link
Member

@mhinz mhinz commented Oct 17, 2017

As discussed on Gitter. This is a a first experiment in removing the v:var compat feature (v:count == count) step-by-step.

The biggest issue in removing it entirely at once is that probably a lot of plugins still check for version instead of v:version, because c'n'p.

The rationale behind this commit is that it's likely for beginners to use a variable called count and being puzzled by the resulting readonly error message.

command('let count = v:count + 1')
neq(eval('count'), eval('v:count'))
end)
end)
Copy link
Contributor

@ZyX-I ZyX-I Oct 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not use neq, just set it to list and check that it works as you could not set v:count to list. Also good idea to check eq(1, eval('count is# g:["count"]')) and eq(0, eval('count is# v:count')) after that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok!

@justinmk justinmk added this to the 0.2.2 milestone Oct 17, 2017
@justinmk justinmk modified the milestones: 0.2.2, 0.2.3 Oct 21, 2017
@justinmk justinmk modified the milestones: 0.2.3, 0.2.2 Nov 8, 2017
@justinmk
Copy link
Member

justinmk commented Nov 8, 2017

Maybe needs a mention in vim_diff.txt and/or deprecated.txt

@Shougo
Copy link
Contributor

Shougo commented Nov 8, 2017

The next is v:errmsg?

@mhinz
Copy link
Member Author

mhinz commented Nov 8, 2017

Okay, I added a note to vim_diff.txt and rebased.

@justinmk justinmk merged commit 9837a9c into neovim:master Nov 9, 2017
@mhinz mhinz deleted the vvar-count branch November 9, 2017 01:24
justinmk added a commit that referenced this pull request Nov 9, 2017
justinmk added a commit to justinmk/neovim that referenced this pull request Nov 18, 2017
FEATURES:
b6a603f neovim#7458 node.js remote-plugin support
f5d4da0 :checkhealth : validate 'runtimepath' (neovim#7526)

FIXES:
e6beb60 :terminal : fix crash on resize (neovim#7547)
07931ed tui: 'guicursor': use DECSCUSR for xterm-likes (neovim#7576)
f185c73 neovim#7561 'os_open: UV_EINVAL on NULL filename'
e8af34d win: provider: Detect(): return *.cmd path (neovim#7577)
eacd788 :checkhealth : fix check for npm and yarn (neovim#7569)
a43a573 health.vim: normalize slashes for script path (neovim#7525)
69e3308 cmake: install runtime/rgb.txt
d0b05e3 runtime: Fix syntax error in `runtime/syntax/tex.vim` (neovim#7518)
55d8967 tutor: some fixes (neovim#7510)

CHANGES:
9837a9c remove legacy alias to `v:count` (neovim#7407)
c5f001a runtime: revert netrw update (neovim#7557)
67e4529 defaults: scrollback=10000 (neovim#7556)
881f9e4 process_close(): uv_unref() detached processes (neovim#7539)
justinmk added a commit to justinmk/neovim that referenced this pull request Nov 18, 2017
FEATURES:
a6de144 'viewoptions': add "curdir" flag neovim#7447
b6a603f node.js remote-plugin support neovim#7458
f5d4da0 :checkhealth : validate 'runtimepath' neovim#7526

FIXES:
e6beb60 :terminal : fix crash on resize neovim#7547
f19e5d6 work around gnome-terminal memory leak neovim#7573
07931ed 'guicursor': use DECSCUSR for xterm-likes neovim#7576
f185c73 'os_open: UV_EINVAL on NULL filename' neovim#7561
e8af34d win: provider: Detect(): return *.cmd path neovim#7577
eacd788 :checkhealth : fix check for npm and yarn neovim#7569
a43a573 health.vim: normalize slashes for script path neovim#7525
69e3308 cmake: install runtime/rgb.txt
d0b05e3 runtime: syntax error in `runtime/syntax/tex.vim` neovim#7518
55d8967 tutor: some fixes neovim#7510

CHANGES:
9837a9c remove legacy alias to `v:count` neovim#7407
c5f001a runtime: revert netrw update neovim#7557
67e4529 defaults: scrollback=10000 neovim#7556
881f9e4 process_close(): uv_unref() detached processes neovim#7539
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants