Sometimes copy and paste inside Vim using mouse over remote connection does not work as expected.
I am using the lightline status line with the Solarized color scheme inside Vim text editor.
It is very annoying to see message “E212: Can’t open file for writing” when trying to save file. Hopefully there is a simple solution (a bit longer but without “W12 Warning“): :execute ‘:w !sudo tee % > /dev/null’ | :edit! Look at commandlinefu.com for more solutions like :W command below: :command W :execute ‘:silent w […]