changed detectvim to look for latest version

This commit is contained in:
pyr0ball 2023-05-08 15:12:33 -07:00
parent 3a2b38d154
commit 8c2ceb1b1f

View file

@ -154,7 +154,7 @@ run-and-log(){
detectvim(){ detectvim(){
# If the vim install directory exists, check for and store the highest numerical value version installed # If the vim install directory exists, check for and store the highest numerical value version installed
if [[ -d /usr/share/vim ]] ; then if [[ -d /usr/share/vim ]] ; then
viminstall=$(ls -lah /usr/share/vim/ | grep vim | grep -v rc | awk '{print $NF}') viminstall=$(ls -lah /usr/share/vim/ | grep vim | grep -v rc | awk '{print $NF}' | tail -n 1)
else else
viminstall=null viminstall=null
warn "vim is not currently installed, unable to set up colorscheme and formatting" warn "vim is not currently installed, unable to set up colorscheme and formatting"