Mercurial > index.cgi > dotfiles
annotate .vimrc @ 251:b00e6b403896
Added airline-colour-splits and removed whitespace
author | Steve Huston <huston@srhuston.net> |
---|---|
date | Wed, 27 Mar 2024 16:31:21 -0400 |
parents | fe6f4e3da0e7 |
children | d2bde75bd73a |
rev | line source |
---|---|
0 | 1 version 5.0 |
2 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
|
3 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
|
4 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
|
5 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
|
6 set showmatch |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
7 set hls |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
8 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
|
9 |
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
|
10 " 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
|
11 " 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
|
12 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
|
13 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
|
14 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
|
15 |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
16 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
|
17 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
|
18 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
19 " These might not be needed with the inclusion of vim-sleuth now... |
0 | 20 set autoindent |
21 set cindent | |
22 set smartindent | |
23 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
|
24 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
|
25 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
|
26 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
|
27 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
|
28 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
29 " 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
|
30 "syntax on |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
31 "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
|
32 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
33 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
|
34 " 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
|
35 " 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
|
36 " - 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
|
37 " - 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
|
38 " - 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
|
39 " 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
|
40 " - 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
|
41 " - 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
|
42 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
43 " 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
|
44 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
45 " ========== 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
|
46 " 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
|
47 " 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
|
48 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
|
49 |
251
b00e6b403896
Added airline-colour-splits and removed whitespace
Steve Huston <huston@srhuston.net>
parents:
248
diff
changeset
|
50 " https://github.com/Roy-Orbison/airline-colour-splits |
b00e6b403896
Added airline-colour-splits and removed whitespace
Steve Huston <huston@srhuston.net>
parents:
248
diff
changeset
|
51 " Trying this again, fixes airline issues on split windows |
b00e6b403896
Added airline-colour-splits and removed whitespace
Steve Huston <huston@srhuston.net>
parents:
248
diff
changeset
|
52 Plug 'Roy-Orbison/airline-colour-splits' |
b00e6b403896
Added airline-colour-splits and removed whitespace
Steve Huston <huston@srhuston.net>
parents:
248
diff
changeset
|
53 |
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
|
54 " 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
|
55 " 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
|
56 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
|
57 |
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
|
58 " 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
|
59 " 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
|
60 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
|
61 |
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
|
62 " 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
|
63 " 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
|
64 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
|
65 |
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
|
66 " 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
|
67 " 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
|
68 ""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
|
69 |
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
|
70 " 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
|
71 " 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
|
72 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
|
73 |
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 " 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
|
75 " 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
|
76 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
|
77 |
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
|
78 " 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
|
79 " 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
|
80 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
|
81 |
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
|
82 " 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
|
83 " 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
|
84 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
|
85 |
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
|
86 " 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
|
87 " 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
|
88 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
|
89 |
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
|
90 " 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
|
91 " 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
|
92 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
|
93 |
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
|
94 " 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
|
95 " 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
|
96 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
|
97 |
246
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
98 " ========== 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
|
99 " 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
|
100 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
101 " 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
|
102 "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
|
103 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
104 " 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
|
105 "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
|
106 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
107 " 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
|
108 "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
|
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 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
|
111 "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
|
112 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
113 " 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
|
114 "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
|
115 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
116 " 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
|
117 "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
|
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 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
|
120 "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
|
121 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
122 " 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
|
123 "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
|
124 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
125 " 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
|
126 "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
|
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 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
|
129 "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
|
130 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
131 " 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
|
132 "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
|
133 |
6af02446233f
New Vim plugin manager and its configuration should make things more portable
Steve Huston <huston@srhuston.net>
parents:
198
diff
changeset
|
134 " 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
|
135 " - 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
|
136 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
|
137 " 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
|
138 " 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
|
139 " syntax off " Disable syntax highlighting |