Skip to content

Commit 0d22067

Browse files
committed
distribution: remove some plugins
1 parent 8bc603b commit 0d22067

36 files changed

+101
-187
lines changed

.gitmodules

+3-39
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,12 @@
1-
[submodule "pack/coding/start/ale"]
2-
path = pack/coding/start/ale
3-
url = https://github.com/w0rp/ale
41
[submodule "pack/coding/start/editorconfig-vim"]
52
path = pack/coding/start/editorconfig-vim
63
url = https://github.com/editorconfig/editorconfig-vim
74
[submodule "pack/coding/start/vim-polyglot"]
85
path = pack/coding/start/vim-polyglot
96
url = https://github.com/sheerun/vim-polyglot
10-
[submodule "pack/editor/start/pear-tree"]
11-
path = pack/editor/start/pear-tree
12-
url = https://github.com/tmsvg/pear-tree
13-
[submodule "pack/editor/start/supertab"]
14-
path = pack/editor/start/supertab
15-
url = https://github.com/ervandew/supertab
16-
[submodule "pack/editor/start/vim-closetag"]
17-
path = pack/editor/start/vim-closetag
18-
url = https://github.com/alvan/vim-closetag
19-
[submodule "pack/editor/start/vim-endwise"]
20-
path = pack/editor/start/vim-endwise
21-
url = https://github.com/tpope/vim-endwise
22-
[submodule "pack/editor/start/vim-numbertoggle"]
23-
path = pack/editor/start/vim-numbertoggle
24-
url = https://github.com/jeffkreeftmeijer/vim-numbertoggle
7+
[submodule "pack/lsp/start/ale"]
8+
path = pack/lsp/start/ale
9+
url = https://github.com/w0rp/ale
2510
[submodule "pack/lsp/start/asyncomplete"]
2611
path = pack/lsp/start/asyncomplete
2712
url = https://github.com/prabirshrestha/asyncomplete.vim
@@ -34,21 +19,6 @@
3419
[submodule "pack/lsp/start/vim-lsp-settings"]
3520
path = pack/lsp/start/vim-lsp-settings
3621
url = https://github.com/mattn/vim-lsp-settings
37-
[submodule "pack/shell/start/close-buffers.vim"]
38-
path = pack/shell/start/close-buffers.vim
39-
url = https://github.com/Asheq/close-buffers.vim
40-
[submodule "pack/shell/start/vim-gitgutter"]
41-
path = pack/shell/start/vim-gitgutter
42-
url = https://github.com/airblade/vim-gitgutter
43-
[submodule "pack/shell/start/vim-maximizer"]
44-
path = pack/shell/start/vim-maximizer
45-
url = https://github.com/szw/vim-maximizer.git
46-
[submodule "pack/theme/start/vim-airline"]
47-
path = pack/theme/start/vim-airline
48-
url = https://github.com/vim-airline/vim-airline
49-
[submodule "pack/theme/start/vim-airline-themes"]
50-
path = pack/theme/start/vim-airline-themes
51-
url = https://github.com/vim-airline/vim-airline-themes
5222
[submodule "pack/shell/start/nerdtree"]
5323
path = pack/shell/start/nerdtree
5424
url = https://github.com/preservim/nerdtree
@@ -58,9 +28,3 @@
5828
[submodule "pack/shell/start/fzf-vim"]
5929
path = pack/shell/start/fzf-vim
6030
url = https://github.com/junegunn/fzf.vim
61-
[submodule "pack/shell/start/vim-floaterm"]
62-
path = pack/shell/start/vim-floaterm
63-
url = https://github.com/voldikss/vim-floaterm
64-
[submodule "pack/shell/start/vimux"]
65-
path = pack/shell/start/vimux
66-
url = https://github.com/preservim/vimux

GNUmakefile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.PHONY: info fetch-packs format-readme
2+
3+
## make info :: prints help
4+
info:
5+
@grep '^## make' < GNUmakefile | tr -d '#' | sort
6+
7+
## make fetch-packs :: pulls and updates the plugins
8+
fetch-packs:
9+
git submodule init
10+
git submodule update
11+
git submodule update --remote
12+
13+
## make format-readme :: formats the README.md file
14+
format-readme:
15+
npx prettier -w --print-width=72 --prose-wrap=always README.md

PACKS.md

-51
This file was deleted.

README.md

+73-46
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,91 @@
11
# danirod's vimrc
22

3-
## About
3+
This is my vimrc, the configuration file for my Vim distribution.
44

5-
This my vimrc setup. Keeping your vim setup in a Git repository
6-
is cool because you can track the changes you do to your set up,
7-
you can rollback if something goes wrong, you can branch and
8-
test new settings while keeping your base setup stable...
5+
It used to be a big deal for me some years ago, but nowadays my vimrc is
6+
more frugal and boring.
97

10-
Also, pushing my vimrc to GitHub is nice because I have an
11-
online backup. In case I format my PC or want to install vim into
12-
a new computer, I just have to clone my repository and it's done.
8+
## Compatibility
139

14-
There's another reason for pushing my vimrc setup online. You can
15-
share your setup with everybody, let people learn from what you're
16-
done. I like to browse other vimrc repos here at GitHub and learn
17-
from their experience. I know my vimrc setup is tiny and modest but
18-
I'm proud of it.
10+
This vimrc is used daily on UNIX and UNIX-like systems: GNU/Linux, \*BSD
11+
and macOS. Compatibility with Windows is unknown.
1912

20-
## Requirements
13+
I mostly use Vim 9.0 at the moment but there should be compatibility
14+
with Vim 8.2, which is currently the version in the oldstable branch of
15+
Debian.
2116

22-
It is tested under the following conditions:
17+
It should work with Neovim, but I don't use Neovim, so I am not aware.
2318

24-
* It works on UNIX and UNIX-like (GNU/Linux, *BSD, macOS...)
25-
* I mostly use Vim 9.0 nowadays but it should work on Vim 8.2.
26-
* Git is required to fetch the submodules
19+
## Configuration
2720

28-
I haven't used Vim on Windows for a while so I don't know if it works.
21+
Pull the Git submdoules:
2922

30-
## Set up
31-
32-
Remember to pull the Git submodules.
33-
34-
* `git submodule init`: will initialize after clone.
35-
* `git submodule update`: will clone the submodules.
36-
* `git submodule update --remote`: willñ pull latest updates.
23+
- `git submodule init`: will initialize after clone.
24+
- `git submodule update`: will clone the submodules.
25+
- `git submodule update --remote`: willñ pull latest updates.
3726

3827
## Plugins
3928

40-
I use vim packs, which was added on Vim 8. As you can see, I am using
41-
gitmodules to handle my plugins, which allows me to pin a specific
42-
commit in case breaking changes happen.
43-
44-
The pack/ directory contains the plugins organized by concern. Inside
45-
the start/ directory of each concern there are gitmodules.
46-
47-
The configuration for each pack is also stored separately in the plugin/
48-
folder, which has a similar directory structure grouping each config file
49-
by concern.
29+
I don't use a package manager, I switched to vim-packs. After cloning,
30+
submodules have to be initialized using `make fetch-packs` or
31+
`gmake fetch-packs`. I organize the packs in the pack/ directory by
32+
concern, although not a lot of plugins are in use nowadays so I might
33+
just move them all to a single folder again.
34+
35+
The configuration for each plugin is in the plugin/ folder and it
36+
mirrors the directory structure of the pack/ directory.
37+
38+
This is the list of plugins that I use:
39+
40+
- **pack/coding**: these packs are related to the programming
41+
experience.
42+
- [editorconfig-vim]: not just for the projects where I have an
43+
.editorconfig, I have a global .editorconfig file in my home
44+
directory to set the defaults for many languages among all my text
45+
editors. This is why you will not find `tabstop`, `shiftwidth`,
46+
`textwidth` and `softtabstop` settings in my vimrc.
47+
- [vim-polyglot]: it is the biggest plugin, but it is worth having it
48+
and being able to just open any kind of file no matter how obscure
49+
it is and be received by a colourful window, so it stays.
50+
- **pack/lsp**: these packs are related to the Language Server Protocol.
51+
- [ale]: it is used for linting and formatting, something that vim-lsp
52+
doesn't usually handle very well.
53+
- [asyncomplete]: it is used to automatically unfold the popup menu as
54+
I am writing, to help me finish my words.
55+
- [asyncomplete-lsp]: this is the bridge to have asyncomplete read
56+
completions from vim-lsp.
57+
- [vim-lsp]: currently the LSP plugin I use, supports many features
58+
such as rename, go to implementation and such.
59+
- [vim-lsp-settings]: a repository of LSP configurations for many
60+
programming languages.
61+
- **pack/shell**: these packs are related to extending Vim itself.
62+
- [fzf]: the fuzzy finder, includes the core plugin to add fzf to Vim.
63+
- [fzf-vim]: extends the fzf plugin, adding many commands such as
64+
Files or Buffers.
65+
- [nerdtree]: the classic tree explorer plugin. There are other tree
66+
explorers out there, but I prefer this.
67+
68+
[ale]: https://github.com/dense-analysis/ale
69+
[asyncomplete]: https://github.com/prabirshrestha/asyncomplete.vim
70+
[asyncomplete-lsp]:
71+
https://github.com/prabirshrestha/asyncomplete-lsp.vim
72+
[editorconfig-vim]: https://github.com/editorconfig/editorconfig-vim
73+
[fzf]: https://github.com/junegunn/fzf
74+
[fzf-vim]: https://github.com/junegunn/fzf.vim
75+
[nerdtree]: https://github.com/preservim/nerdtree
76+
[vim-lsp]: https://github.com/prabirshrestha/vim-lsp
77+
[vim-lsp-settings]: https://github.com/mattn/vim-lsp-settings
78+
[vim-polyglot]: https://github.com/sheerun/vim-polyglot
5079

5180
## Disclaimer
5281

53-
This is MY vimrc setup and it is opinionated and made to work how I
54-
want. Anyone can download and use my vimrc, but unless you and me are
55-
the same person, you'll probably find things that you don't want. It is
56-
OK. Use this vimrc as a starting point for making your own.
82+
This is my vimrc and it is opinionated to reflect how I want to work.
83+
You can download this vimrc, but you will probably find things that
84+
don't work for you, and that's OK. You can read from them and then
85+
change yours.
5786

58-
**Under no circumstances I am responsible for any kind of damage
59-
derived from the use of this vimrc on your machine. If you lose files,
60-
if your Vim install breaks, if something explodes. My vimrc comes with
61-
no warranties. Again; you shouldn't play with my toys if you don't want
62-
to get hurt.** (This doesn't mean my vimrc will hurt you, you know, but
63-
this is legal boilerplate to cover my ass _in case_ something happens).
87+
I am not responsible if downloading and using this vimrc deletes files,
88+
makes you lose data or makes your computer blow up.
6489

90+
I am not responsible if at any point I git push something that breaks
91+
changes.

ftplugin/eruby.vim

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
setlocal nocursorline
22
setlocal regexpengine=1
3-
call deoplete#custom#buffer_option('auto_complete', v:false)

pack/coding/start/ale

-1
This file was deleted.

pack/editor/start/pear-tree

-1
This file was deleted.

pack/editor/start/supertab

-1
This file was deleted.

pack/editor/start/vim-closetag

-1
This file was deleted.

pack/editor/start/vim-endwise

-1
This file was deleted.

pack/editor/start/vim-numbertoggle

-1
This file was deleted.

pack/lsp/start/ale

Submodule ale added at 1ccd99e

pack/shell/start/close-buffers.vim

-1
This file was deleted.

pack/shell/start/vim-floaterm

-1
This file was deleted.

pack/shell/start/vim-gitgutter

-1
This file was deleted.

pack/shell/start/vim-maximizer

-1
This file was deleted.

pack/shell/start/vimux

-1
This file was deleted.

pack/theme/start/vim-airline

-1
This file was deleted.

pack/theme/start/vim-airline-themes

-1
This file was deleted.

plugin/editor/pear-tree.vim

-1
This file was deleted.

plugin/editor/vim-closetag.vim

-3
This file was deleted.
File renamed without changes.

plugin/shell/close-buffers.vim

-1
This file was deleted.

plugin/shell/floaterm.vim

-8
This file was deleted.

plugin/shell/nerdtree.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let NERDTreeWinSize=35
66
let NERDTreeCaseSensitiveSort=1
77
let NERDTreeWinPos = "right"
88

9-
let NERDTreeIgnore=['\~$', '\.pyc$', '^\.DS_Store$', '^node_modules$', '.git', '.ropeproject', '__pycache__']
9+
let NERDTreeIgnore=['\~$', '\.pyc$', '^\.DS_Store$', '^node_modules$', '.git$', '.ropeproject', '__pycache__']
1010

1111
" autocmd VimEnter * NERDTree | wincmd p
1212

plugin/shell/vim-gitgutter.vim

-6
This file was deleted.

plugin/shell/vimux.vim

-2
This file was deleted.

plugin/theme/vim-airline.vim

-6
This file was deleted.

vimrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@ highlight ExtraWhitespace ctermbg=1
3737
match ExtraWhitespace /\s\+$/
3838

3939
set fillchars+=vert:\┊
40-
set noshowmode
40+
set ruler
4141
set laststatus=1
4242
set wildmenu
4343
set wildoptions=pum
4444

4545
set nowrap
46-
set number
4746
set showmatch
4847

4948
nmap <C-N> :bnext<CR>

0 commit comments

Comments
 (0)