wiki:cmds:vi-vim
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:cmds:vi-vim [2020/12/13 14:01] – created cleiton | wiki: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: |
+ | : | ||
+ | |||
+ | Faz o mesmo que anterior, mas ingnora case sensitive: | ||
+ | : | ||
+ | |||
+ | Mais informações: | ||
+ | |||
+ | |||
+ | ===== 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 | + | |
- | insert the directive set mouse-=a into your ~/.vimrc file | + | |
+ | | ||
+ | #insert the directive set mouse-=a into your ~/.vimrc file | ||
+ | $ echo "set mouse-=a" | ||
+ | $ sudo echo "set mouse-=a" |
wiki/cmds/vi-vim.1607868105.txt.gz · Last modified: 2020/12/13 14:01 by cleiton