-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc##Darwin
110 lines (85 loc) · 2.57 KB
/
.vimrc##Darwin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
" /\/| __ _
" |/\/ / / (_)
" / /__ __ _ _ __ ___ _ __ ___
" / / \ \ / /| || '_ ` _ \ | '__|/ __|
" / / _ \ V / | || | | | | || | | (__
" /_/ (_) \_/ |_||_| |_| |_||_| \___|
"
" ( macOS/Darwin revision. )
"
" ~/.vimrc by Lachlan Shoesmith (lachlantula).
" Last updated: 2/2/19.
syntax on
" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')
" Declare the list of plugins.
Plug 'posva/vim-vue'
Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'
Plug 'mattn/emmet-vim'
Plug 'rstacruz/vim-closer'
Plug 'scrooloose/nerdtree'
Plug 'itchyny/lightline.vim'
Plug 'junegunn/goyo.vim'
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'w0rp/ale'
Plug 'junegunn/limelight.vim'
" Deoplete.
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
endif
let g:deoplete#enable_at_startup = 1
" List ends here. Plugins become visible to Vim after this call.
call plug#end()
" Set theme (vimr only).
if has ("gui_vimr")
colorscheme dracula
endif
" Hide --INSERT--, etc, since Lightline shows it.
set noshowmode
" Set Lightline theme.
let g:lightline = {
\ 'colorscheme': 'darcula',
\ }
" Make Vim read .md files as Markdown (.markdown) files.
au BufNewFile,BufFilePre,BufRead *.md set
" Change the cursor to my personal terminal one.
set guicursor=a:ver20-blinkon1
" Open a file tree with Ctrl+T.
map <C-T> :NERDTreeToggle<CR>
" Display relative line numbers
set number relativenumber
" Indentation
set expandtab
set shiftwidth=2
set autoindent
set smartindent
set tabstop=2
set softtabstop=2
" Word wrap.
set linebreak
" Set this variable to 1 to fix files when you save them.
let g:ale_fix_on_save = 1
" Fix Limelight on certain themes.
" Color name (:help cterm-colors) or ANSI code
let g:limelight_conceal_ctermfg = 'gray'
let g:limelight_conceal_ctermfg = 240
" Color name (:help gui-colors) or RGB color
let g:limelight_conceal_guifg = 'DarkGray'
let g:limelight_conceal_guifg = '#777777'
" Default: 0.5
let g:limelight_default_coefficient = 0.7
" Number of preceding/following paragraphs to include (default: 0)
let g:limelight_paragraph_span = 1
" Beginning/end of paragraph
" When there's no empty line between the paragraphs
" and each paragraph starts with indentation
let g:limelight_bop = '^\s'
let g:limelight_eop = '\ze\n^\s'
" Highlighting priority (default: 10)
" Set it to -1 not to overrule hlsearch
let g:limelight_priority = -1