Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #593

Merged
merged 1 commit into from
Apr 24, 2023
Merged

Update README.md #593

merged 1 commit into from
Apr 24, 2023

Conversation

bufdev
Copy link
Member

@bufdev bufdev commented Apr 24, 2023

@smaye81:

"https://github.com/charlax/dotvim/blob/master/my_functions.vim
"https://github.com/charlax/dotvim/blob/master/vimrc
function! StripTrailingWhitespaces()
    let save_cursor = getpos(".")
    %s/\s\+$//e
    call setpos('.', save_cursor)
endfunction
command! -range=% StripTrailingWhitespaces call StripTrailingWhitespaces()
autocmd BufWritePre * :call StripTrailingWhitespaces()

@bufdev bufdev merged commit 3af6339 into main Apr 24, 2023
2 checks passed
@bufdev bufdev deleted the docs-20230424 branch April 24, 2023 15:48
@timostamm timostamm mentioned this pull request May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants