motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit ab4b37f01e407877559ee335dfa94cf7cd407f38 (tree)
parent 268c9c1b4403b197ba28960fbf57eb7c64d5f2ef
Author: Steven Oliver <oliver.steven@gmail.com>
Date:   Mon, 16 Oct 2017 15:14:44 -0400

Add file extensions

* Also ensure that only the zig filetype plugin is loaded
  when opening a zig source file.

Diffstat:
Mftplugin/zig.vim | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/ftplugin/zig.vim b/ftplugin/zig.vim @@ -1,5 +1,13 @@ +" Only do this when not done yet for this buffer +if (exists("b:did_ftplugin")) + finish +endif + +let b:did_ftplugin = 1 + set expandtab set tabstop=4 set shiftwidth=4 +setlocal suffixesadd=.zig setlocal commentstring=//\ %s