Skip to content

Commit 0d5f2b4

Browse files
msbitjbodah
authored andcommitted
Install into existing Vim directories (#416)
Ensure that the files end up in the correct directories if they already exist.
1 parent 0bb9944 commit 0d5f2b4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

manual_install.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
22

3-
mkdir -p ~/.vim
4-
cp -R autoload/ compiler/ ftdetect/ ftplugin/ indent/ syntax/ ~/.vim/
3+
for INSTALL_DIR in autoload compiler ftdetect ftplugin indent syntax
4+
do
5+
mkdir -p ~/.vim/${INSTALL_DIR}
6+
cp -R ${INSTALL_DIR}/ ~/.vim/${INSTALL_DIR}
7+
done

0 commit comments

Comments
 (0)