diff --git a/nvim/plugin/editing.vim b/nvim/plugin/editing.vim index c042cd2..817f7cc 100644 --- a/nvim/plugin/editing.vim +++ b/nvim/plugin/editing.vim @@ -152,11 +152,6 @@ set commentstring=//%s \|xmap # call VisualStarSearch('?')N augroup END - " - command! -nargs=+ Search let @/ = escape(, '/') | normal // - " - command! -nargs=+ SearchLiteral let @/ = '\V'.escape(, '/\') | normal // - " }}} diff --git a/nvim/plugin/files.vim b/nvim/plugin/files.vim index b9266d5..f07659f 100644 --- a/nvim/plugin/files.vim +++ b/nvim/plugin/files.vim @@ -144,9 +144,9 @@ nnoremap empty(&buftype) ? ":writewall\" : "\" function s:FixWhitespaceOnSave() let l:pos = getpos('.') " remove trailing whitespace - keeppatterns %s/\s\+$//e + %s/\s\+$//e " remove trailing newlines - keeppatterns %s/\($\n\s*\)\+\%$//e + %s/\($\n\s*\)\+\%$//e call setpos('.', l:pos) endfunction " }}} diff --git a/zsh/functions.zsh b/zsh/functions.zsh index e008988..88edb32 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -83,7 +83,6 @@ declare -A date_formats=( compact '%Y%m%d%H%M%S' only-date '%Y-%m-%d' only-time '%H:%M:%S' - timestamp '%s' ) for format_name format in "${(kv)date_formats[@]}"; do