//// " # "あるいは" % "を行頭に入れるマクロ
golinetop2; // 行頭に移動
beginsel;
down;
replaceall "^\\t+" , "" , regular, nocasesense, inselect; // 行頭のタブを消去
golinetop2; // 行頭に移動
if(filetype == ".r"){ // 拡張子がrの場合
insert "\t# "; // タブ+#+半角空白を挿入
} else { // 拡張子がr以外の場合
insert "\t% "; // タブ+%+半角空白を挿入
}
endmacro; //終了