git.iko.soy/typeable/nixpkgs
on master help sign in
vim: idiomatic nix filetype plugin

* Never modify tabstop. This causes incompatibilities with other utilities that expect tabs to always be 8 spaces. * Add standard boilerplate for system-level filetype plugins.

commit94fd34a31b9228d20c66fbf6815b81354b5091a4 authorBryan Richter <b@chreekat.net> dateFri 20 Apr 2018, 10:39 (9 years ago) parent951d6a9
1 file changed+8−1
pkgs/applications/editors/vim/ft-nix-support.patch+8−1
pkgs/applications/editors/vim/ft-nix-support.patch+8−1
@@ -85,5 +85,12 @@ new file mode 100644
8585--- /dev/null
8686+++ b/runtime/ftplugin/nix.vim
8787@@ -0,0 +1,2 @@
88++" Only do this when not done yet for this buffer
89++if exists("b:did_ftplugin")
90++ finish
91++endif
92++let b:did_ftplugin = 1
93++
8894+" coding conventions
89−+setlocal sw=2 ts=2 expandtab
95++setlocal shiftwidth=2 expandtab
96++let b:undo_ftplugin = "setlocal sw< et<"