unix:vim

vimdiff -c 'set diffopt+=iwhite' file1 file2

vim scp://foouser@barserver//etc/hosts

%s/<aside\_.\{-}<\/aside>//gi

:w !sudo tee %
%s/\%42\d\+/\=submatch(0) + 23
vimdiff scp://host1//etc/passwd scp://host2//etc/passwd

Display unprintable characters :set list Use spaces instead of tabs :set expandtab Length of an Tab :set tabstop=4 Number of spaces used for (auto)indent. :set shiftwidth=4 Apply settings to existing text :retab

:cd %:p:h
  • unix/vim.txt
  • Last modified: 2022-02-11T09:33:02+0100
  • by Wolfgang