« let's noteでキー入力がおかしくなる。 | トップページ | webページをproxyしてくれるwebアプリ »

2008年12月23日 (火)

vim grepした結果を編集して使う。

vimでよく使う機能としてgrepがある。
最近はwindowsでもそのまま使えて拡張子も指定できるvimgrepをよく使っている。

例えば 現在のディレクトリ配下(サブディレクトリも含む)の拡張子.pyに対して"Spend"を検索

:vimgrep "Spend" **/*.py

 lifeaccountnote.py|38 col 13| datas = Spending.all().filter('user',user).filter('date >=',fromdate).filter('date < ',todate)
lifeaccountnote.py|52 col 7| class Spending(db.Model):
lifeaccountnote.py|72 col 3| spending = Spending(user=user,
lifeaccountnote.py|76 col 3| spending.category=db.Key(category)
lifeaccountnote.py|77 col 3| spending.put()
lifeaccountnote.py|85 col 6| if spending.category.name in accountData:
lifeaccountnote.py|86 col 19| accountData[spending.category.name] += price
lifeaccountnote.py|88 col 19| accountData[spending.category.name] = price

上記のようなフォーマットで編集不可の形式で下windowに出力され、enterでカーソルのある行の結果にjumpできる。 これはこれですごく便利なのだが、別に興味のない結果行を削除したかったり、後で vimgrepを再び使用せずに、出力結果を再利用したい時はどうしたらいいのだろう? そういう場合の実行手順。

  • 1. grep結果を適当なファイル名で保存。
  • 2. 保存した結果を編集。(必要のない結果を削除したり等)
  • 3. :set errorformat=%f\|%l\ col\ %c\|%m
  • 4. :cf 1で保存したファイル名
  • 5. :cope

編集したvimgrepの結果ファイルに基づいたwindowが表示され、enterでjumpできるようになる。 ktkr

|

« let's noteでキー入力がおかしくなる。 | トップページ | webページをproxyしてくれるwebアプリ »

vim」カテゴリの記事

コメント

Hey. Soon your hosting account and your domain takesy.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.

Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site takesy.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars

All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.

Do you want this?

If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address takesy.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site takesy.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.

All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

投稿: MelvinRor | 2019年5月27日 (月) 00時11分

Hey. Soon your hosting account and your domain takesy.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.

Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site takesy.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars

All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.

Do you want this?

If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address takesy.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site takesy.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.

All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

投稿: Joshuadak | 2019年5月27日 (月) 00時11分

Hey. Soon your hosting account and your domain takesy.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.

Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site takesy.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars

All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.

Do you want this?

If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address takesy.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site takesy.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.

All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

投稿: Williamhef | 2019年5月27日 (月) 00時11分

Hey. Soon your hosting account and your domain takesy.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.

Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site takesy.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars

All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.

Do you want this?

If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address takesy.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site takesy.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.

All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

投稿: ShawnNog | 2019年5月27日 (月) 00時11分

Hey. Soon your hosting account and your domain takesy.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.

Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site takesy.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars

All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.

Do you want this?

If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address takesy.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site takesy.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.

All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

投稿: Richieweivy | 2019年5月27日 (月) 01時19分

Hey. Soon your hosting account and your domain takesy.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.

Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site takesy.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars

All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.

Do you want this?

If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address takesy.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site takesy.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.

All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

投稿: PatrickLer | 2019年5月27日 (月) 01時19分

Hey. Soon your hosting account and your domain takesy.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.

Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site takesy.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars

All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.

Do you want this?

If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address takesy.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site takesy.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.

All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.

My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL

投稿: BrandonNip | 2019年5月27日 (月) 01時19分

コメントを書く



(ウェブ上には掲載しません)




トラックバック


この記事へのトラックバック一覧です: vim grepした結果を編集して使う。:

« let's noteでキー入力がおかしくなる。 | トップページ | webページをproxyしてくれるwebアプリ »