Vim: Difference between revisions

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