Vim_行首或行尾插入指定字符串

行首 : %s/^/your_word/

行尾 : %s/$/your_word/

所有行行首加指定字符串: %s/^/your_word/g

行尾同理

猜你喜欢

转载自mikzhang.iteye.com/blog/2219648