Re: Issue 355 in vim: :swapname prints different string at different occasions
Comment #2 on issue 355 by istjanic...@gmail.com: :swapname prints different string at different occasions https://code.google.com/p/vim/issues/detail?id=355 Thanks for the patch and the workaround, but ... the patch doesn't fix the problem for me. I applied it, but the behavior is the same as before. After all, you can easily work around it so it's not a big deal. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings -- -- You received this message from the vim_dev 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_dev group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Issue 355 in vim: :swapname prints different string at different occasions
Comment #1 on issue 355 by chrisbr...@googlemail.com: :swapname prints different string at different occasions https://code.google.com/p/vim/issues/detail?id=355 You could write a custom script, something like this: :command! Swapname :redir =a|exe ':sil swapname'|redir end |let a=a[1:]| echo fnamemodify(a, ':p') Alternatively, I'll attach a patch here. But until this is merged, use a script like this one. Attachments: swapname.diff 407 bytes -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings -- -- You received this message from the vim_dev 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_dev group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Issue 355 in vim: :swapname prints different string at different occasions
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 355 by istjanic...@gmail.com: :swapname prints different string at different occasions https://code.google.com/p/vim/issues/detail?id=355 What steps will reproduce the problem? 1. % vim -u NONE -U NONE --noplugin 2. :edit a_file.txt 3. :swapname - prints .a_file.txt.swp 4. :q! 5. % vim -u NONE -U NONE --noplugin a_file.txt 6. :swapname - prints /home/user/.a_file.txt.swp What is the expected output? What do you see instead? Prints the path of the swapfile as relative or absolute path, depending on when I called the command. Since I use the output in a script, it would be nice if the output would be consistent. What version of the product are you using? On what operating system? Both Vim 7.2 and Vim 7.4 on Linux. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings -- -- You received this message from the vim_dev 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_dev group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.