#book #実践Vim ## TIP2 DRY `.`で繰り返しができる 下に、セミコロンをつけるときは ``` var foo = 1 var bar = 'a' var foobar = foo + bar ``` A(行末に移動してinsertモード) j . | 複合コマンド | 長いver |説明| | ---- | ---- |---| |o|ji| 次の行でinsert| |O | ko | 前の行にinsert | |O | ko | 前の行にinsert | |I | i^ | 行頭insert | |A | $a | 行末insert | |s | cl | 隣の文字をカットしてinsert | |S | ^C | 行をカットしてinsert | ## TIP3 一歩下がって、三歩進む +の左右にスペースをいれたい ``` var foo = "method("+argument1+","+argument2+")"; ``` f+ ;(fの次のものに移動。戻るときは,) . ## TIP5 手作業の検索と置換 content => copyにする ``` ...We're waiting for content before the site can go live... ...If you are content with this, let's go ahead with it... ...We'll launch as soon as we have the content... ``` `*`(ハイライト) n(次へ) cwcopy(copyへ書き換え) .