Vim opens some files in readonly mode by default even when use sudo -


i have weird issue vim - files doesn't color syntax , opens readonly mode default, if use sudo. chmod file 664, owner of file, shouldn't.

i have no set ro in vimrc.

i noticed happens after removing .swp file - unfortunately, after this, particular file every time opened in readonly mode. 1 idea - maybe kind of spf13 cache?

for other files behavior correct.

anyone knows issue?

i found solution - more trivial expected.

i read vim messages more , saw @ end:

if did already, delete swap file `~/.vimswap/urls.py.swp` 

so did small investigation , found .vimviews inside /home directory. removed it's content , ...it works!


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -