home_server:home_server_setup:other_services:vim

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
home_server:home_server_setup:other_services:vim [2024-03-24 Sun wk12 11:04] – [VIM Customisation] baumkphome_server:home_server_setup:other_services:vim [2024-03-24 Sun wk12 13:58] baumkp
Line 2: Line 2:
 =====VIM Customisation===== =====VIM Customisation=====
 ++++~/.vimrc| ++++~/.vimrc|
-<code bash>:colorscheme desert +<code bash>colorscheme desert 
-:set nocompatible+set nocompatible
 syntax on syntax on
-:set number relativenumber+set number relativenumber
 set autoindent expandtab tabstop=2 shiftwidth=2 set autoindent expandtab tabstop=2 shiftwidth=2
 filetype plugin on filetype plugin on
Line 19: Line 19:
  
 The different VIM colour scheme definition files are located at ''/usr/share/vim/vim90/colors''. The different VIM colour scheme definition files are located at ''/usr/share/vim/vim90/colors''.
 +====nocompatible==== 
 +Original vi had some strange key bindings, e.g. the cursor keys did not function 
 ====vim syntax color==== ====vim syntax color====
 If syntax color is not working in the file ''.vimrc'' (''vim ~/.vimrc''), add the following line ''syntax on''. If syntax color is not working in the file ''.vimrc'' (''vim ~/.vimrc''), add the following line ''syntax on''.
  
 ====vim line numbers==== ====vim line numbers====
 +In .vimrc, add ''set number relativenumber'' other options include:
 +  * ''set number'' sequentially numbers from top at 1 to bottom.
 +  * ''set relativenumber'' sets current line at 0 and numbers sequentially from 1 above and below
 +  * ''set number relativenumber'' sets current line at actual line number and numbers sequentially from 1 above and below
 +  * ''set nonumber'' set numbering off
 +In visual mode '':set number!'' toggles the current number setting.  Probably can not use this one in ''.vimrc''.
 +
 ====VIM Text Editor==== ====VIM Text Editor====
  
  • /app/www/public/data/pages/home_server/home_server_setup/other_services/vim.txt
  • Last modified: 2024-03-24 Sun wk12 14:04
  • by baumkp