ファイルタイプ
emacsでいうモードを変更するには、
:set filetype=ruby
でok
置換
全件置換: %s/{word}/{word}/g
一行置換: {lines-no}s/{word}/{word}/
複数行置換: {line},{line}s/{word}/{word}/
インデントを整える
インデントを整えるには = で整えられる。
全ファイルを整えるには gg=G を入力する
screenで開いている別のvimへのコピー
http://www.vim.org/scripts/script.php?script_id=1598
Comments (0)
You don't have permission to comment on this page.