git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #22739 from Mic92/vam

vim.vam: fix filetype detection

commitd12639cb2853b2c2c6d4dba3357fdf066014a388 authorRobin Gloster <mail@glob.in> dateMon 13 Feb 2017, 15:10 (10 years ago) parent04f72cab7d65f8
1 file changed+6−5
pkgs/misc/vim-plugins/vim-utils.nix+6−5
pkgs/misc/vim-plugins/vim-utils.nix+6−5
@@ -65,8 +65,8 @@ See vimHelpTags sample code below.
6565
6666CONTRIBUTING AND CUSTOMIZING
6767============================
68−The example file pkgs/misc/vim-plugins/default.nix provides both:
69−* manually mantained plugins
68+The example file pkgs/misc/vim-plugins/default.nix provides both:
69+* manually mantained plugins
7070* plugins created by VAM's nix#ExportPluginsForNix implementation
7171
7272I highly recommend to lookup vim plugin attribute names at the [vim-pi] project
@@ -105,7 +105,7 @@ Then ":source %" it.
105105
106106nix#ExportPluginsForNix is provided by ./vim2nix
107107
108−A buffer will open containing the plugin derivation lines as well list
108+A buffer will open containing the plugin derivation lines as well list
109109fitting the vimrcConfig.vam.pluginDictionaries option.
110110
111111Thus the most simple usage would be:
@@ -125,7 +125,7 @@ Thus the most simple usage would be:
125125 vimrcConfig.vam.knownPlugins = vimPlugins;
126126 vimrcConfig.vam.pluginDictionaries = [
127127 # the plugin list form ~/.vim-scripts turned into nix format added to
128− # the buffer created by the nix#ExportPluginsForNix
128+ # the buffer created by the nix#ExportPluginsForNix
129129 ];
130130 }
131131
@@ -262,13 +262,14 @@ let
262262 in writeText "vimrc" ''
263263 " minimal setup, generated by NIX
264264 set nocompatible
265− filetype indent plugin on | syn on
266265
267266 ${vamImpl}
268267 ${pathogenImpl}
269268 ${vundleImpl}
270269 ${neobundleImpl}
271270
271+ filetype indent plugin on | syn on
272+
272273 ${customRC}
273274 '';
274275