Closed smc181002 closed 3 years ago
Remove all lines in which you manually tried to install it. Just use Vim-Plug. You have written the Vim-Plug syntax correctly. Make sure you write syntax on
and colorscheme onehalfdark
under the block for plugins. Then close init.vim using :wq
, open it again, do these in order
:source %
:PlugInstall
:UpdateRemotePlugins
:q
:q!
When you open vim the next time, your theme should be present.
Sorry for the late reply, I think you might have solved it by now :)
But as @k2s09 said you need to put the colorscheme onehalfdark
command below the block for plugins. Statements are executed in order so you need to define the plugins for them to be sourced properly before calling colorscheme
. Basically I'd put line 29 below 37 (end of plugins block).
Cheers!
hello guys, I am new to Vim and Neovim so forgive me if I didn't something wrong. So the issue is, I am using neovim and I also use Plug for package management when I installed it with![image](https://user-images.githubusercontent.com/53662575/103902179-29fa3980-5120-11eb-888a-f65f229115ab.png)
Plug 'sonph/onehalf', {'rtp': 'vim' }
as mentioned in the docs. but when I addcursorline onehalfdark
to the init.vim file and then I run the commandsource %
to apply the changes and it did work. Then after when I closed the file and opened it again, it gave the errorNow I found a solution but it is not an ideal as I think. what I did was to source the![image](https://user-images.githubusercontent.com/53662575/103902398-7ba2c400-5120-11eb-8d71-5fb70d040c8b.png)
onehalfdark.vim
file inside theinit.vim
file.Now this did work but it isn't ideal 🤔 so please look into it because I loved the theme and this is a minus 😞 But if there is an error I made, please point it out 🙏