Re: WORK AROUND: How to copy and rename a file with netrw where the target and source directory are the same?

2015-10-08 Thread Charles Campbell
Shane Dev wrote: > Hi Chris, > > :cd [the directory of oldfilename] > :call system("cp 'oldfilename' 'newfilename'") > > works as expected. > > After further testing, it seems I have to execute netrw-c (make browsing > directory the current directory) before the sequence - > > 1. move cursor to o

WORK AROUND: How to copy and rename a file with netrw where the target and source directory are the same?

2015-10-07 Thread Shane Dev
Hi Chris, :cd [the directory of oldfilename] :call system("cp 'oldfilename' 'newfilename'") works as expected. After further testing, it seems I have to execute netrw-c (make browsing directory the current directory) before the sequence - 1. move cursor to oldfile, 2. mt 3. mf 4. mc 5. en

Re: How to copy and rename a file with netrw where the target and source directory are the same?

2015-10-07 Thread Charles Campbell
Shane Dev wrote: > Hi Chris, > > I appreciate the netrw author taking an interest in my newbie problem - but I > am still stumped. I am running gvim 7.4.884 on Arch Linux. I checked some > global variables - > > :ec g:loaded_netrwPlugin > v153 > :ec g:netrw_localcopycmd > cp > :ec executable(g:ne

Re: How to copy and rename a file with netrw where the target and source directory are the same?

2015-10-06 Thread Shane Dev
Hi Chris, I appreciate the netrw author taking an interest in my newbie problem - but I am still stumped. I am running gvim 7.4.884 on Arch Linux. I checked some global variables - :ec g:loaded_netrwPlugin v153 :ec g:netrw_localcopycmd cp :ec executable(g:netrw_localcopycmd) 1 then I launch ne

Re: How to copy and rename a file with netrw where the target and source directory are the same?

2015-10-05 Thread Charles Campbell
Shane Dev wrote: >> Copy a file using the usual netrw method for copying: (assuming cursor >> is atop the file to be copied, and that the file is a file, not a director) >> >> mt (mark target) >> mf (mark file) >> mc >> >> You'll be given a prompt: Copy [filename] to : [filename] >> >> Just edit

Re: How to copy and rename a file with netrw where the target and source directory are the same?

2015-10-05 Thread Shane Dev
> Copy a file using the usual netrw method for copying: (assuming cursor > is atop the file to be copied, and that the file is a file, not a director) > > mt (mark target) > mf (mark file) > mc > > You'll be given a prompt: Copy [filename] to : [filename] > > Just edit the 2nd instance of [f

Re: How to copy and rename a file with netrw where the target and source directory are the same?

2015-10-05 Thread Charles E Campbell
Shane Dev wrote: > for example, I want to "backup" a file, in bash I type > > cp /etc/foo /etc/foo.0 > > can I achieve the same time with netrw? > Copy a file using the usual netrw method for copying: (assuming cursor is atop the file to be copied, and that the file is a file, not a director) mt

How to copy and rename a file with netrw where the target and source directory are the same?

2015-10-03 Thread Shane Dev
for example, I want to "backup" a file, in bash I type cp /etc/foo /etc/foo.0 can I achieve the same time with netrw? -- -- 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