⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 os_vms.txt

📁 MSYS在windows下模拟了一个类unix的终端
💻 TXT
📖 第 1 页 / 共 2 页
字号:
8. Useful notes						*vms-notes*8.1 backspace/delete.There are backspace/delete key inconsistencies with VMS.:fixdel doesn't do the trick, but the solution is:>	inoremap ^? ^H		" for terminal mode>	inoremap <Del> ^H	" for gui modeRead more in ch: 8.6 (Terminal problems).(Bruce Hunsaker <BNHunsaker@chq.byu.edu> Vim 5.3)8.2 Filters.Vim supports filters; ie. if you have a sort program that can handleinput/output redirection like Unix (<infile >outfile), you could use>	map \s 0!'aqsort<CR>(Charles E. Campbell, Jr. <cec@gryphon.gsfc.nasa.gov> Vim 5.4)8.3 VMS file version numbers.Vim is saving files into a new file with the next higher file versionnumber, try these settings.>	set nobackup        " does not create *.*_ backup files>	set nowritebackup   " does not have any purpose on VMS. It's default.Recovery is working perfect as well from the default swap file.Read more with :help swapfile(Claude Marinier <ClaudeMarinier@xwavesolutions.com> Vim 5.5, Zoltan ArpadffyVim 5.6 )8.4 Directory conversion.Vim will internally convert any unix-style paths and even mixed unix/VMSpaths into VMS style paths. Some typical conversions resemble:	/abc/def/ghi		-> abc:[def]ghi.	/abc/def/ghi.j		-> abc:[def]ghi.j	/abc/def/ghi.j;2	-> abc:[def]ghi.j;2	/abc/def/ghi/jkl/mno	-> abc:[def.ghi.jkl]mno.	abc:[def.ghi]jkl/mno	-> abc:[def.ghi.jkl]mno.	  ./			-> current directoty	  ../			-> relative parent directory	  [.def.ghi]		-> relative child directory	   ./def/ghi		-> relative child directoryNote: You may use <,> brackets as well (device:<path>file.ext;version) asrf10:<user.zay.work>test.c;1(David Elins <delins@foliage.com>, Jerome Lauret<JLAURET@mail.chem.sunysb.edu> Vim 5.6 )8.5 Remote host invocationIt is possible to use Vim as an internode editor.1. Edit some file from remote node:>	vi "<server>""username passwd""::<device>:<path><filename>;<version>"example:>	vi "pluto""zay passwd""::RF10:<USER.ZAY.WORK>TEST.C;1"Note: syntax is very important, otherwise VMS will recognise more parametersinstead of one (resulting with: file not found)2.  Set up Vim as your internode editor. If Vim is not installed on your host,just set up your IP address, full Vim path including the server name and runthe command procedure below:>	$ if (p1 .eqs. "") .OR. (p2 .eqs. "") then goto usage>	$ set disp/create/node=<your_IP_here>/trans=tcpip>	$ define "VIM "<vim_server>""''p1' ''p2'""::<device>:<vim_path>">	$  vi*m :== "mcr VIM:VIM.EXE">	$ gv*im :== "spawn/nowait mcr VIM:VIM.EXE -g">	$ goto end>	$ usage:>	$ write sys$output " Please enter username and password as a parameter.">	$ write sys$output " Example: @SETVIM.COM username passwd">	$ end:Note: Never use it in clustered environment (you do not need it), and load couldbe very-very slow, but even faster then a local Emacs. :-)8.6 Terminal problemsIf your terminal name is not known to Vim and it is trying to find the defaultone you will get the following message during start-up:---Terminal entry not found in termcap'unknown-terminal' not known. Available built-in terminals are:    builtin_gui    builtin_riscos    [...]    builtin_debug    builtin_dumbdefaulting to 'vt320'---The solution is to define default terminal name:>	$ ! unknown terminal name. let us use vt320 or ansi instead.>	$ ! Note: it's case sensitive>	$ define term "vt320"Terminals from VT100 to VT320 (as V300, VT220, VT200 ) do not need any extrakeyboard mappings. They should work perfect as they are, including arrows,Ins, Del buttons etc. Except Backspace in GUI mode. To solve it, add to.gvimrc:>	inoremap <Del> <BS>Vim will also recognise that they are fast terminals.If you have some annoying line jumping on the screen between windows add toyour .vimrc file:>	set ttyfast	" set fast terminalNote: if you're using Vim on remote host or through very slow connection, it'srecommended to avoid fast terminal option with:>	set nottyfast8.7 Hex-editing and other external toolsA very important difference between OpenVMS and other systems is that VMS usesspecial commands to execute executables:>       RUN <path>filename             >       MCR <path>filename <parameters> OpenVMS users always have to be aware that the Vim command :! "just" drop themto DCL prompt. This feature is possible to use without any problem with allDCL commands, but if we want to execute some program as XXD, CTAGS, JTAGS etc.we're running into trouble if we following the Vim documentation (see: helpxxd).Solution: Execute with the MC command and add the full path to the executable. Example: Instead of :%!xxd command use:>       :%!mc vim:xxd... or in general:>       :!mc <path>filename <parameters>(Zoltan Arpadffy, <arpadffy@altavista.net> Vim 5.6-70)==============================================================================9. Changes						*vms-changes*Version 5.6 patches 46-70 (2000 May 5)- VMS filename related changes:	- version handling (open everything, save to new version)	- correct file extension matching for syntax (version problem)	- handle <,> characters and passwords in directory definition	- handle internode/remote invocation and editing with passwords	- OpenVMS files will be treated case insensitive from now	- corrected response of expand("%:.") etc path related functions	(in one word: VMS directory handling internally)- version command	- corrected (+,-) information data	- added compiler and OS version	- added user and host information	- resolving $VIM and $VIMRUNTIME logicals- VMS port is in MAX_FEAT (maximum features) club with Unix, Win32 and OS/2.	- enabled farsi, rightleft etc. features	- undo level raised up to 1000- Updated OS_VMS.MMS file.	- maximum features ON is default	- Vim is compilable with +perl, +python and +tcl features.	- improved MMK compatibility- Created MAKEFILE_VMS.MMS, makefile for testing Vim during development.- Defined DEC terminal VT320	- compatibility for VT3*0, VT2*0 and VT1*0 - ANSI terminals	  backwards, but not VT340 and newer with colour capability.	- VT320 is default terminal for OpenVMS	- these new terminals are also fast ttys (default for OpenVMS).	- allowed dec_mouse ttym- Updated files vimrc and gvimrc with VMS specific suggestions.- OS_VMS.TXT updated with new features.Version 5.6 (2000 Jan 17)- Popup menu line crash corrected.- Handle full file names with version numbers.- Directory handling (CD command etc.)- Corrected file name conversion VMS to Unix and v.v.- Correct response of expand wildcards- Recovery is working from this version under VMS as well.- Improved terminal and signal handing.- Improved OS_VMS.TXTVersion 5.5 (1999 Dec 3)- Cut & paste mismatch corrected.- Motif directories during open and save are corrected.Version 5.4 (1999 Sep 9)- Minor changes in the code- Standard distribution with +GUI optionVersion 5.3 (1998 Oct 12)- Syntax and DEC C changes in the code- Fixing problems with the /doc subdirectory- Improve OS_VMS.MMSVersion 5.1 (1998 Apr 21)Version 4.5 (1996 Dec 16)- First VMS port by Henk Elbers <henk@xs4all.nl>==============================================================================10. Authors						*vms-authors*In alphabetical order:	Zoltan Arpadffy <arpadffy@altavista.net>	Charles E. Campbell, Jr. <cec@gryphon.gsfc.nasa.gov>	Bruce Hunsaker <BNHunsaker@chq.byu.edu>	Sandor Kopanyi <sandor.kopanyi@altavista.net>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -