IT技术博客大学习 共学习 共进步

标签:断行

共 1 篇相关文章

IT 累计浏览 2,724

防止VIM粘贴数据时断行

在vim编辑文件中,如果想粘贴较大长度的一行字符串时,经常会出现自动折行的情况,其实很简单,只需修改 /etc/vimrc,修改一个选项:if has("autocmd")" In text files, always limit the width of text to 78 characters" autocmd BufRead *.txt set tw=78autocmd BufRead *.txt set tw=200看到上面的注释了吧,把tw从78改成200甚至更大就行了。