git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #39260 from chreekat/idiomatic-vim-ft-plugin

vim: idiomatic nix filetype plugin

commit313b5fce7b8eea04029566c22891d8159b91df2c authorDaiderd Jordan <daiderd@gmail.com> dateSun 22 Apr 2018, 00:25 (9 years ago) parentc6e575c16bfd5a
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 softtabstop=2
96++let b:undo_ftplugin = "setlocal sw< et< sts<"