Skip to main content
added 163 characters in body
Source Link
Martin Tournoij
  • 63.3k
  • 26
  • 199
  • 274

:so %

% holds% refers the current buffers file-namebuffer's filename. This works not just for :source, but for all of the commandline; see :help cmdline-special.

:so %

% holds the current buffers file-name

:so %

% refers the current buffer's filename. This works not just for :source, but for all of the commandline; see :help cmdline-special.

Source Link
Naumann
  • 2.8k
  • 1
  • 11
  • 16

:so %

% holds the current buffers file-name