sc wrote: > On Monday 05 October 2009, Nathan Neff wrote: > > >> I'm using Vim 7.2, both terminal and gvim, and cannot move >> files in netrw. >> >> Let's say I have a directory with >> subdir/ >> foo.txt >> >> If I mark the 'subdir/' target with 'mt', then >> mark foo.txt with 'mf', I can press 'mm' and >> foo.txt will become un-highlighted, but it will not >> be moved to subdir/ >> >> I'm running Ubuntu 9.04. >> >> Does anyone know what I'm doing wrong? Please note >> that using the 'mc' command to copy files works correctly. >> > > i don't know what your problem is, but i can tell you some > things that might help you narrow it down > > first, start vim with a simple .vimrc that consists of one > thing: set nocompatible, then try your move > > if it works, start adding stuff back to your .vimrc til the > move no longer works -- one of the first things to look for > is whether you have 'autochdir' set in your .vimrc -- that > setting causes problems for a lot of scripts, netrw among > them > As sc pointed out, options can cause problems. I just moved a file back and forth with the mt, mf, and mm commands without problems -- but that was with my own settings. However, I'd add one extra statement to sc's simple .vimrc:
set nocp filetype plugin on so that the netrw plugin is available. If you want to see the file that you've marked, you also need "syn on" in there. Regards, Chip Campbell --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
