aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOxbian <oxbian@mailbox.org>2025-01-31 20:49:48 +0100
committerOxbian <oxbian@mailbox.org>2025-01-31 20:49:48 +0100
commite65597837ec3057989f6bc67d90e5c10d4f3d14e (patch)
tree50e4eee92a5973a8486f91e01e691b2293954659
parentd28a067a4d4b52a1eac7e1c62a46c4726713d29c (diff)
downloadvimrc-e65597837ec3057989f6bc67d90e5c10d4f3d14e.tar.gz
vimrc-e65597837ec3057989f6bc67d90e5c10d4f3d14e.zip
feat: removing install.sh and using /home/oxbian/.config/vim as default config dir
-rw-r--r--README.md25
-rw-r--r--conf/options.vim4
-rw-r--r--conf/plugins.vim1
-rwxr-xr-xinstall.sh8
4 files changed, 9 insertions, 29 deletions
diff --git a/README.md b/README.md
index 4d53831..06617f7 100644
--- a/README.md
+++ b/README.md
@@ -4,26 +4,17 @@ This repo contains my vim configuration, hope it will be useful for you.
## Installation
-You will need `vim` and `git` to be able to use this configuration.
-
+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.
-
-*This vim config is expected to be cloned into `.config/vim`*
-
-```sh
-git clone https://git.arka.rocks/Oxbian/vimrc.git $HOME/.config/vim
-```
-
-**Be careful the install.sh script remove everything in `$HOME/.vim` !**
+problem, try to install vim plug and check if your problem is solved.
+
+**Since VIM 9.1.0327, vim can now read config from $XDG_CONFIG_HOME/vim**
```sh
-curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
- https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
+git clone https://git.arka.rocks/Oxbian/vimrc.git ~/config/vim
```
-Oh and remove neovim, it make some problems with vim.
-
## Plugins
This config has just the necessary plugins installed:
@@ -38,14 +29,12 @@ This config has just the necessary plugins installed:
keybinds in a GUI.
- [Vim gitgutter](https://github.com/airblade/vim-gitgutter) to see diff between
files with git.
-- [Css color](https://github.com/ap/vim-css-color) preview css colors.
+- [Css color](https://github.com/ap/vim-css-color) preview css colors. (searching better plugins for all viewing all colors codes)
### LSP
- [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.
## Command & keybinds
diff --git a/conf/options.vim b/conf/options.vim
index 8e84a25..c4e131c 100644
--- a/conf/options.vim
+++ b/conf/options.vim
@@ -9,8 +9,8 @@ syntax on " Show syntax color
set number " Show line number
colorscheme onedark " Set vim theme to onedark
set colorcolumn=80 " Add an indicator for 80 char limit
-set textwidth=80 " Set max text width
-autocmd BufNewFile,BufRead * setlocal formatoptions=cropt " Linebreak at 80 char
+"set textwidth=80 " Set max text width
+"autocmd BufNewFile,BufRead * setlocal formatoptions=cropt " Linebreak at 80 char
set relativenumber " Show relative line number
set cursorline " Select the current line
set showmatch " Show matching brackets when hovered
diff --git a/conf/plugins.vim b/conf/plugins.vim
index 682cbe7..89ca4c3 100644
--- a/conf/plugins.vim
+++ b/conf/plugins.vim
@@ -25,7 +25,6 @@ Plug 'airblade/vim-gitgutter' " Git diff
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Tools
-Plug 'wakatime/vim-wakatime' " Wakatime
Plug 'ap/vim-css-color' " rgb, hex color preview
call plug#end()
diff --git a/install.sh b/install.sh
deleted file mode 100755
index 499357c..0000000
--- a/install.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-DIR=$(dirname "$0")
-cd "$DIR" || exit
-
-rm "$HOME/.vimrc"
-ln -sf "$(pwd)/.vimrc" "$HOME/.vimrc"
-rm -rf "$HOME/.vim"
-ln -sf "$(pwd)/coc-settings.json" "$HOME/.vim/coc-settings.json"
ArKa projects. All rights to me, and your next child right arm.