dhruvasagar / vim-prosession

Handle vim sessions like a pro
254 stars 22 forks source link

E15: Invalid expression #87

Closed nf1s closed 2 years ago

nf1s commented 2 years ago

E15: Invalid expression: !argc() && len(v:argv) < 2 && g:prosession_on_startup

Screenshot 2021-12-06 at 14 01 25

nf1s commented 2 years ago

When re installing the plugin I get

E121: Undefined variable: v:argv

dhruvasagar commented 2 years ago

@ahmednafies Thanks for reporting, this was added recently, can you tell us what version of vim you're on ?

nf1s commented 2 years ago

NVIM v0.4.4 Build type: Release LuaJIT 2.1.0-beta3

Gee19 commented 2 years ago

Looks like v:argv was added in NVIM 0.6

https://github.com/neovim/neovim/commit/e89462d9855eef7718d482df7f92da4279a1c5c3

@nf1s Can you try my fork and report back? https://github.com/Gee19/vim-prosession