osx:vim视觉剪切并粘贴叶子空白,覆盖 [英] osx: vim visual cut and paste leaves whitespace, overwrites

查看:86
本文介绍了osx:vim视觉剪切并粘贴叶子空白,覆盖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(注意:每个在使用vim版本的Mac上:

On my mac using vim version:

VIM-Vi IMproved 7.4(2013年8月10日,编译于2016年6月10日10:50:34)MacOS X(unix)版本包括的修补程序:1-1219

当我处于可视模式时,选择一个文本块,然后单击 x ,将删除文本,但保留空白.这是一个视频: https://vimeo.com/176318393

when I am in visual mode, select a block of text, then click x, the text is removed but the whitespace remains. Here is a video: https://vimeo.com/176318393

类似地,当我使用"+ p 粘贴(从系统剪贴板粘贴)时,该文本会覆盖这些行上的内容,并且不会颠簸"所粘贴的文本.a href ="https://vimeo.com/176319290" rel ="nofollow noreferrer"> https://vimeo.com/176319290

similarly, when I paste using "+p (pastes from the system clipboard), the text overwrites whatever is on those lines and does not "bump" down the text being pasted. Video: https://vimeo.com/176319290

我想解决这两个问题,但是我很直觉它们是相关的,因此我将它们发布在一个问题中.

I want to solve these two problems but I have a hunch they are related so I am posting them in one question here.

我的vimrc的子集(vimrc很大,但是插件的东西几乎没有影响它的东西),可以处理常规设置:

A subset of my vimrc (vimrc is massive but nearly positive the plugin stuff has nothing that could affect this) that handles generic settings is here: http://pastebin.com/2APD1ycp

怎么了?

推荐答案

两个视频中显示的行为都是完全正常的,并且在可视块模式下是预期的.

The behavior shown in both videos is perfectly normal and expected in visual block mode.

您可以使用视觉模式视觉线条模式,因此,如果您不想要视觉块模式的行为……请不要使用它.

You have visual mode and visual line mode at your disposal so, if you don't want the behavior of visual block mode… don't use it.

这篇关于osx:vim视觉剪切并粘贴叶子空白,覆盖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆