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
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
* <code>[[/etc/vim/vimrc]]</code> | * <code>[[/etc/vim/vimrc]]</code> | ||
− | * <code>[[.vimrc]]</code> | + | * <code>[[~/.vimrc]]</code> |
+ | * <code>[[apt install vim]]</code> | ||
Line 22: | Line 23: | ||
* [[VMware]]: <code>[[vim-cmd]] /hostsvc/hostsummary | grep inMaintenanceMode</code> | * [[VMware]]: <code>[[vim-cmd]] /hostsvc/hostsummary | grep inMaintenanceMode</code> | ||
* <code>[[nano]]</code> | * <code>[[nano]]</code> | ||
+ | * [[ex]] | ||
+ | :[[set list]] | ||
== See also == | == See also == |
Latest revision as of 13:17, 20 December 2023
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[edit]
:set list
See also[edit]
sed, gsed
,-n, -i
,Ansible: replace
,append
,Chef: Editing a file
,lineinfile
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: