« Firefoxの認証ダイアログが特定条件でどっか行く件 | ホーム | アプリケーションhogehogeの終了に失敗しました〜でOSの終了、再起動、ログアウトができない »

2008年11月23日

vimM#3に参加してきたよ

vimM#3に参加してきたよ

VimM#3に行ってきたのでメモ。

参加者のみなさんお疲れさまでしたー。楽しかったです。

途中からメモが適当すぎる。

Vimを効率的に覚えるために by ukstudio

  • .vimrcの編集: リロータブルvimrc
  • チュートリアル: :Tutorial or $ vimtutor
  • 検索: * でカーソル位置の単語を検索する
  • ファイル間の移動: :e
  • カーソル上のファイル名のファイルを開く: gf
  • 置換: visual modeで選択するとその範囲だけ対象になる
  • 単語の補完: ex) vi<C-n> or vi<C-p>
  • コミュニティいろいろあるよ!
  • ヘルプ読め!
  • ひとつを習慣にて、それが身についたら次へ

マクロ by taku-o

  1. q{レジスタ}で記録開始
  2. 何か操作する
  3. qで記録終了 #記録の最後は先頭行に戻るとミスりにくい?
  4. @{レジスタ}で再生
    • 500@a で aマクロを500回実行
    • マクロ中でマクロを呼び出せる
    • ループも出来る。止めるときはC-c

レジスタって何?

  • データを記録できる変数みたいなもの
  • Vimエディタで行われた様々な操作が記録されている
  • :display or :registers
  • レジスタには a-zA-Z0-9" が使える
    • 0"のレジスタは頻繁に書き換わってしまう
    • 1-9は複数行を記録すると番号がずれる
    • A-Zはa-zに追記される

利点

  • vimのカーソル移動能力を使って、編集箇所を細かく指定できる

欠点

  • 修正めんどいので作り直した方が早い
  • 処理速度が遅い
  • 条件付きマクロはめんどくさい(つくるな)

対象

  • 少し大きめの編集処理
  • 6件〜10万件くらい
  • 基本使い捨て
  • スクリプトを組もうとすると面倒なもの

よく覚えてない

  • :vimgrep
  • :cn
  • インクリメントC-a、デクリメントC-x
    • 桁数が増えるので、マクロ中での移動をhlでやらない
  • レジスタへのアクセス
    • normal,visual mode: "a
    • ex,insert mode: <C-r>a
  • expressionレジスタ
    • 演算の結果、ファンクションの戻り値
    • ex) <C-r>=

Q&A

  • マクロを保存しときたい場合ってどうするん?
    • プラグインあるお
    • .vimrcに書くという手も

俺の.vimrcを見ろ!PHP使いの為の設定とプラグイン by halt

  • 退職テンプレート
  • AutoComplPop.vim
    • AutoComplPop用辞書あり
  • fuzzyfinder.vim
  • FlyQuickFixMake.vim

operator, the true power of Vim by kana

  • :help Visual-mode
  • :help text-objects
    • vap
    • vip
    • :help Q_to
  • :help fold
    • "{{{

第2部 Q&Aセッション

  • localfileにyankできるプラグイン: fakeclip
  • mapleader
  • skk.vim
  • zsh vim mode
  • visual modeで複数行選択して=するとインデント揃う
    • normal modeなら=ip
  • :help mouse

  • 食った。

DDRやった

  • おれはもうわかくない。

あとさすがvimerの集いだけあってvimperator使用率がかなり高かった。

トラックバック(0)

トラックバックURL: http://retlet.net/cgi-bin/mt5/mt-tb.cgi/63

コメント(99)

all the time i used to read smaller content which as well clear their motive, and that is also happening with this piece of writing which I am reading now.

One other issue is when you are in a circumstances where you will not have a co-signer then you may actually want to try to wear out all of your financing options. You will find many grants or loans and other scholarships and grants that will ensure that you get money to assist with classes expenses. Thx for the post.

Wow! It’s a pleasant jQuery script; I was also searching for that, so i got it right now from here. Keep it up admin.

Magnificent site. Plenty of useful information here. I am sending it to several friends ans also sharing in delicious. And obviously, thanks for your effort!

Once I initially commented I clicked the -Notify me when new feedback are added- checkbox and now each time a comment is added I get 4 emails with the same comment. Is there any method you possibly can take away me from that service? Thanks!

It’s really a cool and useful piece of info. I’m glad that you just shared this useful info with us. Please stay us up to date like this. Thanks for sharing.

My developer is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the costs. But he's tryiong none the less. I've been using WordPress on various websites for about a year and am concerned about switching to another platform. I have heard very good things about blogengine.net. Is there a way I can import all my wordpress posts into it? Any help would be really appreciated!

Remarkable! Its in fact remarkable piece of writing, I have got much clear idea concerning from this article.

Hello there, simply changed into alert to your weblog thru Google, and located that it is truly informative. I’m gonna be careful for brussels. I’ll appreciate for those who proceed this in future. A lot of people can be benefited from your writing. Cheers!

Hi, I also desire to share my thoughts at this time, when i don’t know even about a easy thing related to PHP, I always go to search that from net.

For newest news you have to visit internet and on web I found this web site as a best site for most up-to-date updates.

Nice answers in return of this difficulty with firm arguments and describing everything regarding that.

Every weekend i used to visit this website, for the reason that i wish for enjoyment, since this this web site conations really nice funny information too.

I think other website proprietors should take this website as an model - very clean and great style and design, in addition to the content. You are an expert in this area!

Touche. Solid arguments. Keep up the good work.

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why throw away your intelligence on just posting videos to your blog when you could be giving us something informative to read?

Do you have a contribution button? I attempted to locate 1 immediately after reading this brilliant article however could not seem to find it. E-mail me your paypal if you like and i'll donate some ramen money!

No problem, and further more if you would like update alerts from this site then you have to subscribe for it, it will be a better for you Jackson. Have a lovely day!

It’s really a cool and useful piece of info. I’m happy that you simply shared this useful info with us. Please keep us up to date like this. Thank you for sharing.

I every time emailed this webpage post page to all my friends, since if like to read it afterward my contacts will too.

Hi there! Someone in my Myspace group shared this website with us so I came to give it a look. I'm definitely enjoying the information. I'm bookmarking and will be tweeting this to my followers! Outstanding blog and great design and style.

Ahaa, its pleasant dialogue concerning this piece of writing here at this blog, I have read all that, so now me also commenting at this place.

The heart of your writing whilst appearing agreeable originally, did not work very well with me after some time. Someplace throughout the sentences you managed to make me a believer unfortunately just for a very short while. I nevertheless have got a problem with your leaps in assumptions and you might do nicely to help fill in all those breaks. In the event you actually can accomplish that, I will surely be amazed.

My spouse and I stumbled over here different web address and thought I may as well check things out. I like what I see so now i'm following you. Look forward to finding out about your web page repeatedly.

Would you be serious about exchanging hyperlinks?

I’d need to check with you here. Which isn't something I normally do! I get pleasure from reading a submit that may make people think. Additionally, thanks for allowing me to remark!

This is the fitting blog for anyone who wants to find out about this topic. You realize a lot its almost hard to argue with you (not that I really would need…HaHa). You undoubtedly put a new spin on a subject thats been written about for years. Nice stuff, just nice!

I needed to compose you the very small remark in order to give many thanks once again for the remarkable information you've provided in this article. This is really surprisingly generous of people like you to make unhampered precisely what a few people could possibly have offered as an e book to get some money for themselves, even more so considering the fact that you might have done it if you ever considered necessary. Those secrets additionally served to be the fantastic way to comprehend the rest have the identical eagerness much like my personal own to realize much more on the subject of this problem. I'm certain there are lots of more pleasurable sessions ahead for individuals who looked at your blog.

Whats up! I just wish to give an enormous thumbs up for the great info you've got here on this post. I can be coming again to your blog for extra soon.

The next time I learn a blog, I hope that it doesnt disappoint me as much as this one. I mean, I do know it was my option to read, however I actually thought youd have one thing fascinating to say. All I hear is a bunch of whining about something that you might fix if you happen to werent too busy searching for attention.

Would you be thinking about exchanging hyperlinks?

There are some attention-grabbing closing dates on this article but I don’t know if I see all of them center to heart. There is some validity but I'll take hold opinion till I look into it further. Good article , thanks and we would like more! Added to FeedBurner as properly

I totally agree with your post. It takes just a few moments to read a blog and leave a decent comment. I don't know why spammers think that leaving in any old rubbish and keywords as theiir name will get a good number of accepted comments. I think it's better to leave a good comment and your real name. I can't tell you how many bingo and gambling comments that I've refused on my blog just because their name is their keywords!

Thank you for sharing these kinds of wonderful posts. In addition, the best travel as well as medical insurance system can often eliminate those considerations that come with visiting abroad. Some sort of medical crisis can rapidly become too expensive and that's sure to quickly put a financial impediment on the family's finances. Putting in place the great travel insurance deal prior to setting off is well worth the time and effort. Thanks a lot

Howdy! I simply want to give an enormous thumbs up for the good info you've got right here on this post. I can be coming again to your weblog for extra soon.

I’m gone to tell my little brother, that he should also visit this web site on regular basis to take updated from most recent information.

you could have a fantastic blog here! would you wish to make some invite posts on my weblog?

You made some respectable factors there. I seemed on the internet for the difficulty and found most people will go along with with your website.

I got this web page from my friend who shared with me on the topic of this web site and at the moment this time I am visiting this site and reading very informative articles at this place.

I’d should verify with you here. Which isn't one thing I normally do! I enjoy studying a submit that may make folks think. Additionally, thanks for allowing me to remark!

you've a fantastic weblog here! would you wish to make some invite posts on my weblog?

Thanks for your blog post. What I would like to bring about is that computer system memory needs to be purchased but if your computer still can't cope with anything you do with it. One can set up two random access memory boards having 1GB each, as an illustration, but not one of 1GB and one having 2GB. One should check the maker's documentation for the PC to make sure what type of ram is necessary.

There may be noticeably a bundle to find out about this. I assume you made certain good points in features also.

I wish to point out my respect for your generosity for men and women who really need assistance with the study. Your very own commitment to getting the message throughout appears to be astonishingly good and has continually permitted those just like me to realize their pursuits. Your new helpful tips and hints entails much to me and even more to my office colleagues. Thanks a lot; from each one of us.

ahdklawjhdakw hdkawjhdaklwdh kahwdkawh kajwhdkaljwh akwdhkwadh

WONDERFUL Post.thanks for share..extra wait .. …

When I originally commented I clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I get four emails with the same comment. Is there any approach you possibly can remove me from that service? Thanks!

Hey! I could have sworn I've been to this site before but after browsing through some of the post I realized it's new to me. Nonetheless, I'm definitely happy I found it and I'll be book-marking and checking back often!

I do believe other web page masters need to consider this web site being an model : very clean and amazing style, not to mention the information. You’re an expert of this type!

Can I simply say what a relief to find somebody who actually knows what theyre speaking about on the internet. You undoubtedly know the way to deliver an issue to gentle and make it important. Extra people have to learn this and perceive this aspect of the story. I cant consider youre no more standard because you positively have the gift.