From 1b6ec60917a902d9d7818224658344f85d035449 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 22 Jan 2019 08:29:04 +0000 Subject: [PATCH] Adds i3 config syntax and makes i3 config file fold --- .gitmodules | 3 +++ .vimrc | 6 ++++++ bundle/i3config.vim | 1 + 3 files changed, 10 insertions(+) create mode 160000 bundle/i3config.vim diff --git a/.gitmodules b/.gitmodules index f64306b..f5502bb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -66,3 +66,6 @@ path = bundle/wordpress.vim url = https://github.com/DArcMattr/wordpress.vim branch = universal-ctags +[submodule "bundle/i3config.vim"] + path = bundle/i3config.vim + url = https://github.com/mboughaba/i3config.vim diff --git a/.vimrc b/.vimrc index 0c3f5ea..38bbb12 100644 --- a/.vimrc +++ b/.vimrc @@ -519,6 +519,12 @@ augroup latex autocmd FileType tex,latex vnoremap P :!pandoc -t markdown -f latex --wrap=preserve --atx-headers augroup END +" Make vim fold using markers {{{2 +augroup file_i3 + autocmd! + autocmd FileType i3config setlocal foldmethod=marker foldenable +augroup END + " Make vim fold using markers {{{2 augroup file_vim autocmd! diff --git a/bundle/i3config.vim b/bundle/i3config.vim new file mode 160000 index 0000000..ae9f8a6 --- /dev/null +++ b/bundle/i3config.vim @@ -0,0 +1 @@ +Subproject commit ae9f8a6073c31e385445b0a98db3fc9051dd5ecd