dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 0e0b41bf6a40df55022672387a68a7cbcf677dfc
parent 15b545a312621fe4a2586b5824814f5e57da1218
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Wed, 30 Aug 2017 14:56:38 -0400

add binding for writing current file with escalated privileges

Diffstat:
M.vim/keybinds.vim | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.vim/keybinds.vim b/.vim/keybinds.vim @@ -19,7 +19,7 @@ nmap <leader>E :Errors<CR> " Save file nmap <Leader>w :w<CR> -"nmap <Leader>fs :w<CR> +nmap <Leader>W :w !sudo tee > /dev/null %<CR>:e!<CR> " Quit nmap <Leader>q :q<CR> @@ -161,8 +161,8 @@ map <leader>L <Plug>(easymotion-bd-jk) nmap <leader>L <Plug>(easymotion-overwin-line) " Move to word -map <leader>W <Plug>(easymotion-bd-w) -nmap <leader>W <Plug>(easymotion-overwin-w) +"map <leader>W <Plug>(easymotion-bd-w) +"nmap <leader>W <Plug>(easymotion-overwin-w) " Disable arrow keys map <Left> <Nop>