I have a problem with a .vimrc file, the problem is that it sometimes loads, and sometimes not.
1 set number
2 syntax on
3 set autoindent
4 map <F2> :!g++ % -Wall -time -O<CR>
5 echo "it works!"
I added echo to check if it is loaded, and when I type, for example. vim .vimrc, it loads and shows that “it works” in the terminal, but when I type, for example. sudo vim test.cppit does not load, the message does not appear. I am using debian.
source
share