Comments (17)
哦,想起来了,插件是在 .vimrc 之后才加载的, 所以会被覆盖。https://github.com/liuchengxu/vim-better-default#how-to-override-the-existing-settings
可以这样做:
runtime! plugin/default.vim
set clipboard-=unnamed
from space-vim.
Are you in a tmux session?
from space-vim.
Yes.
from space-vim.
It works out of tmux session.
from space-vim.
You can refer to here for more information and here is my tmux.conf.
from space-vim.
我自己运行一次 set clipboard-=unnamed
可以修正这个问题,但是把这句写在 UserConfig
里却没效果。
from space-vim.
可能因为这里已经设置过了 clipboard setting
from space-vim.
但是 UserConfig 的加载不是在插件的加载之后吗?
from space-vim.
额, UserConfig 的确是在最后进行加载,但这个也许是 set 与 let 的区别了,具体我也不是很清楚, 等待高手回答。。。
你可以看第二个回答,使用 brew 安装 reattach-to-user-namespace。
from space-vim.
发现 vim-better-default/plugin/default.vim 的执行是在 UserConfig 之后的,这样就有问题了,没办法在 UserConfig 里覆盖默认的配置了。
from space-vim.
runtime! plugin/default.vim
这个可以默认加到 core 里吧,覆盖默认设置应该是常见需求。
from space-vim.
有道理~
from space-vim.
发现想要修改 nerdtree 的配置也不行。
let NERDTreeChDirMode = 2
from space-vim.
这个好像我这里是 ok 的,它默认就是 2,在 UserConfig() 中设置是有效的:
let g:NERDTreeChDirMode = 2
你可以 :echo g:NERDTreeChDirMode
查看它的值。
from space-vim.
我这里是 0。。。
from space-vim.
from space-vim.
奥,是我没加 g:
的缘故。
from space-vim.
Related Issues (20)
- Ctags' window is covered by the airline plug-in
- Not working on NeoVim HOT 2
- Didn't find the folder ~/.SpaceVim.d/ after running installation bash HOT 1
- How to disable fzf plugin HOT 1
- Auto-installed FZF does not work out of the box HOT 2
- How to change the cursor's highlight color HOT 1
- How to disable AddTitle() function for new files
- Helptags generation fails during space-vim's autoload when using any folder other than $HOME/.space-vim.
- Support for custom installaton folder HOT 1
- Is there any configuration support rg seaching specify file types?
- Python linters not working HOT 1
- Error detected while processing function SpaceVim#plugins#flygrep#open HOT 1
- E239 triggered "invalid sign text: ~^^" HOT 5
- How to enable cursor history jumplist content preview HOT 1
- How to make <Leader>jF which is formating the json buffer work?
- Line number display error HOT 2
- Whether there will be Neovim LSP support? HOT 2
- How do I uninstall spacevim from my Windows 11 pc. HOT 1
- 鼠标单击异常问题
- Got error when load Gvim
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from space-vim.