Ondřej Súkup
ab99f07abc
- refresh vim-7.3-mktemp_tutor.patch * 9.1.0908: not possible to configure :messages * 9.1.0907: printoptions:portrait does not change postscript Orientation * runtime(doc): Add vietnamese.txt to helps main TOC * 9.1.0906: filetype: Nvidia PTX files are not recognized * runtime(doc): updated version9.txt with changes from v9.1.0905 * 9.1.0905: Missing information in CompleteDone event * 9.1.0904: Vim9: copy-paste error in class_defining_member() * 9.1.0903: potential overflow in spell_soundfold_wsal() * runtime(netrw): do not detach when launching external programs in gvim * runtime(doc): make tag alignment more consistent in filetype.txt * runtime(doc): fix wrong syntax and style of vietnamese.txt * translation(it): update Italian manpage for vimtutor * runtime(lua): add optional lua function folding * Filelist: include translations for Chapter 2 tutor * translation(vi): Update Vietnamese translation * runtime(doc): include vietnamese.txt * runtime(tutor): fix another typo in tutor2 * runtime(doc): fix typo in vimtutor manpage * translation(it): update Italian manpage for vimtutor * translation(it): include Italian version of tutor chapter 2 * runtime(tutor): regenerated some translated tutor1 files * runtime(tutor): fix typo in Chapter 2 * 9.1.0902: filetype: Conda configuration files are not recognized * runtime(doc): Tweak documentation style a bit * runtime(tutor): update the tutor files and re-number the chapters * runtime(tutor): Update the makefiles for tutor1 and tutor2 files * 9.1.0901: MS-Windows: vimtutor batch script can be improved * runtime(doc): remove buffer-local completeopt todo item OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=869
45 lines
1.1 KiB
Diff
45 lines
1.1 KiB
Diff
Index: vim-8.2.2411/runtime/gvimrc_example.vim
|
|
===================================================================
|
|
--- vim-8.2.2411.orig/runtime/gvimrc_example.vim
|
|
+++ vim-8.2.2411/runtime/gvimrc_example.vim
|
|
@@ -15,9 +15,6 @@
|
|
" Make external commands work through a pipe instead of a pseudo-tty
|
|
"set noguipty
|
|
|
|
-" set the X11 font to use
|
|
-" set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
|
|
-
|
|
set ch=2 " Make command line two lines high
|
|
|
|
set mousehide " Hide the mouse when typing text
|
|
@@ -53,3 +50,29 @@ if version >= 500
|
|
highlight Special gui=NONE guibg=grey95
|
|
|
|
endif
|
|
+
|
|
+" Determine the LC_CTYPE locale category setting and try to set guifontset accordingly:
|
|
+
|
|
+let tmplang = $LC_ALL
|
|
+if tmplang =~ "^$"
|
|
+ let tmplang = $LC_CTYPE
|
|
+endif
|
|
+if tmplang =~ "^$"
|
|
+ let tmplang = $LANG
|
|
+endif
|
|
+if tmplang =~ "^$"
|
|
+ let tmplang = "en_US"
|
|
+endif
|
|
+
|
|
+if tmplang =~ "^ko"
|
|
+ set guifont=Luxi\ Mono
|
|
+elseif tmplang =~ "^ja"
|
|
+ set guifont=Luxi\ Mono
|
|
+elseif tmplang =~ "^zh"
|
|
+ set guifont=Luxi\ Mono
|
|
+else
|
|
+ set guifont=monospace
|
|
+endif
|
|
+
|
|
+
|
|
+" /etc/gvimrc ends here
|