Compare commits

..

No commits in common. "da7c44af354bbc3d8233fcbbf2e2ed0d3fe6b714" and "0ec9d1ded124c2b429067cea3af761e8d80a63c6" have entirely different histories.

3 changed files with 2 additions and 8 deletions

View file

@ -152,11 +152,6 @@ set commentstring=//%s
\|xmap # <Cmd>call <SID>VisualStarSearch('?')<CR>N \|xmap # <Cmd>call <SID>VisualStarSearch('?')<CR>N
augroup END augroup END
" <https://vim.fandom.com/wiki/Searching_for_expressions_which_include_slashes#Searching_for_slash_as_normal_text>
command! -nargs=+ Search let @/ = escape(<q-args>, '/') | normal /<C-R>/<CR>
" <https://vim.fandom.com/wiki/Searching_for_expressions_which_include_slashes#Searching_for_all_characters_as_normal_text>
command! -nargs=+ SearchLiteral let @/ = '\V'.escape(<q-args>, '/\') | normal /<C-R>/<CR>
" }}} " }}}

View file

@ -144,9 +144,9 @@ nnoremap <silent><expr> <CR> empty(&buftype) ? ":write<bar>wall\<CR>" : "\<CR>"
function s:FixWhitespaceOnSave() function s:FixWhitespaceOnSave()
let l:pos = getpos('.') let l:pos = getpos('.')
" remove trailing whitespace " remove trailing whitespace
keeppatterns %s/\s\+$//e %s/\s\+$//e
" remove trailing newlines " remove trailing newlines
keeppatterns %s/\($\n\s*\)\+\%$//e %s/\($\n\s*\)\+\%$//e
call setpos('.', l:pos) call setpos('.', l:pos)
endfunction endfunction
" }}} " }}}

View file

@ -83,7 +83,6 @@ declare -A date_formats=(
compact '%Y%m%d%H%M%S' compact '%Y%m%d%H%M%S'
only-date '%Y-%m-%d' only-date '%Y-%m-%d'
only-time '%H:%M:%S' only-time '%H:%M:%S'
timestamp '%s'
) )
for format_name format in "${(kv)date_formats[@]}"; do for format_name format in "${(kv)date_formats[@]}"; do