Hello,
I am trying to package the vim script haskell-mode [1] for NixOS. The
revelevant part of my Nix expression is the following
phases = [ installPhase ];
buildInputs = [ vim ];
installPhase = ''
VIMDIR=$(ls ${vim}/share/vim)
ensureDir share/vim/$VIMDIR
cd share/vim/$VIMDIR
vim
Hi Alexander Foremny,
vim -c so % | qa $src
What should it do?
so = source
% = current buf - which buf?
first, learn to listen. On irc I gave a tip:
lookup at vim-addon-manager which contains this code:
elseif s:EndsWith(a:archive, '.vba','.vmb')
.vba reuse vimball#Vimball() function
vim -c so % | qa $src
Open any arbitrary vba file and you'll see:
Vimball Archiver by Charles E. Campbell, Jr., Ph.D.
UseVimball
finish
Thus a .vba file is a file containing viml code itself. And I'm sure
you'll understand both: UseVimball and finish.
Because % refers to the