Undefined variable: b:netrw_curdir

319 views
Skip to first unread message

Xavier de Gaye

unread,
Mar 12, 2016, 4:57:43 AM3/12/16
to vim...@googlegroups.com
This is a regression introduced somewhere after 7.4.944.

This error occurs when opening a file and when:
let g:netrw_browse_split = 3 " <cr> open file in new tab

Error message:
Error detected while processing function <SNR>27_NetrwBrowseChgDir:
line 135:
E121: Undefined variable: b:netrw_curdir
E116: Invalid arguments for function <SNR>27_SetRexDir

Xavier

Charles E Campbell

unread,
Mar 14, 2016, 9:26:08 AM3/14/16
to vim...@googlegroups.com
Hello!

I just tried that -- and no problem occurred. Please try the attached file:

vim -u netrw.vimrc

and try to come up with a sequence of commands that causes the above
error message. Also, please use netrw v156b which you can get from my
website:

http://www.drchip.org/astronaut/vim/index.html#NETRW

Thank you,
Chip Campbell


netrw.vimrc

Xavier de Gaye

unread,
Mar 16, 2016, 5:17:24 AM3/16/16
to vim...@googlegroups.com, Charles E Campbell
Sequence of commands to reproduce the problem:
gvim
:edit .
:" move the highlighted line to a text file in this directory and press <Enter>

The same problem occurs with your netrw.vimrc
vim -u netrw.vimrc

The same problem occurs when my .vimrc contains only the following line and
gvim or vim is being run:
let g:netrw_browse_split = 3

--
Xavier

Les Chemins de Lokoti: http://lokoti.alwaysdata.net

William Hatt

unread,
Jun 17, 2016, 2:47:36 AM6/17/16
to vim_dev, drc...@campbellfamily.biz

Just wanted to bump the conversation. I am seeing this as well. I am running Ubuntu 16.04. I am seeing this on the latest versions of vim and nvim while running with no plugins only netrw loaded.
Reply all
Reply to author
Forward
0 new messages