Giter Site home page Giter Site logo

"p" is not working about space-vim HOT 17 CLOSED

liuchengxu avatar liuchengxu commented on August 25, 2024
"p" is not working

from space-vim.

Comments (17)

liuchengxu avatar liuchengxu commented on August 25, 2024 1

哦,想起来了,插件是在 .vimrc 之后才加载的, 所以会被覆盖。https://github.com/liuchengxu/vim-better-default#how-to-override-the-existing-settings

可以这样做:

runtime! plugin/default.vim
set clipboard-=unnamed

from space-vim.

liuchengxu avatar liuchengxu commented on August 25, 2024

Are you in a tmux session?

from space-vim.

yesmeck avatar yesmeck commented on August 25, 2024

Yes.

from space-vim.

yesmeck avatar yesmeck commented on August 25, 2024

It works out of tmux session.

from space-vim.

liuchengxu avatar liuchengxu commented on August 25, 2024

You can refer to here for more information and here is my tmux.conf.

from space-vim.

yesmeck avatar yesmeck commented on August 25, 2024

我自己运行一次 set clipboard-=unnamed可以修正这个问题,但是把这句写在 UserConfig 里却没效果。

from space-vim.

liuchengxu avatar liuchengxu commented on August 25, 2024

可能因为这里已经设置过了 clipboard setting

from space-vim.

yesmeck avatar yesmeck commented on August 25, 2024

但是 UserConfig 的加载不是在插件的加载之后吗?

from space-vim.

liuchengxu avatar liuchengxu commented on August 25, 2024

额, UserConfig 的确是在最后进行加载,但这个也许是 set 与 let 的区别了,具体我也不是很清楚, 等待高手回答。。。

你可以看第二个回答,使用 brew 安装 reattach-to-user-namespace。

from space-vim.

yesmeck avatar yesmeck commented on August 25, 2024

发现 vim-better-default/plugin/default.vim 的执行是在 UserConfig 之后的,这样就有问题了,没办法在 UserConfig 里覆盖默认的配置了。

from space-vim.

yesmeck avatar yesmeck commented on August 25, 2024

runtime! plugin/default.vim 这个可以默认加到 core 里吧,覆盖默认设置应该是常见需求。

from space-vim.

liuchengxu avatar liuchengxu commented on August 25, 2024

有道理~

from space-vim.

yesmeck avatar yesmeck commented on August 25, 2024

发现想要修改 nerdtree 的配置也不行。

let NERDTreeChDirMode = 2

from space-vim.

liuchengxu avatar liuchengxu commented on August 25, 2024

这个好像我这里是 ok 的,它默认就是 2,在 UserConfig() 中设置是有效的:

let g:NERDTreeChDirMode = 2

你可以 :echo g:NERDTreeChDirMode 查看它的值。

from space-vim.

yesmeck avatar yesmeck commented on August 25, 2024

我这里是 0。。。

from space-vim.

yesmeck avatar yesmeck commented on August 25, 2024

默认值就是 0 https://github.com/scrooloose/nerdtree/blob/eee431dbd44111c858c6d33ffd366cae1f17f8b3/doc/NERD_tree.txt#L744

from space-vim.

yesmeck avatar yesmeck commented on August 25, 2024

奥,是我没加 g: 的缘故。

from space-vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.