https://github.com/allanchain/vimrc
vim-plug version of my vim config
https://github.com/allanchain/vimrc
Last synced: 10 months ago
JSON representation
vim-plug version of my vim config
- Host: GitHub
- URL: https://github.com/allanchain/vimrc
- Owner: AllanChain
- Created: 2020-03-22T04:30:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-12T02:10:43.000Z (almost 5 years ago)
- Last Synced: 2025-08-11T00:46:22.458Z (10 months ago)
- Language: Vim script
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vimrc of AllanChain
New verion of my vim configuration using `vim-plug` as package manager
## Installation
Clone the repo:
```bash
git clone https://github.com/AllanChain/vimrc
```
Same as [vim-plug](https://github.com/junegunn/vim-plug):
```bash
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
```
Then launch vim. You will be informed that colorscheme `solarized8` not installed. Just ignore it. In vim, type:
```vim
:PlugInstall
```
And wait the process to end.
## Custom config
### `~/.vim/local/plugins.vim`
For example:
```vim
" Heavy Librarys
Plug 'ycm-core/YouCompleteMe', { 'do': './install.py' }
Plug 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' }
```
### `~/.vim/local/before.vim`
### `~/.vim/local/after.vim`
Please modify `fileencodings`
```vim
set fileencodings=utf-8,gbk,gb18030,ucs-bom,cp936
```
## Thing to notice
### Airline Mode Name
Default mode names at bundle/vim-airline/autoload/init.vim
```vim
call extend(g:airline_mode_map, {
\ '__' : '------',
\ 'c' : 'COMMAND',
\ 'i' : 'INSERT',
\ 'ic' : 'INSERT COMPL',
\ 'ix' : 'INSERT COMPL',
\ 'multi' : 'MULTI',
\ 'n' : 'NORMAL',
\ 'ni' : '(INSERT)',
\ 'no' : 'OP PENDING',
\ 'R' : 'REPLACE',
\ 'Rv' : 'V REPLACE',
\ 's' : 'SELECT',
\ 'S' : 'S-LINE',
\ '' : 'S-BLOCK', " Ctrl+s
\ 't' : 'TERMINAL',
\ 'v' : 'VISUAL',
\ 'V' : 'V-LINE',
\ '' : 'V-BLOCK', " Ctrl+v
\ }, 'keep')
```