Wednesday, January 14, 2015

Re: netrw - file selection in column mode (liststyle=2)

I see it with netrw153.

In autoload/netrw.vim, the NetrwLocalRm function takes a range, firstline to lastline. It loops through the range:

let ctr = a:firstline
while ctr <= a:lastline
exe "NetrwKeepj ".ctr

This sets the cursor to the first non-blank character of the line, if the 'startofline' option is on (which is the default) and so the following call to NetrwGetWord finds the word at the beginning of the line.

I imagine Dr Chip uses nostartofline. If I set nosol in my .vimrc, the problem does not occur.

Regards, John Little

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: