1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Neovimでclipboardにunnamedを設定してるとペーストした際にレイアウトが崩れるのを回避する方法

Last updated at Posted at 2018-04-14

Summary

clipboardunnamed or unnamedplusを設定していると put(paste)した際にレイアウトが崩れる

レイアウトが崩れるのを回避する方法

// init.vim
set clipboard=unnamed

Workaround

put(paste)するさいunnamed registersを指定する

""p

Environment

$ sw_vers 
ProductName:	Mac OS X
ProductVersion:	10.13.4
BuildVersion:	17E199

$ nvim --version
NVIM v0.2.3-dev
Build type: Release

たとえば・・・

このテーブルに

| foo | bar |
| --- | --- |
| aaa | bbb | 

このカラムを右に足して

| baz |
| --- |
| ccc |

こんな感じのテーブルにしたい

| foo | bar | baz |
| --- | --- | --- |
| aaa | bbb | ccc |

現状(p)

| foo | bar |
 baz |
 --- |
 ccc |
| --- | --- |
| aaa | bbb |

workaround(""p

| foo | bar | baz |
| --- | --- | --- |
| aaa | bbb | ccc |

よければ・・

こんな回避方法あるよ!とかあれば下記のissueに追記してくださると嬉しいです!

1
3
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
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?