fix to newsboat config and additions to init.vim (#374)

* removed duplicate keybinding with same function

* added command to install plugins on first run

* w!! command to save file buffer as sudo on files that require
root privileges
This commit is contained in:
KronikPillow 2019-09-14 02:35:41 +02:00 committed by Luke Smith
parent ac4b78b169
commit 125712f1bb
2 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,6 @@ bind-key N prev-unread
bind-key D pb-download
bind-key U show-urls
bind-key x pb-delete
bind-key ^t next-unread
color listnormal cyan default
color listfocus black yellow standout bold

View File

@ -4,6 +4,7 @@ if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
echo "Downloading junegunn/vim-plug to manage plugins..."
silent !mkdir -p ~/.config/nvim/autoload/
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim
autocmd VimEnter * PlugInstall
endif
call plug#begin('~/.config/nvim/plugged')
@ -112,6 +113,9 @@ set clipboard+=unnamedplus
vnoremap <leader><leader> <Esc>/<++><Enter>"_c4l
map <leader><leader> <Esc>/<++><Enter>"_c4l
" Save file as sudo on files that require root permission
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
"""LATEX
" Word count:
autocmd FileType tex map <leader>w :w !detex \| wc -w<CR>