vim-reference




Pay Notebook Creator: Salah Ahmed0
Set Container: Numerical CPU with TINY Memory for 10 Minutes 0
Total0

:set command

  • toggling options
    • :set {option} / :set no{option} (toggle on and off)
  • assigning options
    • :set {option}={value}
    • example:
      • :set tabstop=4
        • set number of spaces in a tab to 4
  • display all options
    • :set all
  • display all options you've changed from default
    • :set
  • display value of option
    • :set {option}?
    • example
      • :set nu?

Useful options

  • display line numbers
    • :set nu
      • short for :set number
  • ignore case
    • :set ic
      • short for :set ignorecase
  • read only
    • :set ro
      • short for :set readonly
  • number of spaces idented by tab
    • :set ts=n (where n is a number)
      • short for :set tabstop=n
  • number of lines to display in curr window
    • :set window=n
  • the right margin new line on line breaks)
    • :set wm=n