mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
Compare commits
No commits in common. "da7c44af354bbc3d8233fcbbf2e2ed0d3fe6b714" and "0ec9d1ded124c2b429067cea3af761e8d80a63c6" have entirely different histories.
da7c44af35
...
0ec9d1ded1
3 changed files with 2 additions and 8 deletions
|
@ -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>
|
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
" }}}
|
" }}}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue