User Tools

Site Tools


linux:vim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:vim [2019/12/28 16:29] – created Wulf Rajeklinux:vim [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 8: Line 8:
 update-alternatives --config editor update-alternatives --config editor
 </code> </code>
-and select vim.basic or vim.nox+and select vim.basic 
 + 
 +follow it by 
 +<code> 
 +select-editor 
 +</code>
  
 or\\  or\\ 
Line 25: Line 30:
 and add this line at the end of the file: and add this line at the end of the file:
 <code> <code>
 +export EDITOR=vi
 export VISUAL=vi export VISUAL=vi
 </code> </code>
Line 35: Line 41:
 <code> <code>
 export VISUAL=vi export VISUAL=vi
 +export EDITOR=vi
 </code> </code>
  
Line 55: Line 62:
 By default Debian installs vim-tiny which does not support syntax highlighting. To install all required modules for console use By default Debian installs vim-tiny which does not support syntax highlighting. To install all required modules for console use
 <code> <code>
-apt-get install vim-nox+apt-get install vim
 </code> </code>
 then edit /etc/vim/vimrc then edit /etc/vim/vimrc
Line 124: Line 131:
  
 endif " has("autocmd") endif " has("autocmd")
- 
 </code> </code>
  
 ===== More info ===== ===== More info =====
 [[http://www.lagmonster.org/docs/vi.html|VIM Cheat Sheet]] [[http://www.lagmonster.org/docs/vi.html|VIM Cheat Sheet]]
linux/vim.1577550580.txt.gz · Last modified: 2023/05/29 11:53 (external edit)