- Mastering Vim
- Ruslan Osipov
- 274字
- 2021-06-10 18:51:24
Opening files
First, start your favorite Command Prompt (Terminal in Linux and macOS, Cygwin in Windows). We'll be working on a very basic Python application. For simplicity's sake, let's make a simple square root calculator. Run the following command:
$ vim animal_farm.py
This opens a file named animal_farm.py. If the file existed, you'd see its contents here, but since it doesn't, we're greeted by an empty screen, as shown in the following example:

You can tell that the file doesn't exist by the [New File] text next to a file name in the status line at the bottom of the screen. Woohoo! You've just opened your first file with Vim!
If you already have Vim open—you can load a file by typing the following, and hitting Enter:
:e animal_farm.py
You have just executed your first Vim command! Pressing colon character : enters a command-line mode, which lets you enter a line of text which Vim will interpret as a command. Commands are terminated by hitting the Enter key, which allows you to perform various complex operations, as well as accessing your system's Command line. Command :e stands for edit.
- Practical Data Analysis Cookbook
- 測試驅(qū)動開發(fā):入門、實戰(zhàn)與進階
- 學(xué)Python也可以這么有趣
- INSTANT Sinatra Starter
- Android Wear Projects
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- INSTANT Adobe Edge Inspect Starter
- C# and .NET Core Test Driven Development
- Spring Boot實戰(zhàn)
- Web App Testing Using Knockout.JS
- 從Power BI到Analysis Services:企業(yè)級數(shù)據(jù)分析實戰(zhàn)
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- 金融商業(yè)數(shù)據(jù)分析:基于Python和SAS
- Java程序設(shè)計入門(第2版)
- 用Python動手學(xué)統(tǒng)計學(xué)