|
|
|
|
|
by viandante
5434 days ago
|
|
Maybe somebody could help me to figure out how to save files properly with vim. I made a script that opens all the files I need. I call the script with: :source scriptname. Only problem is that the script works only if I open vim with 'vim' and not with 'sudo vim' (by the way, why is that?). But if I open with 'vim', then it give me problem when I try to save... |
|
A useful alias if you need root permissions to save:
cmap w!! w !sudo tee % >/dev/null