Home

Awesome

The 7th Vim

 _____ _   _             _
|___  | |_| |__   __   _(_)_ __ ___
   / /| __| '_ \  \ \ / / | '_ ` _ \
  / / | |_| | | |  \ V /| | | | | | |
 /_/   \__|_| |_|   \_/ |_|_| |_| |_|

安装简单,轻量、易用、高可配置性。

现在我已经转到 neovim 阵营,对应的配置请参考 dofy/nvim 项目。

Index

Screenshot

7thvim

7thvim

7thvim

7thvim

7thvim

Install

# curl
bash <(curl -L https://raw.githubusercontent.com/dofy/7th-vim/master/install.sh) -i

or

# wget
bash <(wget --no-check-certificate https://raw.githubusercontent.com/dofy/7th-vim/master/install.sh -O -) -i

Check dependent

# curl
bash <(curl -L https://raw.githubusercontent.com/dofy/7th-vim/master/install.sh) -c

or

# wget
bash <(wget --no-check-certificate https://raw.githubusercontent.com/dofy/7th-vim/master/install.sh -O -) -c

Show language supported list

# curl
bash <(curl -L https://raw.githubusercontent.com/dofy/7th-vim/master/install.sh) -l

or

# wget
bash <(wget --no-check-certificate https://raw.githubusercontent.com/dofy/7th-vim/master/install.sh -O -) -l

Remove current config files and backup

bash <(curl -L https://raw.githubusercontent.com/dofy/7th-vim/master/install.sh) -b

or

# wget
bash <(wget --no-check-certificate https://raw.githubusercontent.com/dofy/7th-vim/master/install.sh -O -) -b

Help

# curl
bash <(curl -L https://raw.githubusercontent.com/dofy/7th-vim/master/install.sh) -h

or

# wget
bash <(wget --no-check-certificate https://raw.githubusercontent.com/dofy/7th-vim/master/install.sh -O -) -h

Update

# curl
bash <(curl -L https://raw.githubusercontent.com/dofy/7th-vim/master/install.sh) -u

or

# wget
bash <(wget --no-check-certificate https://raw.githubusercontent.com/dofy/7th-vim/master/install.sh -O -) -u

Customize

# Edit the following file to enable/disable language support you need
vim ~/.vimrc.language

# Edit your customize config file
vim ~/.vimrc.local

# Reload .vimrc (IN VIM!!!)
:source ~/.vimrc

Plugins

插件说明
scrooloose / nerdtree以树形目录窗格方式浏览文件
Xuyuanp / nerdtree-git-pluginNerdTree 显示 git 状态
tiagofumo / vim-nerdtree-syntax-highlightNerdTree 文件类型高亮
vim-airline / vim-airline美化 Vim 状态栏
vim-airline / vim-airline-themesAirline Themes
junegunn / vim-easy-align对齐插件,强迫症福音
iamcco / markdown-preview.nvimMarkdown 预览
junegunn / vim-slash优化搜索,移动清除搜索高亮
gorodinskiy / vim-coloresque颜色值预览
jiangmiao / auto-pairs符号自动补全
tpope / vim-surround自动增加、替换配对符
junegunn / fzf.vim强大、高效的搜索引擎
chxuan / change-colorscheme配色方案切换
docunext / closetag.vim自动关闭 HTML 标签
tabnine / YouCompleteMe代码自动完成
ryanoasis / vim-deviconsVim Dev Icons
tpope / vim-repeat增强 . 命令
mhinz / vim-startify启动页
roman / golden-ratio自动控制窗口大小
tomtom / tcomment_vim添加/清除 注释
dracula / vimdracule 配色

补充说明: 插件相关功能及用法请参考对应网站

Key Mapping

快捷键/命令说明
,Leader Key
<Ctrl> AINSERT 模式下移动光标到行首
<Ctrl> EINSERT 模式下移动光标到行尾
<Ctrl> BINSERT 模式下光标左移一位
<Ctrl> FINSERT 模式下光标右移一位
<Ctrl> J跳转到下面的窗口
<Ctrl> K跳转到上面的窗口
<Ctrl> H跳转到左侧的窗口
<Ctrl> L跳转到右侧的窗口
<Ctrl> N打开 Buffer 列表中的下一个文件
<Ctrl> P打开 Buffer 列表中的上一个文件
<Ctrl> F / <Leader>ff在当前工作目录中搜索文件
<Leader>fb在 Buffer 中搜索文件
<Leader>fh在历史文件中搜索
<Leader>fc搜索可用配色方案
<Leader>fl在 Buffer 文件中进行文本搜索
<Leader>fm搜索 Vim 中可用的命令
<Shift>-H跳转到前一个 Tab
<Shift>-L跳转到后一个 Tab
<Leader>t开启新 Tab
<Leader>w关闭当前 Tab
<Ctrl> E / <Leader>e开启 Nerdtree
<F7>开启 Markdown 预览
<F8>关闭 Markdown 预览
<F9>上一个配色方案
<F10>下一个配色方案
gcc注释/取消注释 当前行
g>注释选中文本(VISUAL 模式)
:Wsudo 命令保存文件

Q&A