Difference between revisions of "Vi"
Jump to navigation
Jump to search
↑ https://vi.stackexchange.com/questions/12961/stay-at-matching-search-result-after-escape
↑ https://vim.fandom.com/wiki/Set_Vim_as_your_default_editor_for_Unix
Tags: Mobile web edit, Mobile edit |
|||
Line 10: | Line 10: | ||
− | * <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 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> | ||
Line 18: | Line 18: | ||
== Related terms == | == Related terms == | ||
* <code>[[vim-cmd]] /hostsvc/hostsummary | grep inMaintenanceMode</code> | * <code>[[vim-cmd]] /hostsvc/hostsummary | grep inMaintenanceMode</code> | ||
+ | * [[Nano]] | ||
== See also == | == See also == |
Revision as of 13:18, 23 August 2021
set compatible (to stay at matching search result after escape)[1]
Go directly to line 33:
vi +33 /path/to/your_file.txt
sudo update-alternatives --config editor
[2]sudo update-alternatives --config vi
- Bash:
set -o vi
(~./.bash_profile
)
Related terms
See also
sudo
,visudo
,su, passwd, sudo su
,Passwordless sudo
,/etc/sudoers
,/etc/sudoers.d/
,/etc/sudoers
,sudo --help
vim, view, set -o vi, ex, .viminfo
- Editors:
vi, vim
,sed
,awk
, emacs,lineinfile (Ansible)
, Atom,paste
, Neovim, Rider,visudo, vipw
,update-alternatives
,nano
,more, less
,.vimrc
,set (vi)
zed
Advertising: