Sunday, May 19, 2024
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 9288  / 2 Years ago, thu, august 18, 2022, 6:07:28

I want to copy the contents of a folder colors from ~/Downloads/vim-colorschemes-master to /etc/vim/colors. I tried this as instructed:



cp colors/* ~/etc/.vim/colors


But I am getting the error:



cp: target ‘/home/advenio/etc/.vim/colors’ is not a directory


How do I do this correctly?


More From » command-line

 Answers
1

~ refers to the home directory (in your case /home/advenio/). The place you want to copy it to is /etc/vim/colors



Try the command sudo cp ~/Downloads/path_to_colors/colors/* /etc/vim/colors


[#26554] Saturday, August 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rowbris

Total Points: 419
Total Questions: 122
Total Answers: 101

Location: Norway
Member since Mon, May 23, 2022
2 Years ago
;