Textt

  • Textt
  • ブログ
  • ユーザー登録
  • ログイン

nanashia128 デイリーを目標に最低ウィークリーでの更新を目指したい日記的な何か

  • Automatically removing all trailing whitespaceEdit

    One way to make sure to remove all trailing whitespace in a file is to set an autocmd in your .vimrc file. Every time the user issues a :w command, Vim will automatically remove all trailing whitespace before saving.

    autocmd BufWritePre * :%s/\s\+$//e


    Remove unwanted spaces - Vim Tips Wiki http://vim.wikia.com/wiki/Remove_unwanted_spaces
    2014/03/17 nanashia128
© Textt / GreenSpace