Skip to content

Instantly share code, notes, and snippets.

@ironhouzi
Created March 23, 2015 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ironhouzi/4a14ab343275ea0e528b to your computer and use it in GitHub Desktop.
Save ironhouzi/4a14ab343275ea0e528b to your computer and use it in GitHub Desktop.
nnoremap <leader>w :silent! %s/\s\+$//<cr>:let @/=''<CR>:w<CR>
function! FixInf3151()
normal mz
set st=2 sts=2 noet
retab!
set st=4 sts=4 et
retab
normal ,w
normal gg=G
normal `z
endfunction
command! -register FixInf3151 call FixInf3151()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment