Difference between revisions of "Vi"

From wikieduonline
Jump to navigation Jump to search
(Created page with " * <code>sudo update-alternatives --config editor</code>")
 
 
(38 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{lc}}
 +
[[wikipedia:vi]]
  
 +
* <code>[[/etc/vim/vimrc]]</code>
 +
* <code>[[~/.vimrc]]</code>
 +
* <code>[[apt install vim]]</code>
  
  
* <code>sudo update-alternatives --config editor</code>
+
* <code>[[set (vi)|set]] [[compatible]] (to stay at matching search result after escape)</code><ref>https://vi.stackexchange.com/questions/12961/stay-at-matching-search-result-after-escape</ref>
 +
 
 +
Go directly to [[line]] 33:
 +
 
 +
*<code>vi +33 /path/to/your_file.txt</code>
 +
 
 +
 
 +
*<code>sudo [[update-alternatives]] --config editor</code><ref>https://vim.fandom.com/wiki/Set_Vim_as_your_default_editor_for_Unix</ref>
 +
* <code>sudo update-alternatives --config vi</code>
 +
 
 +
* [[Bash]]: <code>[[set -o vi]]</code> (<code>~./[[.bash_profile]]</code>)
 +
 
 +
 
 +
== Related ==
 +
* [[VMware]]: <code>[[vim-cmd]] /hostsvc/hostsummary | grep inMaintenanceMode</code>
 +
* <code>[[nano]]</code>
 +
* [[ex]]
 +
:[[set list]]
 +
 
 +
== See also ==
 +
* {{sed}}
 +
* {{vim}}
 +
* {{vi}}
 +
 
 +
 
 +
[[Category:Computing]]

Latest revision as of 13:17, 20 December 2023

Advertising: