From 911c1cde00917100a68ba122a8ad647b179a91c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Mon, 9 Mar 2015 21:18:05 +0100 Subject: [PATCH] Added type-specific configuration stuff --- ftplugin/c.vim | 3 +++ ftplugin/cpp.vim | 3 +++ ftplugin/glsl.vim | 3 +++ ftplugin/pascal.vim | 4 ++++ ftplugin/perl.vim | 4 ++++ ftplugin/python.vim | 7 +++++++ ftplugin/qf.vim | 7 +++++++ ftplugin/vim.vim | 1 + 8 files changed, 32 insertions(+) create mode 100644 ftplugin/c.vim create mode 100644 ftplugin/cpp.vim create mode 100644 ftplugin/glsl.vim create mode 100644 ftplugin/pascal.vim create mode 100644 ftplugin/perl.vim create mode 100644 ftplugin/python.vim create mode 100644 ftplugin/qf.vim create mode 100644 ftplugin/vim.vim diff --git a/ftplugin/c.vim b/ftplugin/c.vim new file mode 100644 index 0000000..eb54376 --- /dev/null +++ b/ftplugin/c.vim @@ -0,0 +1,3 @@ +setlocal colorcolumn=81 +setlocal smartindent +setlocal cindent diff --git a/ftplugin/cpp.vim b/ftplugin/cpp.vim new file mode 100644 index 0000000..eb54376 --- /dev/null +++ b/ftplugin/cpp.vim @@ -0,0 +1,3 @@ +setlocal colorcolumn=81 +setlocal smartindent +setlocal cindent diff --git a/ftplugin/glsl.vim b/ftplugin/glsl.vim new file mode 100644 index 0000000..eb54376 --- /dev/null +++ b/ftplugin/glsl.vim @@ -0,0 +1,3 @@ +setlocal colorcolumn=81 +setlocal smartindent +setlocal cindent diff --git a/ftplugin/pascal.vim b/ftplugin/pascal.vim new file mode 100644 index 0000000..b749024 --- /dev/null +++ b/ftplugin/pascal.vim @@ -0,0 +1,4 @@ +setlocal ts=2 +setlocal sts=2 +setlocal sw=2 +setlocal expandtab diff --git a/ftplugin/perl.vim b/ftplugin/perl.vim new file mode 100644 index 0000000..c16d17e --- /dev/null +++ b/ftplugin/perl.vim @@ -0,0 +1,4 @@ +setlocal tabstop=4 +setlocal shiftwidth=4 +setlocal textwidth=80 +setlocal smarttab diff --git a/ftplugin/python.vim b/ftplugin/python.vim new file mode 100644 index 0000000..1a7bc67 --- /dev/null +++ b/ftplugin/python.vim @@ -0,0 +1,7 @@ +setlocal tabstop=4 +setlocal softtabstop=4 +setlocal shiftwidth=4 +setlocal textwidth=80 +setlocal smarttab +setlocal expandtab +setlocal nosmartindent diff --git a/ftplugin/qf.vim b/ftplugin/qf.vim new file mode 100644 index 0000000..943ee1e --- /dev/null +++ b/ftplugin/qf.vim @@ -0,0 +1,7 @@ +setlocal colorcolumn=0 +setlocal nolist +setlocal cursorline +setlocal nowrap +setlocal tw=0 +setlocal nonumber +wincmd J " That's for when it spawns inside the tagbar diff --git a/ftplugin/vim.vim b/ftplugin/vim.vim new file mode 100644 index 0000000..60b6b78 --- /dev/null +++ b/ftplugin/vim.vim @@ -0,0 +1 @@ +nnoremap r :execute getline('.')