diff options
author | Oxbian <got.dacs@slmail.me> | 2023-12-02 22:07:55 +0100 |
---|---|---|
committer | Oxbian <got.dacs@slmail.me> | 2023-12-02 22:07:55 +0100 |
commit | e892f736a3cac880b36540a0223d488ee3879846 (patch) | |
tree | 5558f0a709c4738ac7ac773b4c45c1e6aec30996 | |
parent | 6c5f19bf6524fc38c4288858f9f03c0fbc325556 (diff) | |
download | vimrc-e892f736a3cac880b36540a0223d488ee3879846.tar.gz vimrc-e892f736a3cac880b36540a0223d488ee3879846.zip |
ADD: warning message, install.sh to POSIX shell
-rw-r--r-- | README.md | 7 | ||||
-rwxr-xr-x | install.sh | 12 |
2 files changed, 9 insertions, 10 deletions
@@ -8,7 +8,9 @@ You will need `vim` and `git` to be able to use this configuration. Normally if you run the `install.sh` script it will work, but if you have a problem, try to install vim plug and check if your problem is solved. -```bash +**Be careful the install.sh script remove everything in `.config/vim` and in `$HOME/.vim` !** + +```sh curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim ``` @@ -35,9 +37,6 @@ This config has just the necessary plugins installed: - [CoC](https://github.com/neoclide/coc.nvim) a LSP plugin that work like VsCode LSP, and in Node (yeah I don't like it too but no choice...). - [Vim Wakatime](https://github.com/wakatime/vim-wakatime) to have wakatime time tracking in vim. -### Languages utilities - - ## Command & keybinds @@ -1,8 +1,8 @@ -#!/bin/bash +#!/bin/sh DIR=$(dirname "$0") -cd $DIR +cd "$DIR" || exit -ln -sf $(pwd)/.vimrc $HOME/.vimrc -rm -rf $HOME/.vim -rm -rf $HOME/.config/vim -ln -sf $(pwd)/vim $HOME/.config/vim +ln -sf "$(pwd)/.vimrc" "$HOME/.vimrc" +rm -rf "$HOME/.vim" +rm -rf "$HOME/.config/vim" +ln -sf "$(pwd)/vim" "$HOME/.config/vim" |