Vim: Difference between revisions

imported>Leonardp
m added examples for global vim/nvim
imported>Louwers
Delete VAM section (abandoned)
Line 94: Line 94:
};
};
</syntaxHighlight>
</syntaxHighlight>
==== Using VAM as manager ====
You can add this to you nix configuration to get vim with custom <code>.vimrc</code> and listed plugins.
<syntaxHighlight lang="nix">
vim_configurable.customize {
  name = "vim-with-plugins";
  vimrcConfig.vam.knownPlugins = pkgs.vimPlugins; # optional
  vimrcConfig.vam.pluginDictionaries = [
    # load always
    { name = "youcompleteme"; }
    { names = [ "youcompleteme" "foo" ]; }
    # only load when opening a .php file
    { name = "phpCompletion"; ft_regex = "^php\$"; }
    { name = "phpCompletion"; filename_regex = "^.php\$"; }
    # provide plugin which can be loaded manually:
    { name = "phpCompletion"; tag = "lazy"; }
  ];
};
</syntaxHighlight>
Full documentation at [https://github.com/MarcWeber/vim-addon-manager VAM homepage].


=== Using Pathogen as manager ===
=== Using Pathogen as manager ===