Difference between revisions of "Vi"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 5: Line 5:
  
 
  set compatible (to stay at matching search result after escape)<ref>https://vi.stackexchange.com/questions/12961/stay-at-matching-search-result-after-escape</ref>
 
  set compatible (to stay at matching search result after escape)<ref>https://vi.stackexchange.com/questions/12961/stay-at-matching-search-result-after-escape</ref>
 +
 +
Go to line 33 directly:
 +
  vi +33 /path/to/your_file.txt
  
  

Revision as of 06:33, 13 May 2020

wikipedia:vi

/etc/vim/vimrc


set compatible (to stay at matching search result after escape)[1]

Go to line 33 directly:

  vi +33 /path/to/your_file.txt


  • sudo update-alternatives --config editor[2]
  • sudo update-alternatives --config vi

See also

  • 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
  • Advertising: