Skip to main content

Posts

Showing posts with the label Chapter :- 7 Vim Editor and Basic Scripting

ads1

Chapter :- 7 Vim Editor and Basic Scripting

 Chapter :- 7 Vim Editor and Basic Scripting  Summary  A shell script can be defined as series of commands written in a plain text file. The shell scripts are commonly used by the users to perform routine individual tasks and system administration. Working with Vim Editor We have learned how to create a file using the cat command. The cat command although it allows us to create a file is not a good option to use when creating a shell script. The Vim (Vi Improved) is a text editor written by Bram Moolenaar and first released publicly in 1991. The Vim editor functions in three different modes namely, a command mode, an insert mode and a last line mode.  We first need to issue an insert (i), append (a), or open (o) command to insert the text in the file.  Press “i' and the editor will now be in the insert mode. Now type the contents as given in the box below.  Choose the most appropriate option from those given below:  (1) In how many modes Vim editor works?  (a) One  (b) Two  (c) Thr

ads2