You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though not a basic command, but :w !sudo tee % is quite useful on Ubuntu.
Also some pseudo-commands are important but a hidden trick to newbie, such as 'enable line-no', 'enable syntax-highlight', 'change file type'... Maybe a new section is needed to include them.
Just depends on you. ╮(‾▽‾)╭
The text was updated successfully, but these errors were encountered:
@cascer1:w! works only you are the owner of file, :w !sudo tee % always works if you are a sudoer(disregarding the ownership). As I just tested.
So these two may be used in different scenario, I think.
Anyway, thank you. You enlightened me. ("ㅍ‿ㅍ)
Though not a basic command, but
:w !sudo tee %
is quite useful on Ubuntu.Also some pseudo-commands are important but a hidden trick to newbie, such as 'enable line-no', 'enable syntax-highlight', 'change file type'... Maybe a new section is needed to include them.
Just depends on you. ╮(‾▽‾)╭
The text was updated successfully, but these errors were encountered: