commit 64e1d386a497d746c73e04642b6954717aea7667
parent db1191e17c61f86420380bb039409bae5f74574f
Author: Alex Balgavy <alex@balgavy.eu>
Date: Tue, 29 Nov 2022 12:07:08 +0100
vim: misc config
Diffstat:
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/vim/after/plugin/plug.vim b/vim/after/plugin/plug.vim
@@ -1,5 +1,11 @@
if g:loaded_plug
- command! PU PlugUpgrade | PlugUpdate
- command! PI PlugInstall
- command! PC PlugClean
+ if has('nvim')
+ command! PU PlugUpgrade | PlugUpdate | PackerSync
+ command! PI PlugInstall | PackerInstall | PackerSync
+ command! PC PlugClean | PackerClean
+ else
+ command! PU PlugUpgrade | PlugUpdate
+ command! PI PlugInstall
+ command! PC PlugClean
+ endif
endif
diff --git a/vim/vimrc b/vim/vimrc
@@ -831,6 +831,7 @@ command! Hardwrap setlocal nowrap formatoptions+=cat
command! Syncwin windo set scrollbind! cursorbind!
command! EF exe "split $HOME/.vim/after/ftplugin/".&filetype.".vim"
command! FD filetype detect
+command! D smile
command! -nargs=? Browser exe 'terminal ++close w3m -config '.getenv("XDG_CONFIG_HOME").'/w3m/config -bookmark '.getenv("XDG_CONFIG_HOME").'/w3m/bookmark.html '.<q-args>
command! -nargs=1 Img
\ exe "r! find ".shellescape(expand("%:p:h"))." -maxdepth ".<args>." -type f -exec file --mime-type '{}' \\+"