nvim: add plugin for fish scripting

This commit is contained in:
Charles Gould 2020-02-20 02:18:43 -05:00
parent 8fb1b01786
commit f9559f904e
5 changed files with 4 additions and 4 deletions

View File

@ -19,5 +19,5 @@ function fish_prompt --description 'Write out the prompt'
end
# Print the final character (§)
echo -n "§ "
echo -n "> "
end

View File

@ -13,6 +13,5 @@ function kp --description "Kill processes"
else
echo $__kp__pid | xargs kill -9
end
kp
end
end

View File

@ -1,4 +1,4 @@
function compress_video --argument-names srcfile
function video_compress --argument-names srcfile
if test -z "$srcfile"
echo "Error: missing argument"
return 1

View File

@ -1,4 +1,4 @@
function move_videos
function video_transfer
for folder in (find ~/Pictures/GoPro -type d -mindepth 1 -maxdepth 1)
mkdir -p ~/Movies/GoPro/$folder
pushd ~/Pictures/GoPro/$folder

View File

@ -7,6 +7,7 @@ endif
" configure plugins using vim-plug
" https://github.com/junegunn/vim-plug
call plug#begin('~/.cache/nvim/plugged')
Plug 'https://github.com/blankname/vim-fish' " fish scripting
Plug 'https://github.com/farmergreg/vim-lastplace' " intelligently reopen files at last edit position
Plug 'https://github.com/ntpeters/vim-better-whitespace' " highlights trailing whitespace, :StripWhitespace to remove
Plug 'https://github.com/tpope/vim-sensible' " defaults everyone can agree on