-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
570 lines (494 loc) · 26.3 KB
/
.vimrc
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
" consider implementing this: https://vimways.org/2018/from-vimrc-to-vim/
if !has('nvim')
unlet! skip_defaults_vim
source $VIMRUNTIME/defaults.vim
endif
" TODO: make it modular
" TODO: log colorizer https://github.com/dzeban/vim-log-syntax/blob/master/syntax/log.vim
" TODO: rm vim-plug-ansiesc and use https://github.com/powerman/vim-plugin-ansiesc
" https://stackoverflow.com/questions/25827839/modular-vimrc-how-to-source-vundle-plugins-from-diffrent-files
" https://github.com/todd-dsm/vimSimple
" https://github.com/ArtBIT/vim-modularvimrc
" https://github.com/sunaku/.vim
" https://github.com/jefflasslett/mod-vim
" https://www.hiteshpaul.com/posts/1378/
"
" TODO: find a way to make `gx` work
" There seem to be bugs in either vim 8.2 and/or the netrw plugin
" https://github.com/vim/vim/issues/4738
" https://github.com/vim/vim/pull/7188
" https://vi.stackexchange.com/questions/2801/how-can-i-make-gx-recognise-full-urls-in-vim if this is going to work in an asciidoc then the opening square brace or space have to be the delimiter, see netrw_gx and <cWORD>
" https://vi.stackexchange.com/questions/22459/gx-doesnt-open-the-url-and-complains-netrw-no-line-in-buffer/22505#22505
" https://stackoverflow.com/questions/9458294/open-url-under-cursor-in-vim-with-browser
" https://vim.fandom.com/wiki/Open_file_under_cursor
" https://stackoverflow.com/questions/34428944/how-to-enable-gx-in-vim-mine-doesnt-work-anymore
" https://vi.stackexchange.com/questions/5032/gx-not-opening-url-in-gvim-but-works-in-terminal
" https://stackoverflow.com/questions/62378898/iterm2-open-link-under-cursor-in-vim
" https://github.com/ThePrimeagen/.dotfiles/blob/874636dad3cbcad6ca96982047025181684993f2/nvim/.config/nvim/init.vim#L146 interesting key bindings
" https://old.reddit.com/r/neovim/comments/rfrgq5/is_it_possible_to_do_something_like_his_on/ vim-schlepp vim-move
" https://github.com/folke/trouble.nvim 🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing
" https://github.com/iamcco/diagnostic-languageserver diagnostic language server integrate with linters
" https://github.com/mattn/efm-langserver General purpose Language Server
" TODO: colors
" https://jeffkreeftmeijer.com/vim-16-color/
" cmap w!! w !sudo tee %
" or better yet, never run vim with sudo, use sudoedit
" from https://stackoverflow.com/a/726920/1698426
let mapleader=" "
" until the issue with gx being broken in netrw... this came from the @vim slack channel
nmap gx viW"ay:!open <C-R>a &<CR><cr>
" https://vonheikemen.github.io/devlog/tools/using-netrw-vim-builtin-file-explorer/
nnoremap <leader>dd :Lexplore %:p:h<CR>
nnoremap <Leader>da :Lexplore<CR>
" Leader dd: Will open Netrw in the directory of the current file.
" Leader da: Will open Netrw in the current working directory.
" timeoutlen affects the bindings ;; jk kj oo OO
set timeoutlen=400
set ttimeoutlen=400
" NB the following mappings do not work in paste mode
imap ;; <Esc>
imap jk <Esc>
imap kj <Esc>
" https://stackoverflow.com/questions/16134457/insert-a-newline-without-entering-in-insert-mode-vim#comment72864813_16136133
nnoremap oo m`o<Esc>``
nnoremap OO m`O<ESC>``
" https://old.reddit.com/r/vim/comments/nlvrhd/vimmers_of_reddit_whats_an_unknown_tip_that_has/gzm30z3/
nnoremap <Leader>p :e #<Enter>
nnoremap <Leader>n :bnext<Enter>
map <leader>at :ALEToggle<CR>
map <leader>nh :nohl<CR>
" these don't work and I need better shortcuts
" imap <silent> <leader>r [1;31m
" imap <silent> <leader>n [1;0m
" imap <silent> <leader>g [1;33m
"
" map <silent> <leader>r a[1;31m<ESC>
" map <silent> <leader>n a[1;0m<ESC>
" map <silent> <leader>g a[1;33m<ESC>
" reselect pasted text # https://vimtricks.com/p/reselect-pasted-text/
nnoremap gp `[v`]
" https://vi.stackexchange.com/a/13699
" nnoremap <silent> <leader>gt ?^\n\{2,}<CR>
" nnoremap <silent> <leader>gb /^\n\{2,}<CR>
nnoremap <silent> { ?^\n\{2,}<CR>
nnoremap <silent> } /^\n\{2,}<CR>
set mouse=
if !has('nvim')
set ttymouse=
endif
" I want no beeps of any kind, ever! see :he visualbell
set noerrorbells
set visualbell
set vb t_vb=
" Do the guioptions apply to things like vimR?
set guioptions-=T
set guioptions+=m
set expandtab
set tabstop=2
set softtabstop=2
set shiftwidth=2
set smarttab
set nowrap
set showmode
set showcmd
set backspace=indent,eol,start
set hlsearch
set incsearch
set lazyredraw
set splitright
set splitbelow
set undofile
set undolevels=5000 " https://github.com/thoughtstream/Damian-Conway-s-Vim-Setup/blob/master/.vimrc
set number
set relativenumber
set iskeyword+=-
set showmatch
set path+=** " https://github.com/mcantor/no_plugins/blob/master/no_plugins.vim
set wildmenu " show all matching files for tab complete
set wildmode=list:longest,full
set laststatus=2 " Always display the statusline in all windows
set showtabline=1 " show the tabline only when two or more tabs are open
set showmode " show the default mode text (e.g. -- INSERT -- below the statusline)
set title " show the name of the file being edited in the lower left
" This is for the mac with homebrew, what is it for Linux?
set rtp+=/opt/homebrew/opt/fzf
" gitgutter and punkte https://github.com/airblade/vim-gitgutter/issues/754
let g:gitgutter_git_args='--git-dir=${HOME}/.punkte --work-tree=${HOME}'
" I want lightline to show the full path of the file I'm editing
let g:lightline = {
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ], [ 'readonly', 'absolutepath', 'modified' ] ],
\ 'right': [ [ 'lineinfo' ], [ 'percent' ], [ 'fileformat' ], [ 'fileencoding', 'filetype' ] ]
\ },
\ 'inactive': {
\ 'left': [ [ 'absolutepath' ] ],
\ 'right': [ [ 'lineinfo' ], [ 'percent' ], [ 'fileformat' ], [ 'fileencoding', 'filetype' ] ]
\ },
\ 'colorscheme': 'PaperColor'
\ }
set spelllang=en_ca
set spellfile=~/spell/en.utf-8.add
set backup
set backupdir=~/.vimbackup/
au BufWritePre * let bakupdir="~/.vimbackup" . expand("%:p:h") |
\ let bak="!mkdir -p " . bakupdir |
\ silent exec(bak) |
\ exec("set backupdir=" . bakupdir) |
\ exec("set backupext=" . strftime("-%y%m%d-%H%M%S"))
" see https://github.com/mhinz/vim-startify/issues/428#issuecomment-704326443
" for inspiration for startify_lists
function! s:git_diff()
let files = systemlist('git diff --name-only --ignore-submodules=all')
if v:shell_error == 0
return map(files, "{'line': v:val, 'path': v:val}")
endif
let files = systemlist('git --git-dir=$HOME/.punkte/.git diff --name-only --ignore-submodules=all')
return map(files, "{'line': v:val, 'path': v:val}")
endfunction
let g:startify_lists = [
\ { 'type': 'files', 'header': [' Recent files']},
\ { 'type': function('s:git_diff'), 'header': [' git diffs']},
\ { 'type': 'sessions', 'header': [' Sessions']},
\ { 'type': 'bookmarks', 'header': [' Bookmarks']},
\ ]
let g:startify_files_number = 40
let g:startify_custom_header = [
\ ' R replace mode ',
\ ' ',
\ ' ctrl-O go to previous point in the jump list ',
\ ' ctrl-^ edit the alternate file ',
\ ' :brewind go to first buffer in buffer list ',
\ ' :bf[irst] same as :brewind ',
\ ' e# ',
\ ' ',
\ ' ''. Go to the spot where the last edit was made ',
\ ' ''". Go to the spot where the the cursor was when this buffer was last opened ',
\ ' ''^. Go to the spot where the cursor last exited insert mode ',
\ ' ',
\ 'gv reselect the last visual selection # https://vimtricks.com/p/vimtrick-reselect-last-visual-selection/ ',
\ ']s move to next misspelled word ',
\ 'zg add word to spellfile ',
\ 'zw mark word as bad word ',
\ 'zuw undo zw ',
\ 'zug undo zg ',
\ 'z= suggest spelling ',
\ ':spellr[epall] repeat z= ',
\ ' ',
\ 'Instead of using :ZoomToggle, use c-w-| and c-w-_ for vertical and horizontal splits and use c-w-= to restore ',
\ ' ',
\ 'yiw viwp to replace the word under cursor by paste # kttps://stackoverflow.com/a/21318895/1698426 ',
\ 'ciw ctrl+r 0 similar # https://stackoverflow.com/a/7797201/1698426 ',
\ ' ',
\ ' insert mode: ',
\ 'ctrl-h – Delete previous character (same as backspace) ',
\ 'ctrl-w – Delete previous word ',
\ 'ctrl-u – Delete entire line (except any indent) ',
\ 'ctrl-t – Indent the current line ',
\ 'ctrl-d – Backdent the current line ',
\ ' ',
\ ':help function() ',
\ ':help options ',
\ ':help i_ctrl-a ',
\ ':help get<C-d> ',
\ ' ',
\ ':Files browse files with fzf ',
\ ':GFiles browse git files with fzf ',
\ ':Rg search contents of files ',
\ ' ',
\ 'use :set option? to check the value of an option, ',
\ 'use :verbose set option? to also see where it was last set. ',
\ ' ',
\ 'export MANPAGER="nvim +Man!"; use gO; see https://www.reddit.com/r/neovim/comments/k5dykf/ ',
\ ' ',
\ 'Control+u in insert mode is UNDO ',
\ 'R enters replace mode, over write like old school editors ',
\ 'c is change, C is change for the whole line ',
\ ' ',
\ ':enew!|pu=execute(''verbose map'') show all mappings and where they are defined ',
\ ':verbose map <leader> all mapping in all modes that use <leader> ',
\ ':verbose map <buffer> all mappings defined for the current buffer ',
\ ':verbose nmap <leader> all normal mode mappings that use <leader> ',
\ ' source: https://stackoverflow.com/a/20083301/1698426 ',
\ ]
" I'm trying to follow vim tip #989 http://www.vim.org/tips/tip.php?tip_id=989 and adding formatoptions=l
" au BufRead,BufWrite,BufNewFile *.txt setl formatoptions=ltcroqan1
augroup text
au!
au BufRead,BufWrite,BufNewFile *.txt,*.text setl formatoptions=lb
au BufRead,BufWrite,BufNewFile *.txt,*.text setl comments=fb:-,fb:*
au BufRead,BufWrite,BufNewFile *.txt,*.text setl wrap
au BufRead,BufWrite,BufNewFile *.txt,*.text setl linebreak
au BufRead,BufWrite,BufNewFile *.txt,*.text setl autoindent
au BufRead,BufWrite,BufNewFile *.txt,*.text setl textwidth=0
au BufRead,BufWrite,BufNewFile *.txt,*.text setl wrapmargin=0
au BufRead,BufWrite,BufNewFile *.txt,*.text setl expandtab
au BufRead,BufWrite,BufNewFile *.txt,*.text setl shiftwidth=4
au BufRead,BufWrite,BufNewFile *.txt,*.text setl softtabstop=4
au BufRead,BufWrite,BufNewFile *.txt,*.text setl smarttab
augroup END
augroup mail
au!
au BufRead,BufWrite,BufNewFile .letter,mutt*,/tmp/mutt* setl formatoptions=lb
au BufRead,BufWrite,BufNewFile .letter,mutt*,/tmp/mutt* setl comments=fb:-,fb:*
au BufRead,BufWrite,BufNewFile .letter,mutt*,/tmp/mutt* setl wrap
au BufRead,BufWrite,BufNewFile .letter,mutt*,/tmp/mutt* setl linebreak
au BufRead,BufWrite,BufNewFile .letter,mutt*,/tmp/mutt* setl autoindent
au BufRead,BufWrite,BufNewFile .letter,mutt*,/tmp/mutt* setl textwidth=0
au BufRead,BufWrite,BufNewFile .letter,mutt*,/tmp/mutt* setl wrapmargin=0
au BufRead,BufWrite,BufNewFile .letter,mutt*,/tmp/mutt* setl expandtab
au BufRead,BufWrite,BufNewFile .letter,mutt*,/tmp/mutt* setl shiftwidth=4
au BufRead,BufWrite,BufNewFile .letter,mutt*,/tmp/mutt* setl softtabstop=4
au BufRead,BufWrite,BufNewFile .letter,mutt*,/tmp/mutt* setl smarttab
au BufRead,BufWrite,BufNewFile .letter,mutt*,/tmp/mutt* setl nomodeline
augroup END
function! ConvertAsciidoc()
" FIXME this only works if the .asciidoc file is in the current directory
silent execute("!asciidoctor -b html5 " . expand('%:t') . " && open -a safari " . expand('%:t:r') .. ".html")
" silent !if command -v open; then open -a safari README.html; fi
" silent !if command -v xdg-open; then xdg-open README.html; fi
silent execute("!asciidoctor -b docbook " . expand('%:t'))
silent execute("!pandoc -f docbook -t markdown " . expand('%:t:r') .. ".xml" . " -o " . expand('%:t:r') .. ".md")
silent execute("!rm " . expand('%:t:r') .. ".xml")
" whar pdf?
endfunction
autocmd! BufWritePost,FileWritePost *.asciidoc :call ConvertAsciidoc()
autocmd WinLeave * setlocal nocursorline
autocmd WinEnter * setlocal cursorline
autocmd BufLeave * setlocal nocursorline
autocmd BufEnter * setlocal cursorline
" https://stackoverflow.com/a/14449484/1698426
" Return to last edit position when opening files (You want this!)
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
" vviki
nnoremap <leader>ww :e ~/wiki/index.adoc<CR>
"====[ Toggle visibility of naughty characters ]============ https://github.com/thoughtstream/Damian-Conway-s-Vim-Setup/blob/master/.vimrc
" Make naughty characters visible...
set lcs=tab:══»,trail:␣,nbsp:˷
" Tabs shown thusly and so
" Trailing whitespace
" Non-breaking space
highlight InvisibleSpaces ctermfg=Black ctermbg=Black
call matchadd('InvisibleSpaces', '\S\@<=\s\+\%#\ze\s*$')
" overwrite the settings in e.g. /usr/share/vim/vim90/ftplugin/python.vim
autocmd FileType python setlocal showmatch tabstop=2 softtabstop=2 shiftwidth=2 expandtab
augroup VisibleNaughtiness
autocmd!
" autocmd BufEnter * set list
autocmd BufEnter *.txt set nolist
autocmd BufEnter *.vp* set nolist
autocmd BufEnter * if !&modifiable
autocmd BufEnter * set nolist
autocmd BufEnter * endif
augroup END
autocmd BufReadPost *.log,*.status :exec ':AnsiEsc'
" | :exec 'colorscheme default'
nnoremap <leader>i :exec "normal i".nr2char(getchar())."\e"<CR>
" nnoremap <leader>I :exec "normal I".nr2char(getchar())."\e"<CR> " does not work
nnoremap <leader>a :exec "normal a".nr2char(getchar())."\e"<CR>
" nnoremap <leader>A :exec "normal A".nr2char(getchar())."\e"<CR> " does not work
" https://vim.fandom.com/wiki/Insert_a_single_character
nnoremap s :exec "normal i".nr2char(getchar())."\e"<CR>
nnoremap S :exec "normal a".nr2char(getchar())."\e"<CR>
" instead of using ZoomToggle consider using c-| and c-_
" http://stackoverflow.com/a/26551079/1698426
" Zoom / Restore window.
function! s:ZoomToggle() abort
if exists('t:zoomed') && t:zoomed
execute t:zoom_winrestcmd
let t:zoomed = 0
else
let t:zoom_winrestcmd = winrestcmd()
resize
vertical resize
let t:zoomed = 1
endif
endfunction
command! ZoomToggle call s:ZoomToggle()
nnoremap <silent> <leader>z :ZoomToggle<CR>
" nnoremap <silent> <C-A> :ZoomToggle<CR>
" https://stackoverflow.com/a/11885018/1698426
" http://stackoverflow.com/a/11865489/1698426
func! Eatchar(pat)
let c = nr2char(getchar(0))
return (c =~ a:pat) ? '' : c
endfunc
" iabbr <silent> if if ()<Left><C-R>=Eatchar('\s')<CR>
" does not work for me, why?
" iabbr <silent> ≤≤ «<c-r>=eatchar('\m\s\<bar>/')<cr>
" iabbr <silent> ≥≥ »<c-r>=eatchar('\m\s\<bar>/')<cr>
" iabbr ≤≤ «
" iabbr ≥≥ »
" these macOS shortcuts turned out very useful
iabbr === ¶
iabbr --- §
" https://www.reddit.com/r/vim/comments/bozr66/finding_things_in_vim/ennq4i5?utm_source=share&utm_medium=web2x
command! -bang -nargs=* History call fzf#vim#history(fzf#vim#with_preview({'options': '--no-sort'}))
" Start interactive EasyAlign in visual mode (e.g. vip<Enter>)
vmap <Enter> <Plug>(EasyAlign)
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)
" https://github.com/jhawthorn/fzy#use-with-vim
" function! FzyCommand(choice_command, vim_command)
" try
" let output = system(a:choice_command . " | fzy ")
" catch /Vim:Interrupt/
" " Swallow errors from ^C, allow redraw! below
" endtry
" redraw!
" if v:shell_error == 0 && !empty(output)
" exec a:vim_command . ' ' . output
" endif
" endfunction
" nnoremap <leader>e :call FzyCommand("find . -type f", ":e")<cr>
" nnoremap <leader>v :call FzyCommand("find . -type f", ":vs")<cr>
" nnoremap <leader>s :call FzyCommand("find . -type f", ":sp")<cr>
" Any program can be used to filter files presented through fzy. ag (the silver searcher) can be used to ignore files specified by .gitignore.
" nnoremap <leader>e :call FzyCommand("ag . --silent -l -g ''", ":e")<cr>
" nnoremap <leader>v :call FzyCommand("ag . --silent -l -g ''", ":vs")<cr>
" nnoremap <leader>s :call FzyCommand("ag . --silent -l -g ''", ":sp")<cr>
" suggested bindings for vim-quickhl
" Minimum
" nmap <Space>m <Plug>(quickhl-manual-this)
" xmap <Space>m <Plug>(quickhl-manual-this)
" nmap <Space>M <Plug>(quickhl-manual-reset)
" xmap <Space>M <Plug>(quickhl-manual-reset)
" Full
" nmap <Space>m <Plug>(quickhl-manual-this)
" xmap <Space>m <Plug>(quickhl-manual-this)
" nmap <Space>w <Plug>(quickhl-manual-this-whole-word)
" xmap <Space>w <Plug>(quickhl-manual-this-whole-word)
" nmap <Space>c <Plug>(quickhl-manual-clear)
" vmap <Space>c <Plug>(quickhl-manual-clear)
" nmap <Space>M <Plug>(quickhl-manual-reset)
" xmap <Space>M <Plug>(quickhl-manual-reset)
" nmap <Space>j <Plug>(quickhl-cword-toggle)
" nmap <Space>] <Plug>(quickhl-tag-toggle)
" map H <Plug>(operator-quickhl-manual-this-motion)
" cursor shape for terminals
" https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q.1D81
" CSI Ps SP q
" Set cursor style (DECSCUSR), VT520.
" Ps = 0 ⇒ blinking block.
" Ps = 1 ⇒ blinking block (default).
" Ps = 2 ⇒ steady block.
" Ps = 3 ⇒ blinking underline.
" Ps = 4 ⇒ steady underline.
" Ps = 5 ⇒ blinking bar, xterm.
" Ps = 6 ⇒ steady bar, xterm.
" https://stackoverflow.com/a/44473667
" :help terminal-options
" :help termcap-cursor-shape
" t_SI go to insert mode
" t_SR go to replace mode
" t_EI leave insert or replace
set t_SI=[6\ q
set t_SR=[4\ q
set t_EI=[2\ q
" https://medium.com/@dubistkomisch/how-to-actually-get-italics-and-true-colour-to-work-in-iterm-tmux-vim-9ebe55ebc2be
let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
" set termguicolors
" let g:powerline_pycmd = "py3"
" let g:powerline_pyeval = "py3eval"
" let g:Powerline_symbols = 'fancy'
"
" " Run these commands after all .vimrc commands and after all packages/plugins
" augroup PostStartup
" if exists('g:airline_section_a')
" au VimEnter * set statusline+=%#warningmsg#
" if exists(':SyntasticStatuslineFlag')
" au VimEnter * set statusline+=%{SyntasticStatuslineFlag()}
" else
" " echo "Syntastic seems to be uninstalled"
" endif
" au VimEnter * set statusline+=%*
"
" if exists(':SyntasticStatuslineFlag')
" au VimEnter * let g:syntastic_always_populate_loc_list = 1
" au VimEnter * let g:syntastic_auto_loc_list = 1
" au VimEnter * let g:syntastic_check_on_open = 1
" au VimEnter * let g:syntastic_check_on_wq = 0
" au VimEnter * let g:airline_powerline_fonts = 1
" au VimEnter * let g:airline_theme='raven'
" endif
" else
" set statusline=
" set statusline+=%#PmenuSel#
" if exists(':StatuslineGit')
" set statusline+=%{StatuslineGit()}
" endif
" set statusline+=%#LineNr#
" set statusline+=\ %f
" set statusline+=%m\
" set statusline+=%=
" set statusline+=%#CursorColumn#
" set statusline+=\ %y
" set statusline+=\ %{&fileencoding?&fileencoding:&encoding}
" set statusline+=\[%{&fileformat}\]
" set statusline+=\ %p%%
" set statusline+=\ %l:%c
" set statusline+=\
" endif
"
"
" " https://github.com/andviro/flake8-vim
"
" " Auto-check file for errors on write:
" au VimEnter * let g:PyFlakeOnWrite = 1
"
" " List of checkers used:
" au VimEnter * let g:PyFlakeCheckers = 'pep8,mccabe,frosted'
" " Default maximum complexity for mccabe:
"
" au VimEnter * let g:PyFlakeDefaultComplexity=10
" " List of disabled pep8 warnings and errors:
"
" au VimEnter * let g:PyFlakeDisabledMessages = 'E501'
"
" " Default aggressiveness for autopep8:
" au VimEnter * let g:PyFlakeAggressive = 0
"
" " Default height of quickfix window:
" au VimEnter * let g:PyFlakeCWindow = 6
"
" " Whether to place signs or not:
" au VimEnter * let g:PyFlakeSigns = 1
"
" " When usign signs, this is the first id that will be used to identify the
" " signs. Tweak this if you are using other plugins that also use the sign
" " gutter
" au VimEnter * let g:PyFlakeSignStart = 1
"
" " Maximum line length for PyFlakeAuto command
" au VimEnter * let g:PyFlakeMaxLineLength = 100
"
" " Visual-mode key command for PyFlakeAuto
" au VimEnter * let g:PyFlakeRangeCommand = 'Q'
"
" " au VimEnter * helptags ALL
" augroup END
" I want to see the name of linter which is giving me an error message
let g:ale_echo_msg_format = '%linter% says: %code: %s'
" " next and previous ALE error/warning; something is overwriting this setting
" nmap <silent> <C-k> <Plug>(ale_previous_wrap)
" nmap <silent> <C-j> <Plug>(ale_next_wrap)
nmap <silent> <leader>an :ALENextWrap<cr>
nmap <silent> <leader>ap :ALEPreviousWrap<cr>
" let g:ale_linter_aliases = {
" \ 'sls': 'salt'
" \}
" colorscheme NedsLightTheme
set background=dark
colorscheme NedsDarkTheme
" When updating packages, sometimes packages help tags are not regenerated
" Fix that with :1000verbose :helptags ALL
function! Todaystat()
call append('$', '==== ' . system(['date']))
endfunc
" vim-vinegar HAS TO GO!
" vinegar.vim maps this to open the directory of this file, typos make this hell
" unmap -
" nunmap -