Dear Vimmers,
I just had a surprising experience with Vim's argdo command.
I did the following:
1) In my ruby on rails project I opened Vim and set the argument list with
:args `find . -name '*.rb'`
After this, I could see, that all Ruby files in the project were in
the argument list
2) I recorded a macro to add a simple comment line at the top of the file
ggO# encoding: utf-8^[
3) I executed this macro on all files in the argument list:
:argdo :norm @q
Interestingly only a subset of the files in the argument list got
changed, others were untouched.
In fact it only affected the files in a certain sub-directory.
Does anyone have a clue why this happened?
I am using (precompiled) MacVim 7.3 which is the latest available version.
Your help will be much appreciated.
Kind regards!
--
--
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/groups/opt_out.
Friday, December 6, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment