Difference between revisions of "Vi"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(26 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{lc}}
 
[[wikipedia:vi]]
 
[[wikipedia:vi]]
  
 +
* <code>[[/etc/vim/vimrc]]</code>
 +
* <code>[[~/.vimrc]]</code>
 +
* <code>[[apt install vim]]</code>
  
* <code>sudo update-alternatives --config editor</code><ref>https://vim.fandom.com/wiki/Set_Vim_as_your_default_editor_for_Unix</ref>
+
 
 +
* <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>
 
* <code>sudo update-alternatives --config vi</code>
  
* [[Bash]]: <code>[[set]] -o vi</code> (<code>~./[[.bash_profile]]</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 ==
 
== See also ==
* {{sudo}}
+
* {{sed}}
 +
* {{vim}}
 
* {{vi}}
 
* {{vi}}
  
  
 
[[Category:Computing]]
 
[[Category:Computing]]

Latest revision as of 13:17, 20 December 2023

Advertising: