I know that to source my current file I need to do this:
:so ~/.vimrc
But is it possible to source the current file without mentioning its name?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this community:so %
%
refers the current buffer's filename. This works not just for :source
, but for all of the commandline; see :help cmdline-special
.