Ben Fritz wrote: > I'm a little puzzled over "exclusive" vs. "inclusive" actions > and how they interact with the 'selection' option. > > Specifically, the 'e' and 'g_' commands seem inconsistent to me.
I used gvim 7.2.323 and "gvim -N -u NONE" to verify Ben's finding. Enter a line consisting of four characters, no spaces: abcd Following is good: Press 0 to put the cursor on 'a', then enter: :set selection=exclusive ye :echo @@ yg_ :echo @@ Result: "abcd" is yanked in both cases. Same with ":set selection=inclusive". Following is bad (unexpected by me): ve shows "abcd" as highlighted <Esc>0 vg_ shows "abc" as highlighted (and "y" yanks "abc") With ":set selection=inclusive", "abcd" is highlighted in both cases (good). John
-- You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php