2020-05-03 18:23:53 +09:00
|
|
|
# vimrc for sup39
|
|
|
|
## Description
|
|
|
|
Well, just a place to put my vimrc,
|
|
|
|
and to record the evolutionary history of my vimrc.
|
|
|
|
Not suitable for others now, but I will try to improve it.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
### Clone this repo
|
|
|
|
```sh
|
|
|
|
git clone https://github.com/sup39/vimrc $HOME/.vim/sup39
|
|
|
|
```
|
|
|
|
### Import in your vimrc
|
2020-05-04 11:28:26 +09:00
|
|
|
In your vimrc:
|
2020-05-03 18:23:53 +09:00
|
|
|
```vim
|
2020-05-04 11:28:26 +09:00
|
|
|
" If you want to use vim-plug that I'm using:
|
|
|
|
" This script will install vim-plug automatically.
|
|
|
|
" Make sure to source plug.vim BEFORE vimrc
|
|
|
|
source $HOME/.vim/sup39/plug.vim
|
|
|
|
|
2020-05-03 18:23:53 +09:00
|
|
|
" set your `mapleader` and `maplocalleader` here if you want
|
2020-05-04 11:28:26 +09:00
|
|
|
source $HOME/.vim/sup39/vimrc
|
2020-05-03 18:23:53 +09:00
|
|
|
" you can override my settings here
|
|
|
|
```
|
2020-05-04 11:28:26 +09:00
|
|
|
|
|
|
|
Alternatively, you can make a activate command to source it manually.
|
2020-05-03 18:23:53 +09:00
|
|
|
```vim
|
|
|
|
" In your vimrc
|
2020-05-04 11:28:26 +09:00
|
|
|
command Sup39Source source $HOME/.vim/sup39/vimrc
|
2020-05-03 18:23:53 +09:00
|
|
|
" anywhere when you want to activate it
|
|
|
|
:Sup39Source
|
|
|
|
" You may need to :e to trigger the autocmd
|
|
|
|
```
|
|
|
|
|
|
|
|
## Reference
|
|
|
|
Steve Losh (2013) [Learn Vimscript the Hard Way](https://learnvimscriptthehardway.stevelosh.com)
|