File: vim.mode

package info (click to toggle)
debian-reference 2.128
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,588 kB
  • sloc: python: 586; makefile: 572; sh: 526; sed: 80
file content (19 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# vim modeline commands

# find bullets
s/^\([ ]*[-.*0-9]\+\) \+\(.*[^ .]\)[. ]*$

# capitalize list to (imprrative) sentence
s/^\([ ]*[-.*0-9]\+\) \+\(.*[^ .]\)[. ]*$/\1 \u\2./

# lowercase list to (infinitive) phrases
s/^\([ ]*[-.*0-9]\+\) \+\(.*[^ .]\)[., ]*$/\1 \l\2/c

# remove tailing spaces
s/^\(.*[^ ]\) *$/\1/c

# change tailing period etc. to nothing
s/[.;,:]\+ *$//c

## make imperative lists
##s/^\(- \| \* \) *\(.*\)$/\1\u\2./c