BIG REFACTOR; PLEASE BE ADVISED
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
This commit is contained in:
17
vim/rc.d/39.utility-misc.vim
Normal file
17
vim/rc.d/39.utility-misc.vim
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
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>
|
Reference in New Issue
Block a user