Created
September 30, 2011 14:02
-
-
Save hideo55/1253830 to your computer and use it in GitHub Desktop.
ヴィジュアルモードの選択範囲に対してコマンドを実行
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"選択範囲に対してperltidyを実行する例ですが、 | |
noremap <buffer> ,ptv <Esc>:'<,'>! perltidy -pbp<CR> | |
"こんな感じでいけます。'<,'>がヴィジュアルモードでの選択範囲を表してます | |
"選択して ,ptv とタイプすると選択範囲が perltidy -pbp に渡され、選択範囲がperltidyの標準出力で置換されます |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment