]> git.rmz.io Git - dotfiles.git/commitdiff
vim: add snippet to disable clang formatting
authorSamir Benmendil <me@rmz.io>
Sun, 1 Mar 2020 22:53:06 +0000 (22:53 +0000)
committerSamir Benmendil <me@rmz.io>
Mon, 2 Mar 2020 00:58:42 +0000 (00:58 +0000)
vim/ultisnips/c.snippets

index 864d0cae9cc2cd8626d5704bff669607e167d73d..62d2509e34e348758bbca4b1ec6b01dbf8a8f33b 100644 (file)
@@ -26,3 +26,9 @@ if (${1:/* condition */}) {
        ${3:/* else */}
 }
 endsnippet
        ${3:/* else */}
 }
 endsnippet
+
+snippet clangformat "Disable clang-format"
+// clang-format: off
+${VISUAL}${0}
+// clang-format: on
+endsnippet