git.iko.soy/typeable/nixpkgs
on master help sign in
vim.vam: fix filetype detection

According to https://github.com/MarcWeber/vim-addon-manager/blob/master/doc/vim-addon-manager-additional-documentation.txt#L1310 `filetype on` must be called after all VAM plugins are initialized. Otherwise vim set `conf` filetype for some files containing hash tags.

commitb7d65f8af0fa6422b1f6fae492ed02aeca633825 authorJörg Thalheim <joerg@higgsboson.tk> dateMon 13 Feb 2017, 00:53 (10 years ago) parent6b2ea7e
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