russian-typograph.vim 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. " Vim Keymap file for Russian characters
  2. " layout English-US 104 key 'QWERTY'
  3. "
  4. " Maintainer: Restorer <restorer@mail2k.ru>
  5. " Last Changed: 25 Apr 2023
  6. " Version: 3.3
  7. " Description: описание дано после изображений клавиатуры
  8. " Расположение символов для русского языка при подключенном файле с раскладкой
  9. " клавиатуры «русская типографская» (russian-typograph.vim). Версия 3.3
  10. " Ни одна из клавиш модификаторов не нажата
  11. " ,---,---,---,---,---,---,---,---,---,---,---,---,---,-------,
  12. " | % | ! | — | « | » | : | , | . | ? | ( | ) | ‐ | ; | <--- |
  13. " |---'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-----|
  14. " | ->| | й | ц | у | к | е | н | г | ш | щ | з | х | ъ | / |
  15. " |-----',--',--',--',--',--',--',--',--',--',--',--',--'-----|
  16. " | Caps | ф | ы | в | а | п | р | о | л | д | ж | э | Enter |
  17. " |------'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'--------|
  18. " | Shift | я | ч | с | м | и | т | ь | б | ю | ё | Shift |
  19. " |------,-',--'--,'---'---'---'---'---'---'-,-'---',--,------|
  20. " | Ctrl | | Alt | | Alt | | Ctrl |
  21. " '------' '-----'--------------------------'------' '------'
  22. " Нажата клавиша SHIFT
  23. " ,---,---,---,---,---,---,---,---,---,---,---,---,---,-------,
  24. " | = | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | + | <--- |
  25. " |---'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-----|
  26. " | ->| | Й | Ц | У | К | Е | Н | Г | Ш | Щ | З | Х | Ъ | § |
  27. " |-----',--',--',--',--',--',--',--',--',--',--',--',--'-----|
  28. " | Caps | Ф | Ы | В | А | П | Р | О | Л | Д | Ж | Э | Enter |
  29. " |------'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'--------|
  30. " | SHIFT | Я | Ч | С | М | И | Т | Ь | Б | Ю | Ё | SHIFT |
  31. " |------,-',--'--,'---'---'---'---'---'---'-,-'---',--,------|
  32. " | Ctrl | | Alt | | Alt | | Ctrl |
  33. " '------' '-----'--------------------------'------' '------'
  34. " Нажата клавиша ALT
  35. " ,---,---,---,---,---,---,---,---,---,---,---,---,---,-------,
  36. " | ` | № | – | „ | “ | | | … | | | | ‑ | ± | <--- |
  37. " |---'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-----|
  38. " | ->| | | | | | | | | | | | [ | ] | \ |
  39. " |-----',--',--',--',--',--',--',--',--',--',--',--',--'-----|
  40. " | Caps | | | | | | ₽ | | | | | ' | Enter |
  41. " |------'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'--------|
  42. " | Shift | | | | | | | | | | | Shift |
  43. " |------,-',--'--,'---'---'---'---'---'---'-,-'---',--,------|
  44. " | Ctrl | | ALT | NNBSP | ALT | | Ctrl |
  45. " '------' '-----'--------------------------'------' '------'
  46. " Нажаты клавиши SHIFT и ALT
  47. " ,---,---,---,---,---,---,---,---,---,---,---,---,---,-------,
  48. " | ~ | | @ | # | $ | | ^ | & | * | | | _ | | <--- |
  49. " |---'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-----|
  50. " | ->| | | | | | | | | | | | { | } | | |
  51. " |-----',--',--',--',--',--',--',--',--',--',--',--',--'-----|
  52. " | Caps | | | | | | | | | | | " | Enter |
  53. " |------'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'--------|
  54. " | SHIFT | | | | | | | | < | > | | SHIFT |
  55. " |------,-',--'--,'---'---'---'---'---'---'-,-'---',--,------|
  56. " | Ctrl | | ALT | | ALT | | Ctrl |
  57. " '------' '-----'--------------------------'------' '------'
  58. " Нажаты клавиши SHIFT и CTRL
  59. " ,---,---,---,---,---,---,---,---,---,---,---,---,---,-------,
  60. " | | | | | | | | | | | | | | <--- |
  61. " |---'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-----|
  62. " | ->| | | | | | | | | | | | | | |
  63. " |-----',--',--',--',--',--',--',--',--',--',--',--',--'-----|
  64. " | Caps | | | | | | | | | | | | Enter |
  65. " |------'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'--------|
  66. " | SHIFT | | | | | | | | | | | SHIFT |
  67. " |------,-',--'--,'---'---'---'---'---'---'-,-'---',--,------|
  68. " | CTRL | | Alt | NBSP | Alt | | CTRL |
  69. " '------' '-----'--------------------------'------' '------'
  70. " Нажаты клавиши ALT и CTRL
  71. " ,---,---,---,---,---,---,---,---,---,---,---,---,---,-------,
  72. " | | | | | | | | | | | | | | <--- |
  73. " |---'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-----|
  74. " | ->| | | | у́ | | е́ | | | | | | | | |
  75. " |-----',--',--',--',--',--',--',--',--',--',--',--',--'-----|
  76. " | Caps | | ы́ | | а́ | | | о́ | | | | э́ | Enter |
  77. " |------'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'--------|
  78. " | Shift | я́ | | | | и́ | | | | ю́ | | Shift |
  79. " |------,-',--'--,'---'---'---'---'---'---'-,-'---',--,------|
  80. " | CTRL | | ALT | | ALT | | CTRL |
  81. " '------' '-----'--------------------------'------' '------'
  82. " Нажаты клавиши SHIFT, ALT и CTRL
  83. " ,---,---,---,---,---,---,---,---,---,---,---,---,---,-------,
  84. " | | | | | | | | | | | | | | <--- |
  85. " |---'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-----|
  86. " | ->| | | | У́ | | Е́ | | | | | | | | |
  87. " |-----',--',--',--',--',--',--',--',--',--',--',--',--'-----|
  88. " | Caps | | Ы́ | | А́ | | | О́ | | | | Э́ | Enter |
  89. " |------'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'--------|
  90. " | SHIFT | Я́ | | | | И́ | | | | Ю́ | | SHIFT |
  91. " |------,-',--'--,'---'---'---'---'---'---'-,-'---',--,------|
  92. " | CTRL | | ALT | | ALT | | CTRL |
  93. " '------' '-----'--------------------------'------' '------'
  94. " Раскладка сделана на основе раскладки «русская машинопись» (KBDRU1.DLL),
  95. " поставляемой в составе ОС MS Windows.
  96. "
  97. " Как видите, принцип достаточно простой, — при наборе русского текста все
  98. " буквы, знаки пунктуации и большинство специальных символов находятся под
  99. " пальцами и их набор не требует нажатия каких-то дополнительных клавиш. При
  100. " наборе символов, которые отсутствуют в русской раскладке, но есть в раскладке
  101. " US-International, требуется нажать или клавишу <ALT>, если в английской
  102. " раскладке они набираются без модификаторов, или нажать <ALT>+<SHIFT>, если они
  103. " набираются с модификатором <SHIFT>.
  104. " scriptencoding utf-8
  105. let b:keymap_name ="RUS"
  106. loadkeymap
  107. " DIGITAL ROW
  108. " None of the modifier keys are pressed
  109. <char-0x0060> <char-0x0025> " PERCENT SIGN
  110. <char-0x0031> <char-0x0021> " EXCLAMATION MARK
  111. <char-0x0032> <char-0x2014> " EM DASH
  112. <char-0x0033> <char-0x00ab> " LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
  113. <char-0x0034> <char-0x00bb> " RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
  114. <char-0x0035> <char-0x003a> " COLON
  115. <char-0x0036> <char-0x002c> " COMMA
  116. <char-0x0037> <char-0x002e> " FULL STOP
  117. <char-0x0038> <char-0x003f> " QUESTION MARK
  118. <char-0x0039> <char-0x0028> " LEFT PARENTHESIS
  119. <char-0x0030> <char-0x0029> " RIGHT PARENTHESIS
  120. <char-0x002d> <char-0x2010> " HYPHEN
  121. <char-0x003d> <char-0x003b> " SEMICOLON
  122. " The SHIFT key is pressed
  123. <char-0x007e> <char-0x003d> " EQUALS SIGN
  124. <char-0x0021> <char-0x0031> " DIGIT ONE
  125. <char-0x0040> <char-0x0032> " DIGIT TWO
  126. <char-0x0023> <char-0x0033> " DIGIT THREE
  127. <char-0x0024> <char-0x0034> " DIGIT FOUR
  128. <char-0x0025> <char-0x0035> " DIGIT FIVE
  129. <char-0x005e> <char-0x0036> " DIGIT SIX
  130. <char-0x0026> <char-0x0037> " DIGIT SEVEN
  131. <char-0x002a> <char-0x0038> " DIGIT EIGHT
  132. <char-0x0028> <char-0x0039> " DIGIT NINE
  133. <char-0x0029> <char-0x0030> " DIGIT ZERO
  134. <char-0x005f> <char-0x002d> " HYPHEN-MINUS
  135. <char-0x002b> <char-0x002b> " PLUS SIGN
  136. " The ALT key pressed
  137. <A-char-0x0060> <char-0x0060> " GRAVE ACCENT
  138. <A-char-0x0031> <char-0x2116> " NUMERO SIGN
  139. <A-char-0x0032> <char-0x2013> " EN DASH
  140. <A-char-0x0033> <char-0x201e> " DOUBLE LOW-9 QUOTATION MARK
  141. <A-char-0x0034> <char-0x201c> " LEFT DOUBLE QUOTATION MARK
  142. <A-char-0x0037> <char-0x2026> " HORIZONTAL ELLIPSIS
  143. <A-char-0x002d> <char-0x2011> " NON-BREAKING HYPHEN
  144. <A-char-0x003d> <char-0x00b1> " PLUS-MINUS SIGN
  145. " The SHIFT and ALT keys pressed
  146. <A-char-0x007e> <char-0x007e> " TILDE
  147. <A-char-0x0040> <char-0x0040> " COMMERCIAL AT
  148. <A-char-0x0023> <char-0x0023> " NUMBER SIGN
  149. <A-char-0x0024> <char-0x0024> " DOLLAR SIGN
  150. <A-char-0x005e> <char-0x005e> " CIRCUMFLEX ACCENT
  151. <A-char-0x0026> <char-0x0026> " AMPERSAND
  152. <A-char-0x002a> <char-0x002a> " ASTERISK
  153. <A-char-0x005f> <char-0x005f> " LOW LINE
  154. " ALPHABETICAL 1st ROW
  155. " None of the modifier keys are pressed
  156. <char-0x0071> <char-0x0439> " CYRILLIC SMALL LETTER SHORT I
  157. <char-0x0077> <char-0x0446> " CYRILLIC SMALL LETTER TSE
  158. <char-0x0065> <char-0x0443> " CYRILLIC SMALL LETTER U
  159. <char-0x0072> <char-0x043a> " CYRILLIC SMALL LETTER KA
  160. <char-0x0074> <char-0x0435> " CYRILLIC SMALL LETTER IE
  161. <char-0x0079> <char-0x043d> " CYRILLIC SMALL LETTER EN
  162. <char-0x0075> <char-0x0433> " CYRILLIC SMALL LETTER GHE
  163. <char-0x0069> <char-0x0448> " CYRILLIC SMALL LETTER SHA
  164. <char-0x006f> <char-0x0449> " CYRILLIC SMALL LETTER SHCHA
  165. <char-0x0070> <char-0x0437> " CYRILLIC SMALL LETTER ZE
  166. <char-0x005b> <char-0x0445> " CYRILLIC SMALL LETTER HA
  167. <char-0x005d> <char-0x044a> " CYRILLIC SMALL LETTER HARD SIGN
  168. " The SHIFT key is pressed
  169. <char-0x0051> <char-0x0419> " CYRILLIC CAPITAL LETTER SHORT I
  170. <char-0x0057> <char-0x0426> " CYRILLIC CAPITAL LETTER TSE
  171. <char-0x0045> <char-0x0423> " CYRILLIC CAPITAL LETTER U
  172. <char-0x0052> <char-0x041a> " CYRILLIC CAPITAL LETTER KA
  173. <char-0x0054> <char-0x0415> " CYRILLIC CAPITAL LETTER IE
  174. <char-0x0059> <char-0x041d> " CYRILLIC CAPITAL LETTER EN
  175. <char-0x0055> <char-0x0413> " CYRILLIC CAPITAL LETTER GHE
  176. <char-0x0049> <char-0x0428> " CYRILLIC CAPITAL LETTER SHA
  177. <char-0x004f> <char-0x0429> " CYRILLIC CAPITAL LETTER SHCHA
  178. <char-0x0050> <char-0x0417> " CYRILLIC CAPITAL LETTER ZE
  179. <char-0x007b> <char-0x0425> " CYRILLIC CAPITAL LETTER HA
  180. <char-0x007d> <char-0x042a> " CYRILLIC CAPITAL LETTER HARD SIGN
  181. " The ALT key pressed
  182. <A-char-0x005b> <char-0x005b> " LEFT SQUARE BRACKET
  183. <A-char-0x005d> <char-0x005d> " RIGHT SQUARE BRACKET
  184. " The SHIFT and ALT keys pressed
  185. <A-char-0x007b> <char-0x007b> " LEFT CURLY BRACKET
  186. <A-char-0x007d> <char-0x007d> " RIGHT CURLY BRACKET
  187. " The ALT and CTRL key pressed
  188. <A-C-char-0x0065> <char-0x0443><char-0x0301> " CYRILLIC SMALL LETTER U with COMBINING ACUTE ACCENT
  189. <A-C-char-0x0074> <char-0x0435><char-0x0301> " CYRILLIC SMALL LETTER IE with COMBINING ACUTE ACCENT
  190. " The SHIFT and ALT and CTRL keys pressed
  191. <S-A-C-char-0x0045> <char-0x0423><char-0x0301> " CYRILLIC CAPITAL LETTER U with COMBINING ACUTE ACCENT
  192. <S-A-C-char-0x0054> <char-0x0415><char-0x0301> " CYRILLIC CAPITAL LETTER IE with COMBINING ACUTE ACCENT
  193. " ALPHABETIC 2st ROW
  194. " None of the modifier keys are pressed
  195. <char-0x0061> <char-0x0444> " CYRILLIC SMALL LETTER EF
  196. <char-0x0073> <char-0x044b> " CYRILLIC SMALL LETTER YERU
  197. <char-0x0064> <char-0x0432> " CYRILLIC SMALL LETTER VE
  198. <char-0x0066> <char-0x0430> " CYRILLIC SMALL LETTER A
  199. <char-0x0067> <char-0x043f> " CYRILLIC SMALL LETTER PE
  200. <char-0x0068> <char-0x0440> " CYRILLIC SMALL LETTER ER
  201. <char-0x006a> <char-0x043e> " CYRILLIC SMALL LETTER O
  202. <char-0x006b> <char-0x043b> " CYRILLIC SMALL LETTER EL
  203. <char-0x006c> <char-0x0434> " CYRILLIC SMALL LETTER DE
  204. <char-0x003b> <char-0x0436> " CYRILLIC SMALL LETTER ZHE
  205. <char-0x0027> <char-0x044d> " CYRILLIC SMALL LETTER E
  206. " The SHIFT key is pressed
  207. <char-0x0041> <char-0x0424> " CYRILLIC CAPITAL LETTER EF
  208. <char-0x0053> <char-0x042b> " CYRILLIC CAPITAL LETTER YERU
  209. <char-0x0044> <char-0x0412> " CYRILLIC CAPITAL LETTER VE
  210. <char-0x0046> <char-0x0410> " CYRILLIC CAPITAL LETTER A
  211. <char-0x0047> <char-0x041f> " CYRILLIC CAPITAL LETTER PE
  212. <char-0x0048> <char-0x0420> " CYRILLIC CAPITAL LETTER ER
  213. <char-0x004a> <char-0x041e> " CYRILLIC CAPITAL LETTER O
  214. <char-0x004b> <char-0x041b> " CYRILLIC CAPITAL LETTER EL
  215. <char-0x004c> <char-0x0414> " CYRILLIC CAPITAL LETTER DE
  216. <char-0x003a> <char-0x0416> " CYRILLIC CAPITAL LETTER ZHE
  217. <char-0x0022> <char-0x042d> " CYRILLIC CAPITAL LETTER E
  218. " The ALT key pressed
  219. <A-char-0x0027> <char-0x0027> " APOSTROPHE
  220. <A-char-0x0068> <char-0x20bd> " RUBLE SIGN
  221. " The SHIFT and ALT keys pressed
  222. <A-char-0x0022> <char-0x0022> " QUOTATION MARK
  223. " The ALT and CTRL key pressed
  224. <A-C-char-0x0073> <char-0x044b><char-0x0301> " CYRILLIC SMALL LETTER YERU with COMBINING ACUTE ACCENT
  225. <A-C-char-0x0066> <char-0x0430><char-0x0301> " CYRILLIC SMALL LETTER A with COMBINING ACUTE ACCENT
  226. <A-C-char-0x006a> <char-0x043e><char-0x0301> " CYRILLIC SMALL LETTER O with COMBINING ACUTE ACCENT
  227. <A-C-char-0x0027> <char-0x044d><char-0x0301> " CYRILLIC SMALL LETTER E with COMBINING ACUTE ACCENT
  228. " The SHIFT and ALT and CTRL keys pressed
  229. <S-A-C-char-0x0053> <char-0x042b><char-0x0301> " CYRILLIC CAPITAL LETTER YERU with COMBINING ACUTE ACCENT
  230. <S-A-C-char-0x0046> <char-0x0410><char-0x0301> " CYRILLIC CAPITAL LETTER A with COMBINING ACUTE ACCENT
  231. <S-A-C-char-0x004a> <char-0x041e><char-0x0301> " CYRILLIC CAPITAL LETTER O with COMBINING ACUTE ACCENT
  232. <S-A-C-char-0x0022> <char-0x042d><char-0x0301> " CYRILLIC CAPITAL LETTER E with COMBINING ACUTE ACCENT
  233. " ALPHABETIC 3st ROW
  234. " None of the modifier keys are pressed
  235. <char-0x007a> <char-0x044f> " CYRILLIC SMALL LETTER YA
  236. <char-0x0078> <char-0x0447> " CYRILLIC SMALL LETTER CHE
  237. <char-0x0063> <char-0x0441> " CYRILLIC SMALL LETTER ES
  238. <char-0x0076> <char-0x043c> " CYRILLIC SMALL LETTER EM
  239. <char-0x0062> <char-0x0438> " CYRILLIC SMALL LETTER I
  240. <char-0x006e> <char-0x0442> " CYRILLIC SMALL LETTER TE
  241. <char-0x006d> <char-0x044c> " CYRILLIC SMALL LETTER SOFT SIGN
  242. <char-0x002c> <char-0x0431> " CYRILLIC SMALL LETTER BE
  243. <char-0x002e> <char-0x044e> " CYRILLIC SMALL LETTER YU
  244. <char-0x002f> <char-0x0451> " CYRILLIC SMALL LETTER IO
  245. " The SHIFT key is pressed
  246. <char-0x005a> <char-0x042f> " CYRILLIC CAPITAL LETTER YA
  247. <char-0x0058> <char-0x0427> " CYRILLIC CAPITAL LETTER CHE
  248. <char-0x0043> <char-0x0421> " CYRILLIC CAPITAL LETTER ES
  249. <char-0x0056> <char-0x041c> " CYRILLIC CAPITAL LETTER EM
  250. <char-0x0042> <char-0x0418> " CYRILLIC CAPITAL LETTER I
  251. <char-0x004e> <char-0x0422> " CYRILLIC CAPITAL LETTER TE
  252. <char-0x004d> <char-0x042c> " CYRILLIC CAPITAL LETTER SOFT SIGN
  253. <char-0x003c> <char-0x0411> " CYRILLIC CAPITAL LETTER BE
  254. <char-0x003e> <char-0x042e> " CYRILLIC CAPITAL LETTER YU
  255. <char-0x003f> <char-0x0401> " CYRILLIC CAPITAL LETTER IO
  256. " The ALT key pressed
  257. " The SHIFT and ALT keys pressed
  258. <A-char-0x003c> <char-0x003c> " LESS-THAN SIGN
  259. <A-char-0x003e> <char-0x003e> " GREATER-THAN SIGN
  260. " The ALT and CTRL key pressed
  261. <A-C-char-0x007a> <char-0x044f><char-0x0301> " CYRILLIC SMALL LETTER YA with COMBINING ACUTE ACCENT
  262. <A-C-char-0x0062> <char-0x0438><char-0x0301> " CYRILLIC SMALL LETTER I with COMBINING ACUTE ACCENT
  263. <A-C-char-0x002e> <char-0x044e><char-0x0301> " CYRILLIC SMALL LETTER YU with COMBINING ACUTE ACCENT
  264. " The SHIFT and ALT and CTRL keys pressed
  265. <S-A-C-char-0x005a> <char-0x042f><char-0x0301> " CYRILLIC CAPITAL LETTER YA with COMBINING ACUTE ACCENT
  266. <S-A-C-char-0x0042> <char-0x0418><char-0x0301> " CYRILLIC CAPITAL LETTER I with COMBINING ACUTE ACCENT
  267. <S-A-C-char-0x003e> <char-0x042e><char-0x0301> " CYRILLIC CAPITAL LETTER Y with COMBINING ACUTE ACCENT
  268. " VK_OEM_5 key (scan code 2b)
  269. " None of the modifier keys are pressed
  270. <char-0x005c> <char-0x002f> " SOLIDUS
  271. " The SHIFT key is pressed
  272. <char-0x007c> <char-0x00a7> " SECTION SIGN
  273. " The ALT key is pressed
  274. <A-char-0x005c> <char-0x005c> " REVERSE SOLIDUS
  275. " The SHIFT and ALT keys pressed
  276. <A-char-0x007c> <char-0x007c> " VERTICAL LINE
  277. " SPACE BAR key
  278. " The ALT key pressed
  279. <A-char-0x0020> <char-0x202f> " NARROW NO-BREAK SPACE
  280. " The SHIFT and CTRL keys pressed
  281. <S-C-char-0x0020> <char-0x00A0> " NO-BREAK SPACE
  282. " \///\\