首页 > 电脑资讯 > 电脑知识

防范VIM粘贴数据时断行

作者:佚名   来源:本站   时间:2018-07-14  点击:71次

    在vim编辑文件中,如果想粘贴较大长度的一行字符串时,经常会出现自动折行的情况,其实很简单,只需修改 /etc/vimrc,修改一个选项:

    if has("autocmd")

    " In text files, always limit the width of text to 78 characters

    "  autocmd BufRead *.txt set tw=78

    autocmd BufRead *.txt set tw=200

    看到上面的注释了吧,把tw从78改成200甚至更大就行了。

推荐游戏

换一换