vimrc/README.md

36 lines
996 B
Markdown
Raw Normal View History

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
In your vimrc:
2020-05-03 18:23:53 +09:00
```vim
" 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
source $HOME/.vim/sup39/vimrc
2020-05-03 18:23:53 +09:00
" you can override my settings here
```
Alternatively, you can make a activate command to source it manually.
2020-05-03 18:23:53 +09:00
```vim
" In your vimrc
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)