Compare commits

..

No commits in common. "ffd4e258235d688627d6d47db732f76ef9d12dec" and "955a4d07f4699632df24000bbbaad4c9e66ce66a" have entirely different histories.

4 changed files with 16 additions and 9 deletions

View file

@ -1,4 +0,0 @@
" <https://stackoverflow.com/a/7212314/12005228>
let &l:makeprg = 'awk --lint --source "BEGIN{exit(0)}END{exit(0)}" --file %:S'
" <https://github.com/WolfgangMehner/vim-plugins/blob/a673942f0b7fe9cbbb19282ee4c3ebe5decf2a1d/plugin/awk-support.vim#L570>
let &l:errorformat = 'awk: %f:%l: %m'

View file

@ -1,5 +1,11 @@
source <sfile>:h/text.vim source <sfile>:h/text.vim
let &l:makeprg = 'markdown2htmldoc -- %:S %:S.html' let s:src_file = expand('%')
let s:out_file = s:src_file.'.html'
let &l:makeprg = 'markdown2htmldoc'
for s:arg in get(g:, 'dotfiles_markdown2htmldoc_options', [])
let &l:makeprg .= ' '.shellescape(s:arg)
endfor
let &l:makeprg .= ' -- '.shellescape(s:src_file).' '.shellescape(s:out_file)
nnoremap <buffer> <F5> <Cmd>Open %.html<CR> nnoremap <buffer> <F5> <Cmd>Open %.html<CR>

View file

@ -1,3 +1,9 @@
source <sfile>:h/css.vim source <sfile>:h/css.vim
let &l:makeprg = 'sass -- %:S:%:S.css' let s:src_file = expand('%')
let s:out_file = s:src_file.'.css'
let &l:makeprg = 'sass'
for s:arg in get(g:, 'dotfiles_dart_sass_options', [])
let &l:makeprg .= ' '.shellescape(s:arg)
endfor
let &l:makeprg .= ' -- '.shellescape(s:src_file).':'.shellescape(s:out_file)

View file

@ -43,8 +43,7 @@ endif
function s:CloseBuffer(cmd) abort function s:CloseBuffer(cmd) abort
let cmd = a:cmd let cmd = a:cmd
if &modified if &modified
" <https://github.com/neovim/neovim/blob/a282a177d3320db25fa8f854cbcdbe0bc6abde7f/src/nvim/ex_cmds2.c#L1400> let answer = confirm("Save changes?", "&Yes\n&No\n&Cancel")
let answer = confirm("Save changes to \"".expand('%')."\"?", "&Yes\n&No\n&Cancel")
if answer ==# 1 " Yes if answer ==# 1 " Yes
write write
elseif answer ==# 2 " No elseif answer ==# 2 " No
@ -140,4 +139,4 @@ endif
" }}} " }}}
nnoremap <silent> <F9> <Cmd>make!<CR> nnoremap <silent> <F9> <Cmd>make<CR>