diff options
author | Oxbian <got.dacs@slmail.me> | 2023-06-19 00:20:11 +0200 |
---|---|---|
committer | Oxbian <got.dacs@slmail.me> | 2023-06-19 00:20:11 +0200 |
commit | ced35c5dccc7c4b1cbc996bf98a7cf19df2602e8 (patch) | |
tree | 13032547ae4a5583973986f7ebc43acc73e26264 /readme.md | |
download | vimrc-ced35c5dccc7c4b1cbc996bf98a7cf19df2602e8.tar.gz vimrc-ced35c5dccc7c4b1cbc996bf98a7cf19df2602e8.zip |
Init dotfiles
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..a8e74fd --- /dev/null +++ b/readme.md @@ -0,0 +1,56 @@ +# VIM + +This repo contains my vim configuration, hope it will be usefull for you. + +## Installation + +You will need `vim` and `git` to be able to use this config. + +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 +curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ + https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim +``` + +Oh and remove neovim, it make some problems with vim. + +## Plugins + +This config has just the necessarry plugins installed: + +- [Vim gitgutter](https://github.com/airblade/vim-gitgutter) to see diff between files with git. +- [Vim fugitive](https://github.com/tpope/vim-fugitive) to be able to use some powerful git commands in git. +- +## Command & keybinds + +### General + +- `Ctrl+h` move to the left window +- `Ctrl+j` move to the bottom window +- `Ctrl+k` move to the upper window +- `Ctrl+l` move to the right window +- `<leader>h` remove highligthing + +### NerdTree + +For help, use `:help NERDTree`. +Keybinds: +- `Ctrl+f` open or close the nerdtree window + +### Vim Gutter + +For help, use `:help gitgutter`. +Keybinds: +- `[c` & `]c` to jump between hunks, +- `<leader>hp` to preview hunk, +- `<leader>hs` to stage hunk, +- `<leader>hu` to undo hunk, +- `<leader>d` to toggle GitGutter. + +Hunks are the difference between your file and the git file. + +### Vim Fugitive + +For help, use `:help fugitive`. + |