comparison .vimrc @ 248:fe6f4e3da0e7

Added a bunch of plugins after some experimenting, looks like this could be a good setup.
author Steve Huston <huston@srhuston.net>
date Tue, 26 Mar 2024 16:58:39 -0400
parents 6af02446233f
children b00e6b403896
comparison
equal deleted inserted replaced
247:fdb5c0998de5 248:fe6f4e3da0e7
4 set background=dark 4 set background=dark
5 set textwidth=78 5 set textwidth=78
6 set showmatch 6 set showmatch
7 set hls 7 set hls
8 hi Normal guibg=black guifg=white 8 hi Normal guibg=black guifg=white
9
10 " These were updated in a recent version.. I prefer the old coloring so
11 " setting it by default here.
12 hi def link diffRemoved WarningMsg
13 hi def link diffChanged PreProc
14 hi def link diffAdded Identifier
15
9 autocmd FileType make setlocal noet | setlocal ts=8 | setlocal sw=8 16 autocmd FileType make setlocal noet | setlocal ts=8 | setlocal sw=8
17 let macvim_skip_colorscheme=1
10 18
11 " These might not be needed with the inclusion of vim-sleuth now... 19 " These might not be needed with the inclusion of vim-sleuth now...
12 set autoindent 20 set autoindent
13 set cindent 21 set cindent
14 set smartindent 22 set smartindent
21 " Don't need these anymore since the plug#end below calls it 29 " Don't need these anymore since the plug#end below calls it
22 "syntax on 30 "syntax on
23 "filetype plugin indent on 31 "filetype plugin indent on
24 32
25 call plug#begin() 33 call plug#begin()
34 " https://github.com/junegunn/vim-plug
26 " The default plugin directory will be as follows: 35 " The default plugin directory will be as follows:
27 " - Vim (Linux/macOS): '~/.vim/plugged' 36 " - Vim (Linux/macOS): '~/.vim/plugged'
28 " - Vim (Windows): '~/vimfiles/plugged' 37 " - Vim (Windows): '~/vimfiles/plugged'
29 " - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged' 38 " - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged'
30 " You can specify a custom plugin directory by passing it as the argument 39 " You can specify a custom plugin directory by passing it as the argument
32 " - Avoid using standard Vim directory names like 'plugin' 41 " - Avoid using standard Vim directory names like 'plugin'
33 42
34 " Make sure you use single quotes 43 " Make sure you use single quotes
35 44
36 " ========== My plugins here ========== 45 " ========== My plugins here ==========
46 " https://github.com/vim-airline/vim-airline
47 " Status bar. I like status bars.
48 Plug 'vim-airline/vim-airline'
49
50 " https://github.com/tpope/vim-sleuth
37 " automatically adjusts 'shiftwidth' and 'expandtab' heuristically 51 " automatically adjusts 'shiftwidth' and 'expandtab' heuristically
38 Plug 'tpope/vim-sleuth' 52 Plug 'tpope/vim-sleuth'
39 53
54 " https://github.com/preservim/vim-indent-guides
40 " visually displays indent levels 55 " visually displays indent levels
41 Plug 'preservim/vim-indent-guides' 56 Plug 'preservim/vim-indent-guides'
42 57
58 " https://github.com/tpope/vim-endwise
43 " wisely 'ends' structures (think do/done in bash, if/fi, etc) 59 " wisely 'ends' structures (think do/done in bash, if/fi, etc)
44 Plug 'tpope/vim-endwise' 60 Plug 'tpope/vim-endwise'
45 61
62 " https://github.com/rstacruz/vim-closer
46 " closes brackets 63 " closes brackets
47 Plug 'rstacruz/vim-closer' 64 ""Plug 'rstacruz/vim-closer'
48 65
66 " https://github.com/jiangmiao/auto-pairs
67 " Less conservative version of vim-closer, see if it works better
68 Plug 'jiangmiao/auto-pairs'
69
70 " https://github.com/tpope/vim-surround
49 " provides mappings to easily delete, change and add surroundings (quotes, HTML tags, etc) in pairs 71 " provides mappings to easily delete, change and add surroundings (quotes, HTML tags, etc) in pairs
50 Plug 'tpope/vim-surround' 72 Plug 'tpope/vim-surround'
51 73
74 " https://github.com/ntpeters/vim-better-whitespace
52 " highlights whitespace at the end of lines 75 " highlights whitespace at the end of lines
53 Plug 'ntpeters/vim-better-whitespace' 76 Plug 'ntpeters/vim-better-whitespace'
54 77
78 " https://github.com/gabrielelana/vim-markdown
55 " markdown syntax highlighting and whatnot (better than the built-in which is similar to tpope from what I can tell) 79 " markdown syntax highlighting and whatnot (better than the built-in which is similar to tpope from what I can tell)
56 Plug 'gabrielelana/vim-markdown' 80 Plug 'gabrielelana/vim-markdown'
57 81
82 " https://github.com/jamessan/vim-gnupg
58 " gnupg integration (replaces the one I had before) 83 " gnupg integration (replaces the one I had before)
59 Plug 'jamessan/vim-gnupg' 84 Plug 'jamessan/vim-gnupg'
60 85
86 " https://github.com/rodjek/vim-puppet
61 " puppet syntax, indenting, etc - recommended by maintainers of the one I had before 87 " puppet syntax, indenting, etc - recommended by maintainers of the one I had before
62 Plug 'rodjek/vim-puppet' 88 Plug 'rodjek/vim-puppet'
89
90 " https://github.com/tpope/vim-fugitive
91 " Lots of git integrations
92 Plug 'tpope/vim-fugitive'
63 93
64 " ========== My plugins end ========== 94 " ========== My plugins end ==========
65 " Below are the examples (commented out) that came with plug 95 " Below are the examples (commented out) that came with plug
66 96
67 " Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align 97 " Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align