save with sudo ":w!!"

main
Thomas Ba. 10 years ago
parent 69b2b6b66d
commit 0470cd4ad3

@ -134,7 +134,7 @@ bindsym Mod4+c exec bashrun --toggle
bindsym Mod4+b border toggle
bindsym Mod4+o open
# Mod4+Shift+r restarts i3 inplace
bindsym Mod4+Shift+r restarts i3 inplace
bindsym Mod4+Shift+w reload
@ -196,7 +196,7 @@ bindsym $mod+r mode "resize"
bar {
status_command i3blocks
i3bar_command /usr/bin/i3bar-icons
tray_output DVI-0
tray_output LVDS1
}
bindsym $mod+Shift+g mode "$mode_gaps"

@ -131,6 +131,9 @@ nmap ;m :%s/^\(> \)\+>/\=substitute(submatch(0),'> ','>','g')/ge<cr>ggVGgq
nmap ;h :%s/^\(> \)\+>/\=substitute(submatch(0),'> ','>','g')/ge<cr>gg/^$<cr>VGgq
nmap ;p ?^$<cr>V/^$<cr>gqk<end>:nohl<cr>
" save with sudo
cmap w!! w !sudo tee % >/dev/null
" help deobfuscate code
function! CleanUpObfuscatedCode()
exec ':%s/\([{};]\)/\1\r/g'

Loading…
Cancel
Save