Tag: vim

  • 用 vim 編輯 binary 檔案時,請注意 EOL

    用 vim 編輯 binary 檔案的時候,請記得一定要 :set binary 要不然你會和我一樣被 EOL 搞死…… When writing a file the EOL for the last line is only written if there was one in the original file (normally Vim appends an EOL to the last line if there is none; this would make the file longer). See the ‘endofline’ option.

  • vim 裡的 python autocomplete

    把 http://www.vim.org/scripts/script.php?script_id=850 的東西抓回來丟到 .vim 下面,然後按照 readme 的作,之後按 ctrl+n 或者 ctrl+p 就可以看到漂亮的下拉選單了。 強者我同學 Pky 應該會叫我去 http://wiki.python.org/moin/IntegratedDevelopmentEnvironments 找個好用的吧,不過我就是喜歡用 vim 啦~~