LoginSignup
1
0

More than 5 years have passed since last update.

以下の状態にしたい時のマクロ

Last updated at Posted at 2012-12-26

変更前

10
11
12
13

変更後

'10',
'11',
'12',
'13'

方法

マクロの記録qを押して、アルファベット小文字を入力して、再度qで保存
:g/^$/d(空行の削除)
先頭に移動して改行を入れる
:%s/\n/',[ctrl+v][Enter]'/
最後の余計な部分を消す
最初の余計な部分を消す
ggVGy
(すべて選択してコピー)
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0