User Tools

Site Tools


wiki:cmds:vi-vim

Differences

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

Link to this comparison view

Next revision
Previous revision
wiki:cmds:vi-vim [2020/12/13 14:01] – created cleitonwiki:cmds:vi-vim [2024/02/16 17:30] (current) – [Desativar modo visual] cleiton
Line 1: Line 1:
 ====== VI & VIM ====== ====== VI & VIM ======
  
 +===== Localizar e substituir =====
  
-===== se movimentando no vi / vim =====+Localiza jessie e substitui por stretch em todo o texto: 
 +  :%s/jessie/stretch/
 + 
 +Faz o mesmo que anterior, mas ingnora case sensitive: 
 +  :%s/jessie/stretch/gi 
 + 
 +Mais informações: https://juliobiason.gitbooks.io/uma-licao-de-vim/content/9.html 
 + 
 + 
 +===== se movimentando no vi / vim =====
  
  
Line 123: Line 133:
  
  
 +===== Desativar modo visual =====
  
 Disable vim automatic visual mode using mouse Disable vim automatic visual mode using mouse
-Last updated on Thu, 2010-10-14 20:33. Originally submitted by fabio on 2007-07-12 11:41. 
- 
-I usually use Vim for command line text file editing. 
- 
-Some days ago, probably due to a change in /etc/vimrc after a system update, the behavior of the mouse changed. 
- 
-Selecting some text with the mouse automatically enter visual mode. I rarely use the visual feature and when I use it I prefer using the v keyboard command. 
- 
-I found this new setting pretty annoying. So I decided to disable it. 
- 
-If you also want do the same you can either: 
  
-    issue the command :set mouse-=a +    #issue the command  
-    insert the directive set mouse-=a into your ~/.vimrc file+    :set mouse-=a 
 +     
 +    #insert the directive set mouse-=a into your ~/.vimrc file 
 +    $ echo "set mouse-=a" >> .vimrc 
 +    $ sudo echo "set mouse-=a" >> /root/.vimrc
wiki/cmds/vi-vim.1607868105.txt.gz · Last modified: 2020/12/13 14:01 by cleiton

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki