2022-02-02 11:18:50 -05:00
|
|
|
# Infidel's personal config for CLI based workspaces
|
|
|
|
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)
|
|
|
|
|
|
|
|
## General Info
|
|
|
|
|
2022-04-13 05:37:47 -04:00
|
|
|
This is the essential VIM and Tmux configuration for cli based unix systems.
|
2022-02-02 11:18:50 -05:00
|
|
|
|
|
|
|
## Clone
|
2022-04-14 14:51:16 -04:00
|
|
|
```bash
|
|
|
|
git clone https://git.nnag.me/infidel/infidel_env.git
|
2022-02-02 11:18:50 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
## Setup
|
2022-04-14 14:51:16 -04:00
|
|
|
``` bash
|
|
|
|
./install.sh -u user
|
2022-02-02 11:18:50 -05:00
|
|
|
```
|
2022-04-13 05:37:47 -04:00
|
|
|
## VIM
|
|
|
|
|
2022-04-14 14:51:16 -04:00
|
|
|
> This installation script now can execute `:PlugUpdate` on first setup.
|
2022-04-13 05:42:03 -04:00
|
|
|
|
2022-04-13 05:37:47 -04:00
|
|
|
### Global
|
|
|
|
|
|
|
|
- Leader remmaped to `,`
|
|
|
|
- Enabled more visual blocks with J and K
|
|
|
|
- Auto tabbed lines from normal mode using `>`
|
|
|
|
|
|
|
|
### NerdTree
|
|
|
|
|
|
|
|
Toggle NerdTree with <CTRL-k><k>.
|
2022-04-30 07:00:13 -04:00
|
|
|
T
|
2022-04-13 05:37:47 -04:00
|
|
|
### EasyAlign
|
|
|
|
|
|
|
|
Perform multiline visual select then enter `ga`. Next enter your preference alignment.
|
|
|
|
|
|
|
|
### Goyo
|
|
|
|
|
|
|
|
Toggle Goyo from command input mode `:Goyo` or use the <F8> shortcut.
|
|
|
|
|
|
|
|
### Limelight
|
|
|
|
|
|
|
|
Toggle Limelight from command input mode `:Limelight` or use the <Leader><l> shortcut.
|
|
|
|
|
2022-04-14 14:51:16 -04:00
|
|
|
### Autocomplete : CoC
|
2022-04-13 05:59:47 -04:00
|
|
|
|
2022-04-14 14:51:16 -04:00
|
|
|
CoC now can use tab to navigate completion list. Make sure the target machine have nodejs for CoC to run properly.
|
2022-04-13 05:59:47 -04:00
|
|
|
|
2022-07-06 13:10:27 -04:00
|
|
|
### Airline
|
|
|
|
|
|
|
|
I use airline as status bar
|
|
|
|
|
2022-04-14 14:51:16 -04:00
|
|
|
**CoC Extensions included** :
|
2022-04-13 05:59:47 -04:00
|
|
|
|
2022-04-14 14:51:16 -04:00
|
|
|
- `coc-vimlsp` for VIM script
|
|
|
|
- `coc-pyright` for Python
|
|
|
|
- `coc-sh` for SH scripts
|
2022-04-14 15:10:24 -04:00
|
|
|
- `coc-spell-checker` : General spell checker in EN
|
2022-04-13 05:37:47 -04:00
|
|
|
|
2022-04-14 14:51:16 -04:00
|
|
|
### Autocomplete : Completor
|
2022-04-13 05:37:47 -04:00
|
|
|
|
2022-04-14 14:51:16 -04:00
|
|
|
> Completor is not good for servers, as it requires vim version with python support.
|
2022-02-02 11:18:50 -05:00
|
|
|
|
2022-04-30 07:00:13 -04:00
|
|
|
#### vimbox-draw
|
|
|
|
|
|
|
|
Create ASCII diagrams :
|
|
|
|
|
|
|
|
- Visual select some box
|
|
|
|
- invoke `+o` to create box or `+O` to create box with label
|
|
|
|
- To add label into existing box, visual select the area then invoke `+c`
|
|
|
|
|
2022-02-02 11:18:50 -05:00
|
|
|
## Future Improvement
|
|
|
|
|
|
|
|
- [x] Script automatically detect the environment (e.g. BSD)
|
2022-03-23 13:09:59 -04:00
|
|
|
- [x] Symlink instead of copy.
|
2022-04-14 15:40:39 -04:00
|
|
|
- [x] Deploy a scalable and portable environment.
|
|
|
|
- [ ] ~~Support Oh-My-Zsh installation~~
|
|
|
|
- [ ] Diagnostic Feature `-c` or `--check`
|