Guest User

Untitled

a guest
Dec 19th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // TO be written in home directory
  2. `cd ~` takes us to home directory
  3. command to create the file: vim vimrc
  4. // Type the below code in it and save after pressing 'i'
  5.  
  6.  
  7. set number // line numbers
  8. set shiftwidth=4 // 4 spaces after indent
  9. set autoindent
  10. set smartindent
  11. set tabstop=4 // press tab = 4 spaces
  12. set autowriteall //to auto-save files
  13.  
  14. //Press Esc
  15. :wq //to save the file
  16.  
  17. Note: To view the file: vim ~/.vimrc //hidden file
Add Comment
Please, Sign In to add comment