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

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:cmds:vi-vim [2021/04/17 14:10] – [Alterando background] 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 127: Line 137:
 Disable vim automatic visual mode using mouse Disable vim automatic visual mode using mouse
  
-    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.1618668647.txt.gz · Last modified: 2021/04/17 14:10 by cleiton

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki