This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:vi [2019/07/19 10:20] – [Edit] tmade | linux:vi [2019/10/31 00:54] – [Visual Mode] tmade | ||
---|---|---|---|
Line 52: | Line 52: | ||
: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 putty and right mouse click, set | ||
+ | set mouse-=a | ||
+ | in file | ||
+ | ~/.vimrc | ||
+ | |||
+ | or | ||
+ | |||
+ | :set mouse= | ||
+ | | ||
+ | inside VI. | ||
+ | | ||
+ | Adapt to it - with mouse mode turned on, the new way to paste is | ||
+ | shift-right-click | ||
+ | |||
| |