• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision41b7a1a4a1dd39b483137990642c6b1fe304c688 (tree)
Time2023-04-26 18:29:29
Authorbadcoff33
Commiterbadcoff33

Log Message

use Sphinx spec for headings

Change Summary

Incremental Difference

diff -r 9aeb4a653cee -r 41b7a1a4a1dd after/ftplugin/rst.vim
--- a/after/ftplugin/rst.vim Tue Apr 25 12:18:39 2023 +0200
+++ b/after/ftplugin/rst.vim Wed Apr 26 11:29:29 2023 +0200
@@ -8,11 +8,21 @@
88 setlocal tabstop=4
99 setlocal shiftwidth=0 " carry over from 'tabstop'
1010
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-}
1524 nnoremap <buffer> <LocalLeader>h4 0v$beyo<Esc>PVr^}
25+nnoremap <buffer> <LocalLeader>h4 0v$beyo<Esc>PVr"}
1626
1727 " Toggle between TODO and DONE
1828 nnoremap <buffer> <LocalLeader>x :call gtd#ToggleTodo()<CR>