vim error message ~./vimrc" E212: can’t open file for writing

I'm trying to create a shortcut key in vim to compile and run the program

with this command :

map <F9> :w <CR> :!clear && gcc % <CR>

map <C-F9> :W <CR> :!clear && gcc % -o %< && ./%< <CR>

but when i wanna save this command in here file with ::wq

i get this error : "~./vimrc" E212: can't open file for writing

pleas some one help me...and thank you

Read more here:

Content Attribution

This content was originally published by Fares Naoui at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: