Mercurial > index.cgi > dotfiles
annotate .shared/.vim/vimrc @ 265:df0b24d4fabd
Think I'm ready to check this all in now; shared dotfiles that can be "sent"
through an SSH connection to be used and cleaned up when finished.
author | Steve Huston <huston@srhuston.net> |
---|---|
date | Wed, 24 Apr 2024 16:15:40 -0400 |
parents | .vimrc@d2bde75bd73a |
children |
rev | line source |
---|---|
0 | 1 version 5.0 |
265
df0b24d4fabd
Think I'm ready to check this all in now; shared dotfiles that can be "sent"
Steve Huston <huston@srhuston.net>
parents:
252
diff
changeset
|
2 |
df0b24d4fabd
Think I'm ready to check this all in now; shared dotfiles that can be "sent"
Steve Huston <huston@srhuston.net>
parents:
252
diff
changeset
|
3 " First things first, here's where to find everything |
df0b24d4fabd
Think I'm ready to check this all in now; shared dotfiles that can be "sent"
Steve Huston <huston@srhuston.net>
parents:
252
diff
changeset
|
4 set runtimepath=$DOTHOME/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$DOTHOME/.vim/after |
df0b24d4fabd
Think I'm ready to check this all in now; shared dotfiles that can be "sent"
Steve Huston <huston@srhuston.net>
parents:
252
diff
changeset
|
5 if v:version > 704 |
df0b24d4fabd
Think I'm ready to check this all in now; shared dotfiles that can be "sent"
Steve Huston <huston@srhuston.net>
parents:
252
diff
changeset
|
6 set packpath=$DOTHOME/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$DOTHOME/.vim/after |
df0b24d4fabd
Think I'm ready to check this all in now; shared dotfiles that can be "sent"
Steve Huston <huston@srhuston.net>
parents:
252
diff
changeset
|
7 endif |
df0b24d4fabd
Think I'm ready to check this all in now; shared dotfiles that can be "sent"
Steve Huston <huston@srhuston.net>
parents:
252
diff
changeset
|
8 |
0 | 9 set nocompatible |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
10 set mouse=a |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
11 set background=dark |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
12 set textwidth=78 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
13 set showmatch |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
14 set hls |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
15 hi Normal guibg=black guifg=white |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
16 |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
17 " These were updated in a recent version.. I prefer the old coloring so |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
18 " setting it by default here. |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
19 hi def link diffRemoved WarningMsg |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
20 hi def link diffChanged PreProc |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
21 hi def link diffAdded Identifier |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
22 |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
23 autocmd FileType make setlocal noet | setlocal ts=8 | setlocal sw=8 |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
24 let macvim_skip_colorscheme=1 |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
25 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
26 " These might not be needed with the inclusion of vim-sleuth now... |
0 | 27 set autoindent |
28 set cindent | |
29 set smartindent | |
30 set smarttab | |
27
a6c93cf45e90
* New changes to tab stuff, see if I like it better
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
19
diff
changeset
|
31 set tabstop=4 |
a6c93cf45e90
* New changes to tab stuff, see if I like it better
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
19
diff
changeset
|
32 set shiftwidth=2 |
a6c93cf45e90
* New changes to tab stuff, see if I like it better
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
19
diff
changeset
|
33 set softtabstop=2 |
a6c93cf45e90
* New changes to tab stuff, see if I like it better
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
19
diff
changeset
|
34 set expandtab |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
35 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
36 " Don't need these anymore since the plug#end below calls it |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
37 "syntax on |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
38 "filetype plugin indent on |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
39 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
40 call plug#begin() |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
41 " https://github.com/junegunn/vim-plug |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
42 " The default plugin directory will be as follows: |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
43 " - Vim (Linux/macOS): '~/.vim/plugged' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
44 " - Vim (Windows): '~/vimfiles/plugged' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
45 " - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
46 " You can specify a custom plugin directory by passing it as the argument |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
47 " - e.g. `call plug#begin('~/.vim/plugged')` |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
48 " - Avoid using standard Vim directory names like 'plugin' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
49 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
50 " Make sure you use single quotes |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
51 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
52 " ========== My plugins here ========== |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
53 " https://github.com/vim-airline/vim-airline |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
54 " Status bar. I like status bars. |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
55 Plug 'vim-airline/vim-airline' |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
56 |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
57 " https://github.com/tpope/vim-sleuth |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
58 " automatically adjusts 'shiftwidth' and 'expandtab' heuristically |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
59 Plug 'tpope/vim-sleuth' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
60 |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
61 " https://github.com/preservim/vim-indent-guides |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
62 " visually displays indent levels |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
63 Plug 'preservim/vim-indent-guides' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
64 |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
65 " https://github.com/tpope/vim-endwise |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
66 " wisely 'ends' structures (think do/done in bash, if/fi, etc) |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
67 Plug 'tpope/vim-endwise' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
68 |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
69 " https://github.com/rstacruz/vim-closer |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
70 " closes brackets |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
71 ""Plug 'rstacruz/vim-closer' |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
72 |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
73 " https://github.com/jiangmiao/auto-pairs |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
74 " Less conservative version of vim-closer, see if it works better |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
75 Plug 'jiangmiao/auto-pairs' |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
76 |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
77 " https://github.com/tpope/vim-surround |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
78 " provides mappings to easily delete, change and add surroundings (quotes, HTML tags, etc) in pairs |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
79 Plug 'tpope/vim-surround' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
80 |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
81 " https://github.com/ntpeters/vim-better-whitespace |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
82 " highlights whitespace at the end of lines |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
83 Plug 'ntpeters/vim-better-whitespace' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
84 |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
85 " https://github.com/gabrielelana/vim-markdown |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
86 " markdown syntax highlighting and whatnot (better than the built-in which is similar to tpope from what I can tell) |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
87 Plug 'gabrielelana/vim-markdown' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
88 |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
89 " https://github.com/jamessan/vim-gnupg |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
90 " gnupg integration (replaces the one I had before) |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
91 Plug 'jamessan/vim-gnupg' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
92 |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
93 " https://github.com/rodjek/vim-puppet |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
94 " puppet syntax, indenting, etc - recommended by maintainers of the one I had before |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
95 Plug 'rodjek/vim-puppet' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
96 |
248
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
97 " https://github.com/tpope/vim-fugitive |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
98 " Lots of git integrations |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
99 Plug 'tpope/vim-fugitive' |
fe6f4e3da0e7
Added a bunch of plugins after some experimenting, looks like this could be a good setup.
Steve Huston <huston@srhuston.net>
parents:
246
diff
changeset
|
100 |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
101 " ========== My plugins end ========== |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
102 " Below are the examples (commented out) that came with plug |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
103 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
104 " Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
105 "Plug 'junegunn/vim-easy-align' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
106 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
107 " Any valid git URL is allowed |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
108 "Plug 'https://github.com/junegunn/seoul256.vim.git' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
109 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
110 " Using a tagged release; wildcard allowed (requires git 1.9.2 or above) |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
111 "Plug 'fatih/vim-go', { 'tag': '*' } |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
112 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
113 " Using a non-default branch |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
114 "Plug 'neoclide/coc.nvim', { 'branch': 'release' } |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
115 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
116 " Use 'dir' option to install plugin in a non-default directory |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
117 "Plug 'junegunn/fzf', { 'dir': '~/.fzf' } |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
118 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
119 " Post-update hook: run a shell command after installing or updating the plugin |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
120 "Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
121 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
122 " Post-update hook can be a lambda expression |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
123 "Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
124 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
125 " If the vim plugin is in a subdirectory, use 'rtp' option to specify its path |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
126 "Plug 'nsf/gocode', { 'rtp': 'vim' } |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
127 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
128 " On-demand loading: loaded when the specified command is executed |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
129 "Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' } |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
130 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
131 " On-demand loading: loaded when a file with a specific file type is opened |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
132 "Plug 'tpope/vim-fireplace', { 'for': 'clojure' } |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
133 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
134 " Unmanaged plugin (manually installed and updated) |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
135 "Plug '~/my-prototype-plugin' |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
136 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
137 " Initialize plugin system |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
138 " - Automatically executes `filetype plugin indent on` and `syntax enable`. |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
139 call plug#end() |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
140 " You can revert the settings after the call like so: |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
141 " filetype indent off " Disable file-type-specific indentation |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
142 " syntax off " Disable syntax highlighting |