Browse Source

refactor: 精简配置

master
Alvis Zhao 5 years ago
parent
commit
a659af3dea
  1. 5
      README.md
  2. 6
      install.sh
  3. 2
      vim/.gitignore
  4. 21
      vim/LICENSE
  5. 38
      vim/README.md
  6. 1
      vim/_config.yml
  7. 2522
      vim/autoload/plug.vim
  8. 0
      vim/basic.vim
  9. 6
      vim/install_basic_vimrc.sh
  10. 15
      vim/install_super_vimrc.sh
  11. 0
      vim/my_configs.vim
  12. 24
      vim/vimrcs/plugins_config.vim

5
README.md

@ -29,12 +29,9 @@ @@ -29,12 +29,9 @@
```bash
chsh -s $(which zsh)
zsh
```
1. 安装vim插件
进入vim,命令模式下执行`:PlugInstall`,自动联网下载插件,插件位于`~/.oh-my-terminal/vim/plugged`目录下
## 如何卸载
```bash

6
install.sh

@ -2,13 +2,11 @@ @@ -2,13 +2,11 @@
# zsh
ln -s -f ~/.oh-my-terminal/zsh ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
ln -s -f ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
# tmux
ln -s -f ~/.oh-my-terminal/tmux/.tmux.conf ~/.tmux.conf
ln -s -f ~/.oh-my-terminal/tmux/.tmux.conf.local ~/.tmux.conf.local
# vim
mkdir -p ~/.oh-my-terminal/vim/plugged
ln -s -f ~/.oh-my-terminal/vim ~/.vim_runtime
sh ~/.vim_runtime/install_super_vimrc.sh
ln -s -f ~/.oh-my-terminal/vim/basic.vim ~/.vimrc

2
vim/.gitignore vendored

@ -1,2 +0,0 @@ @@ -1,2 +0,0 @@
.vscode/
plugged

21
vim/LICENSE

@ -1,21 +0,0 @@ @@ -1,21 +0,0 @@
MIT License
Copyright (c) 2018 Alvis
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

38
vim/README.md

@ -1,38 +0,0 @@ @@ -1,38 +0,0 @@
# Super vimer
VIM 集成开发环境
## 工程首页
[Super vimer](https://alvisisme.github.io/super-vimer/)
## 使用说明
下载该工程 
```shell
git clone https://github.com/alvisisme/super-vimer.git ~/.vim_runtime
```
安装脚本
```shell
cd ~/.vim_runtime
sh install_vimrc.sh
```
VIM命令模式下执行`:PlugInstall`完成插件安装
插件安装于 **~/.vim/plugged/** 目录下
## 插件列表
* [插件管理 vim-plug](https://github.com/junegunn/vim-plug)
* [目录树显示 NERDTree](https://github.com/scrooloose/nerdtree)
* [括号补全 delimitMate](https://github.com/Raimondi/delimitMate)
* [自动格式化 autoformat](https://github.com/chiel92/vim-autoformat)
* [括号引号等快捷处理 vim-surround](https://github.com/tpope/vim-surround)
## 参考引用
* [amix vimrc](https://github.com/amix/vimrc)
* [use vim as ide](https://github.com/yangyangwithgnu/use_vim_as_ide)
* [VIM Awesome](https://vimawesome.com/)
* [如何在 Linux 下利用 Vim 搭建 C/C++ 开发环境? - 韦易笑的回答 - 知乎](https://www.zhihu.com/question/47691414/answer/373700711)

1
vim/_config.yml

@ -1 +0,0 @@ @@ -1 +0,0 @@
theme: jekyll-theme-midnight

2522
vim/autoload/plug.vim

File diff suppressed because it is too large Load Diff

0
vim/vimrcs/basic.vim → vim/basic.vim

6
vim/install_basic_vimrc.sh

@ -1,6 +0,0 @@ @@ -1,6 +0,0 @@
#!/bin/bash
set -e
cd ~/.vim_runtime
cat ~/.vim_runtime/vimrcs/basic.vim > ~/.vimrc
echo "Installed the Basic Vim configuration successfully! Enjoy :-)"

15
vim/install_super_vimrc.sh

@ -1,15 +0,0 @@ @@ -1,15 +0,0 @@
#!/bin/bash
set -e
cd ~/.vim_runtime
echo 'set runtimepath+=~/.vim_runtime
source ~/.vim_runtime/vimrcs/basic.vim
source ~/.vim_runtime/vimrcs/plugins_config.vim
try
source ~/.vim_runtime/my_configs.vim
catch
endtry' > ~/.vimrc
echo "Installed the Super Vim configuration successfully! Enjoy :-)"

0
vim/my_configs.vim

24
vim/vimrcs/plugins_config.vim

@ -1,24 +0,0 @@ @@ -1,24 +0,0 @@
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.oh-my-terminal/vim/plugged')
" Make sure you use single quotes
Plug 'https://github.com/scrooloose/nerdtree.git'
Plug 'raimondi/delimitmate'
Plug 'Chiel92/vim-autoformat'
Plug 'https://github.com/tpope/vim-surround'
" Initialize plugin system
call plug#end()
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Nerd Tree
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:NERDTreeWinPos = "left"
let NERDTreeShowHidden=0
let NERDTreeIgnore = ['\.pyc$', '__pycache__']
let g:NERDTreeWinSize=35
map <leader>nn :NERDTreeToggle<cr>
map <leader>nb :NERDTreeFromBookmark<Space>
map <leader>nf :NERDTreeFind<cr>
Loading…
Cancel
Save