aboutsummaryrefslogtreecommitdiffhomepage
path: root/.vim/my/indent
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-11-13 12:53:52 +0900
committernsfisis <nsfisis@gmail.com>2021-11-13 12:53:52 +0900
commit74683ee2259e5eafc3960e4ba177f9c860026d1e (patch)
tree525e7d98aa4587b9784e1d2d275f47cb9071d50f /.vim/my/indent
parent4cb2a109087addfaf20c5c4f0202f68e3e2c6d88 (diff)
downloaddotfiles-74683ee2259e5eafc3960e4ba177f9c860026d1e.tar.gz
dotfiles-74683ee2259e5eafc3960e4ba177f9c860026d1e.tar.zst
dotfiles-74683ee2259e5eafc3960e4ba177f9c860026d1e.zip
.vim: rm filetype todolist
Diffstat (limited to '.vim/my/indent')
-rw-r--r--.vim/my/indent/todolist.vim32
1 files changed, 0 insertions, 32 deletions
diff --git a/.vim/my/indent/todolist.vim b/.vim/my/indent/todolist.vim
deleted file mode 100644
index 0640a93..0000000
--- a/.vim/my/indent/todolist.vim
+++ /dev/null
@@ -1,32 +0,0 @@
-if exists('b:did_indent')
- finish
-endif
-
-
-setlocal indentexpr=TodolistIndent()
-
-
-function! TodolistIndent()
- if v:lnum == 0
- return 0
- endif
-
- let line = getline(v:lnum - 1)
- if s:starts_with_checkbox(line)
- return indent(v:lnum - 1)
- else
- return 0
- endif
-endfunction
-
-
-function! s:starts_with_checkbox(line)
- if a:line =~# '^\s*\[[ x]\]'
- return 1
- else
- return 0
- endif
-endfunction
-
-
-let b:did_indent = 1