How to Change VIM to UNIX Format

How to Change VIM to UNIX Format thumbnail
VIM text editor supports Windows and UNIX file formats.

The Vim text editing program supports three file formats that are used in UNIX, Windows and Apple Mac operating systems. It recognizes the line ending characters (line terminators), when a text file is read or adds the line ending characters to each line, when a text file is written. By changing the format of a text file, created in VIM running in Windows to the file format supported by UNIX you can share text information with UNIX users.

Instructions

    • 1

      Click "Start" in Windows and then click "Run". Type in "cmd" and then click "OK" to open command line window.

    • 2

      Type in "vim file1.txt" at the "C:\>" command line prompt and press the "Enter" key.

    • 3

      Type in ":set fileformat=unix" and press the "Enter" to change VIM format to UNIX format.

    • 4

      Type in ":write" and press the "Enter" key to convert the "file1.txt" file to UNIX format.

Related Searches:

References

  • Photo Credit Jupiterimages/Photos.com/Getty Images

Comments

You May Also Like

Related Ads

Featured