nus-cs2030 / 2021-s1

28 stars 48 forks source link

".vimrc" E212: Can't open file for writing #16

Open Gernnon opened 4 years ago

Gernnon commented 4 years ago

I've downloaded and copied the .vimrc file into my directory as shown in the screenshots in https://github.com/nus-cs2030/2021-s1/wiki/Setting-Up-Vim

However, I am unable to open the file for writing as I think it's not even in the directory despite following the instructions and copying the file into it.

It says [New File] when doing the command vim ~/.vimrc

problem2

problem1

Is there suppose to be the formatting text when I open .vimrc using vim? Or must I manually create .vimrc instead and copy all the text formatting and paste it in vim?

yonggqiii commented 4 years ago

@Gernnon The latter is right.

Open .vimrc using vim, then paste the contents of our vimrc in vim by pressing Ctrl + Shift + V

You should be good to go after :wq

Gernnon commented 4 years ago

Ok thank you so much!

seanlowjk commented 4 years ago

Hi @Gernnon !

Is it ok if we re-open this issue for students who might face a similar issue? Thanks!