The line number is added in each line of the file for number setting. The effects of the settings will be shown after opening the file in vim editor. Print ( "The average value is ", round (average, 2 ) ) The content of the file is given below.Īverage = ( int (n1 )+ int (n2 )+ int (n3 ) )/ 3 Here, average.py file is opened on vim editor. Open any python script in vim editor and check the effect of the new settings. Set fileformat=unix Check the effect of the settings "It is used to inform vim about the file format and how to read the file "It is used for adding automatic indention in vim "It is used to convert all new tab character into space "It is used to control the number of columns when left or right shift is pressed " It is used to control the number of tabs that will be used by vim when tab " Highlight the matching part of the brackets, (), and " Display an underline where the cursor is located " Enable syntax highlighting for python codes
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |