Revision | 41b7a1a4a1dd39b483137990642c6b1fe304c688 (tree) |
---|---|
Time | 2023-04-26 18:29:29 |
Author | badcoff33 |
Commiter | badcoff33 |
use Sphinx spec for headings
@@ -8,11 +8,21 @@ | ||
8 | 8 | setlocal tabstop=4 |
9 | 9 | setlocal shiftwidth=0 " carry over from 'tabstop' |
10 | 10 | |
11 | -" Make heading underlined | |
12 | -nnoremap <buffer> <LocalLeader>h1 yyppkkVr=jjVr=} | |
13 | -nnoremap <buffer> <LocalLeader>h2 yyppkkVr-jjVr-} | |
14 | -nnoremap <buffer> <LocalLeader>h3 0v$beyo<Esc>PVr~} | |
11 | +" Make heading overlined/underlined | |
12 | +" following the Sphinx recommenadation, "Section" | |
13 | +" https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html | |
14 | +" 1 # with overline, for parts | |
15 | +" 2 * with overline, for chapters | |
16 | +" 3 = for sections | |
17 | +" 4 - for subsections | |
18 | +" 5 ^ for subsubsections | |
19 | +" 6 " for paragraphs | |
20 | +nnoremap <buffer> <LocalLeader>h1 yyppkkVr#jjVr#} | |
21 | +nnoremap <buffer> <LocalLeader>h2 yyppkkVr*jjVr*} | |
22 | +nnoremap <buffer> <LocalLeader>h3 0v$beyo<Esc>PVr=} | |
23 | +nnoremap <buffer> <LocalLeader>h4 0v$beyo<Esc>PVr-} | |
15 | 24 | nnoremap <buffer> <LocalLeader>h4 0v$beyo<Esc>PVr^} |
25 | +nnoremap <buffer> <LocalLeader>h4 0v$beyo<Esc>PVr"} | |
16 | 26 | |
17 | 27 | " Toggle between TODO and DONE |
18 | 28 | nnoremap <buffer> <LocalLeader>x :call gtd#ToggleTodo()<CR> |