Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
linux:vi [2019/07/19 10:20] – [Edit] tmadelinux:vi [2019/10/31 00:51] – [Useful Commands] tmade
Line 28: Line 28:
   .                    #Repeat last command/ insert etc.   .                    #Repeat last command/ insert etc.
   :%d                  #Clear all lines   :%d                  #Clear all lines
-     
 ==== Replace ==== ==== Replace ====
  
Line 52: Line 51:
   :w !sudo tee %      #Save file with sudo rights   :w !sudo tee %      #Save file with sudo rights
   :wq !sudo tee %     #Save and quit file with sudo rights   :wq !sudo tee %     #Save and quit file with sudo rights
 +  
 +====Visual Mode====
 +If you can´t enter text with right mouse click, set 
 +  set mouse-=a
 +in file 
 +  ~/.vimrc
      
  
      
linux/vi.txt · Last modified: 2023/09/27 15:37 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki