yage
ad66d50b11
finally going to commit that zshrc refactor - smolvsdefault on altaria - i3-utils refactor - no need for custom scwrypt executable anymore - time to say goodbye to the old dotwryn.env in favor of the new and improved rc.ds - vim/rc.d refactor + QuickREPL and QuickCommand replacements for \r and \t - going to stop tracking Archives explicitly until new hard drive - tty-colorscheme is now referenced directly - colorscheme/spring-sunset needed to swap primary/secondary colors for focus in i3 since it was confusing - setup config no longer needs to create ~/.config/wryn/env.vim; added some dependencies to arch-linux - switch from dmenu to rofi by default; allow .i3 overrides in colorschemes; tty-colorscheme is now referenced directly
18 lines
367 B
VimL
18 lines
367 B
VimL
|
|
function Sudowrite()
|
|
execute 'w !sudo tee "%"'
|
|
endfunction
|
|
|
|
nnoremap <Leader><Leader>w :call Sudowrite()<CR>
|
|
|
|
function MakeFileExecutable(sudo = 0)
|
|
if a:sudo
|
|
execute '! sudo chmod +x "%"'
|
|
else
|
|
execute '! chmod +x "%"'
|
|
endif
|
|
endfunction
|
|
|
|
nnoremap <Leader><Leader>x :call MakeFileExecutable(0)<CR>
|
|
nnoremap <Leader><Leader>xx :call MakeFileExecutable(1)<CR>
|