mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
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:
parent
ac4b78b169
commit
125712f1bb
@ -21,7 +21,6 @@ bind-key N prev-unread
|
|||||||
bind-key D pb-download
|
bind-key D pb-download
|
||||||
bind-key U show-urls
|
bind-key U show-urls
|
||||||
bind-key x pb-delete
|
bind-key x pb-delete
|
||||||
bind-key ^t next-unread
|
|
||||||
|
|
||||||
color listnormal cyan default
|
color listnormal cyan default
|
||||||
color listfocus black yellow standout bold
|
color listfocus black yellow standout bold
|
||||||
|
|||||||
@ -4,6 +4,7 @@ if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
|
|||||||
echo "Downloading junegunn/vim-plug to manage plugins..."
|
echo "Downloading junegunn/vim-plug to manage plugins..."
|
||||||
silent !mkdir -p ~/.config/nvim/autoload/
|
silent !mkdir -p ~/.config/nvim/autoload/
|
||||||
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim
|
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim
|
||||||
|
autocmd VimEnter * PlugInstall
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call plug#begin('~/.config/nvim/plugged')
|
call plug#begin('~/.config/nvim/plugged')
|
||||||
@ -112,6 +113,9 @@ set clipboard+=unnamedplus
|
|||||||
vnoremap <leader><leader> <Esc>/<++><Enter>"_c4l
|
vnoremap <leader><leader> <Esc>/<++><Enter>"_c4l
|
||||||
map <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
|
"""LATEX
|
||||||
" Word count:
|
" Word count:
|
||||||
autocmd FileType tex map <leader>w :w !detex \| wc -w<CR>
|
autocmd FileType tex map <leader>w :w !detex \| wc -w<CR>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user