All Projects → epii1 → vim

epii1 / vim

Licence: MIT License
涛叔的 vim 配置

Programming Languages

lua
6591 projects
Vim Script
2826 projects

Labels

Projects that are alternatives of or similar to vim

boo-colorscheme-nvim
Boo is a colorscheme for Neovim with handcrafted support for LSP, Treesitter.
Stars: ✭ 62 (+51.22%)
Mutual labels:  neovim
cmp-treesitter
cmp source for treesitter
Stars: ✭ 69 (+68.29%)
Mutual labels:  neovim
nixpkgs
My Nix system configs!
Stars: ✭ 143 (+248.78%)
Mutual labels:  neovim
nvim-projectconfig
neovim projectconfig
Stars: ✭ 48 (+17.07%)
Mutual labels:  neovim
gitlinker.nvim
A lua neovim plugin to generate shareable file permalinks (with line ranges) for several git web frontend hosts. Inspired by tpope/vim-fugitive's :GBrowse
Stars: ✭ 181 (+341.46%)
Mutual labels:  neovim
cmp-under-comparator
nvim-cmp comparator function for completion items that start with one or more underlines
Stars: ✭ 77 (+87.8%)
Mutual labels:  neovim
nii-nvim
A minimal neovim configuration
Stars: ✭ 69 (+68.29%)
Mutual labels:  neovim
neogen
A better annotation generator. Supports multiple languages and annotation conventions.
Stars: ✭ 339 (+726.83%)
Mutual labels:  neovim
vim-colors-plain
Minimal colorscheme for vim
Stars: ✭ 182 (+343.9%)
Mutual labels:  neovim
dotfiles
Dotfiles for my awesomewm/i3 Arch setup & neovim
Stars: ✭ 19 (-53.66%)
Mutual labels:  neovim
luv-vimdocs
No description or website provided.
Stars: ✭ 51 (+24.39%)
Mutual labels:  neovim
coc-nginx
nginx-language-server extension for coc.nvim
Stars: ✭ 16 (-60.98%)
Mutual labels:  neovim
nvim-lsp-smag
Seamless integration of language server locations into NeoVim
Stars: ✭ 60 (+46.34%)
Mutual labels:  neovim
vusted
A busted wrapper for testing neovim plugin
Stars: ✭ 34 (-17.07%)
Mutual labels:  neovim
black-nvim
A Neovim plugin to format your code using Black
Stars: ✭ 23 (-43.9%)
Mutual labels:  neovim
vimconf-2021
Presentation for VimConf 2021
Stars: ✭ 26 (-36.59%)
Mutual labels:  neovim
denite-gtags
Denite source for GNU Global
Stars: ✭ 27 (-34.15%)
Mutual labels:  neovim
dotfiles
My dotfiles for Arch Linux and macOS: Polybar, Neovim, ZSH, Alacritty, Git, and more 👨🏿‍💻
Stars: ✭ 13 (-68.29%)
Mutual labels:  neovim
nvimrc
vimrc for neovim written in lua
Stars: ✭ 99 (+141.46%)
Mutual labels:  neovim
agitator.nvim
No description or website provided.
Stars: ✭ 16 (-60.98%)
Mutual labels:  neovim

涛叔的 vim 配置

这是我的 vim 配置,仅支持 NeoVim。我写的 vim 相关文章可以到博客阅读。

配置原则

尽量使用 NeoVim 的默认配置、默认功能和默认键位映射。只个改必要的配置,只添加必要的插件。

拥抱现代化的 NeoVim,拥抱异步,拥抱 lua。使用24位真彩色主题。

还有一点,只加自己能看懂的配置!从网上无脑复制别人配置的行为很不VIM。

插件管理

使用 vim 内置的 packages 功能配合 git submodule 管理插件,可以参考我的文章

默认插件位置 ~/.config/nvim/pack/vendor/start。其中的 vendor 可以根据个人喜好修改。

目录结构

配置目录结构如下:

▸ autoload/
▸ ftplugin/
▸ pack/vendor/start/
  init.vim
  LICENSE
  README.md
  vim.lua

所有的个人工具方法都组织到 autoload/lv.vim 中,使用 lv# 名称空间。

针对特定文件类型的配置组织到 ftplugin/*.vim 中,vim 会按需加载。

主配置文件为 init.vim,lua 的部分组织到 vim.lua 文件。

常用插件

主题

选用 tender,使用24位真彩色。整个色调比较性冷淡,专注于内容。

文件操作

  • ag 搜索文件内容
  • fzf 搜索文件路径
  • mru 管理最近文件列表
  • nerdtree 查看目录结构

以上列出的 ag/fzf/mru 都是我自己定制的插件,代码最多也就一百多行,够用就好,方便定制。 这三个插件也是学习 vim/neovim 插件开发的好素材,不要错过。

Git集成

  • fugitive 在 vim 中执行 git 命令,目前只依赖 Git blame
  • gitsigns 快速显示文件内容修改信息
  • nerdtree-git 在文件管理器中显示 git 文件状态
  • vimagit magit 的 vim 版本,交互式、分部提交,非常方便

编程相关

  • lsp 使用官方的 lspconfig 配置以及内置的 lsp 功能
  • 自动补全使用纯 lua 实现的 cmp
  • 代码高亮、缩进和错误检查使用 treesitter
  • 符号列表使用 tagbar
  • 快速注释使用 tcomment
  • 按函数或者声明移动使用 jumpy
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].