div#side>ul.localnav>li*3>a
こんな感じで打った後、Ctr+yとカンマ[,]を打つと展開されます。
参考: http://d.hatena.ne.jp/sakurako_s/20110126/1295988873
プラグイン自体のインストールは前の記事にも書いたvundleが便利です。
http://iiidevelop.blogspot.com/2011/07/vimvundle.html
div#side>ul.localnav>li*3>a
<?php echo $title_for_layout; ?>
$this->set('title_for_layout','hogehoge');
<a class="twitter-share-button" data-count="horizontal" data-lang="ja" href="http://twitter.com/share">ツイート</a> <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
<div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js#appId=256349884376536&xfbml=1"></script> <fb:like font="" href="" send="true" show_faces="true" width="450"></fb:like>
VBoxManage clonevdi コピーされる.vdi コピー先.vdi
vi /etc/php.ini
include_path = “.:/usr/local/lib/php/ZendFramework/library”
/etc/init.d/httpd restart
vi mysql-backup.sh
#!/bin/bash PATH=/usr/local/sbin:/usr/bin:/bin # バックアップ先ディレクトリ BACKDIR=/backup/mysql # MySQLrootパスワード ROOTPASS=xxxxxxxx # バックアップ先ディレクトリ再作成 rm -rf $BACKDIR mkdir -p $BACKDIR # データベース名取得 DBLIST=`ls -p /var/lib/mysql | grep / | tr -d /` # データベースごとにバックアップ for dbname in $DBLIST do table_count=`mysql -u root -p$ROOTPASS -B -e "show tables" $dbname|wc -l` [ $table_count -ne 0 ] && mysqlhotcopy $dbname -u root -p $ROOTPASS $BACKDIR | logger -t mysqlhotcopy done
chmod 700 mysql-backup.sh echo "0 5 * * * root /root/mysql-backup.sh" > /etc/cron.d/backup
/bin/cp -Rf /backup/mysql/test/ /var/lib/mysql/
% sudo port install w3m
wget http://doc.okkez.net/archives/201106/ruby-refm-1.9.2-dynamic-20110629.tar.gz tar zxvf ruby-refm-1.9.2-dynamic-20110629.tar.gz mv ruby-refm-1.9.2-dynamic-20110629 rubyrefm sudo vi /opt/local/bin/refe
#!/bin/sh exec ruby -Ke -I ~/Documents/Reference/rubyrefm/bitclust/lib ~/Documents/Reference/rubyrefm/bitclust/bin/refe.rb -d ~/Documents/Reference/rubyrefm/db-1_8_7 "$@"
sudo chmod 755 /opt/local/bin/refe
$ git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
set nocompatible " be iMproved filetype off " required! set rtp+=~/.vim/bundle/vundle/ call vundle#rc() " let Vundle manage Vundle " required! Bundle 'gmarik/vundle' " My Bundles here: " " original repos on github Bundle 'tpope/vim-fugitive' Bundle 'Lokaltog/vim-easymotion' Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} " vim-scripts repos Bundle 'L9' Bundle 'FuzzyFinder' Bundle 'rails.vim' " non github repos Bundle 'git://git.wincent.com/command-t.git' " ... filetype plugin indent on " required!
Bundle 'Shougo/neocomplcache' Bundle 'Shougo/unite.vim' Bundle 'thinca/vim-ref' Bundle 'thinca/vim-quickrun' "Ruby Bundle 'rails.vim' "Html Bundle 'mattn/zencoding-vim'
<meta property="og:image" content="IMAGE_URL"/>
<?php if (!empty($imgurl)) { echo '<meta property="og:image" content="http://hoge.com/img/'.$imgurl.'" />'; } else { echo '<meta property="og:image" content="http://hoge.com/img/og_logo.jpg" />'; }; ?>