aboutsummaryrefslogtreecommitdiff
path: root/vim.dot.link/ftplugin
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-28 19:33:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-28 19:33:41 -0300
commit42c2637b1e7a420e5e5017f6fc32c6a9c4b8b252 (patch)
treec92c263fdb5b95ea020186cf893b2a51e78ebb35 /vim.dot.link/ftplugin
parent91baa371aaf7cfa58496f97405ae6b5c040ab8e4 (diff)
downloadvim-42c2637b1e7a420e5e5017f6fc32c6a9c4b8b252.tar.gz
vim-42c2637b1e7a420e5e5017f6fc32c6a9c4b8b252.tar.bz2
Feat: use ftplugin
Diffstat (limited to 'vim.dot.link/ftplugin')
-rw-r--r--vim.dot.link/ftplugin/mail.vim5
-rw-r--r--vim.dot.link/ftplugin/markdown.vim20
-rw-r--r--vim.dot.link/ftplugin/php.vim2
-rw-r--r--vim.dot.link/ftplugin/python.vim2
4 files changed, 29 insertions, 0 deletions
diff --git a/vim.dot.link/ftplugin/mail.vim b/vim.dot.link/ftplugin/mail.vim
new file mode 100644
index 0000000..f21ff9c
--- /dev/null
+++ b/vim.dot.link/ftplugin/mail.vim
@@ -0,0 +1,5 @@
+" Mail
+"
+" Workaround for mail editing. There must be a plugin enabling autoindent in
+" mail composition, which is annoying.
+set noautoindent
diff --git a/vim.dot.link/ftplugin/markdown.vim b/vim.dot.link/ftplugin/markdown.vim
new file mode 100644
index 0000000..99d0ed3
--- /dev/null
+++ b/vim.dot.link/ftplugin/markdown.vim
@@ -0,0 +1,20 @@
+" Markdown configuration
+
+" Markdown configuration without vim-markdown plugin
+"
+" Include folding setup:
+" https://github.com/masukomi/vim-markdown-folding
+"
+" Alternative folding method:
+" https://codereview.stackexchange.com/questions/202620/vim-plugin-for-folding-markdown-lists
+set foldexpr=NestedMarkdownFolds()
+set autoindent smartindent tabstop=2 softtabstop=2 shiftwidth=2
+set expandtab formatoptions=tcroqn2 comments=n:>
+
+" Markdown configuration with vim-markdown plugin
+"set autoindent smartindent tabstop=2 softtabstop=2 shiftwidth=2 expandtab formatoptions=tcroqn2 comments=n:>
+"let g:vim_markdown_new_list_item_indent = 2
+"let g:vim_markdown_folding_style_pythonic = 1
+"let g:vim_markdown_folding_level = 1
+"let g:vim_markdown_auto_insert_bullets = 0
+"let g:vim_markdown_new_list_item_indent = 0
diff --git a/vim.dot.link/ftplugin/php.vim b/vim.dot.link/ftplugin/php.vim
new file mode 100644
index 0000000..9892f83
--- /dev/null
+++ b/vim.dot.link/ftplugin/php.vim
@@ -0,0 +1,2 @@
+" PHP
+let php_sql_query=1
diff --git a/vim.dot.link/ftplugin/python.vim b/vim.dot.link/ftplugin/python.vim
new file mode 100644
index 0000000..3e27472
--- /dev/null
+++ b/vim.dot.link/ftplugin/python.vim
@@ -0,0 +1,2 @@
+" Python
+set autoindent smartindent tabstop=4 softtabstop=4 shiftwidth=4 expandtab