diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index ccc2b27..ca5482b 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -13,11 +13,10 @@ Plug 'scrooloose/nerdtree' Plug 'junegunn/goyo.vim' Plug 'PotatoesMaster/i3-vim-syntax' Plug 'jreybert/vimagit' -Plug 'LukeSmithxyz/vimling' +Plug 'lukesmithxyz/vimling' Plug 'vimwiki/vimwiki' Plug 'bling/vim-airline' Plug 'tpope/vim-commentary' -Plug 'vifm/vifm.vim' Plug 'kovetskiy/sxhkd-vim' call plug#end() @@ -92,22 +91,22 @@ set clipboard=unnamedplus autocmd BufRead,BufNewFile *.ms,*.me,*.mom,*.man set filetype=groff autocmd BufRead,BufNewFile *.tex set filetype=tex -" Copy selected text to system clipboard (requires gvim/nvim/vim-x11 installed): +" Copy selected text to system clipboard: vnoremap "+y map "+P " Enable Goyo by default for mutt writting autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80 autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo | set bg=light + autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x! + autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q! " Automatically deletes all trailing whitespace on save. autocmd BufWritePre * %s/\s\+$//e " When shortcut files are updated, renew bash and ranger configs with new material: - autocmd BufWritePost *bmdirs,*bmfiles !shortcuts + autocmd BufWritePost files,directories !shortcuts " Run xrdb whenever Xdefaults or Xresources are updated. autocmd BufWritePost *Xresources,*Xdefaults !xrdb % " Update binds when sxhkdrc is updated. autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd -" Update dwmbar when changed. - autocmd BufWritePost *dwmbar !killall dwmbar; setsid dwmbar &