>> Delete Reply from No. 51441 article
No. RE: VIM 설치시에.

등록 2002-06-25 12:47:00 By localhost     조회 5
이름 안창범    

		export VIMRUNTIME=/home/shwee/tmp/vim61/runtime
 하시면 될 듯...
 vim에서 :help syntax 해보니 다음과 같이 나오는군요.
 참고로 저는 윈도에서 씁니다.
 3. Syntax loading procedure				*syntax-loading*
 This explains the details that happen when the command ":syntax on" is issued.
When Vim initializes itself, it finds out where the runtime files are located.
This is used here as the variable |$VIMRUNTIME|.
 What ":syntax on" does:
     Source $VIMRUNTIME/syntax/syntax.vim
    |
    +-	Clear out any old syntax.
    |
    +-	Source $VIMRUNTIME/syntax/synload.vim
    |	|
    |	+-  Set up standard highlighting groups
    |	|
    |	+-  Set up syntax autocmds to load the appropriate syntax file when
    |	|   the 'syntax' option is set. *synload-1*
    |	|
    |	+-  Source the user's optional file, from the |mysyntaxfile| variable.
    |	    This is where you can add your own syntax autocommands for loading
    |	    your syntax file when the 'syntax' option is set.  You can also
    |	    modify the standard highlighting here. *synload-2*
    |
    +-	Source $VIMRUNTIME/filetype.vim
    |	|
    |	+-  Install autocmds based on suffix to set the 'filetype' option
    |	|   This is where the connection between file name and file type is
    |	|   made for known file types. *synload-3*
    |	|
    |	+-  Source the user's optional file, from the |myfiletypefile|
    |	|   variable.  This is where you can add your own connections between
    |	|   file name and file type.  Or overrule existing ones. *synload-4*
    |	|
    |	+-  Install one autocommand which loads $VIMRUNTIME/scripts.vim when
    |	|   no file type was detected yet. *synload-5*
    |	|
    |	+-  Source $VIMRUNTIME/menu.vim, to setup the Syntax menu. |menu.vim|
    |
    +-	Install a FileType autocommand to set the 'syntax' option when a file
    |	type has been detected. *synload-6*
    |
    +-	Execute syntax autocommands to start syntax highlighting for each
	already loaded buffer.
  When a file is loaded, its syntax file is found in this way:
     Loading the file triggers the BufReadPost autocommands.
    |
    +-	If there is a match with one of the autocommands from |synload-3|
    |	(known file types) or |synload-4| (user's file types), the 'filetype'
    |	option is set to the file type.
    |
    +-	The autocommand at |synload-5| is triggered.  If the file type was not
    |	found yet, then $VIMRUNTIME/scripts.vim is sourced.
    |	|
    |	+-  Source the user's optional |myscriptsfile|.  This typically makes
    |	|   checks using "getline(1) =~ pattern" to find out which file type
    |	|   the file is, and sets 'filetype'.
    |	|
    |	+-  If the file type is still unknown, check the contents of the file,
    |	    again with checks like "getline(1) =~ pattern" as to whether the
    |	    file type can be recognized, and set 'filetype'.
    |
    +-	When the file type was determined and 'filetype' was set, this
    |	triggers the FileType autocommand |synload-6| above.  It sets
    |	'syntax' to the determined file type.
    |
    +-	When the 'syntax' option was set above, this triggers an autocommand
    |	from |synload-1| or |synload-2|.  This will source the syntax file in
    |	the $VIMRUNTIME/syntax directory or the user's syntax file.
    |
    +-	Any other user installed FileType or Syntax autocommands are
	triggered.  This can be used to change the highlighting for a specific
	syntax.
 : 워크스테이션에 유저입니다. Solaris 2.6을 사용하구 있구요. SuperUser가
: 아니기에 VIM최신 버전을 맘대로 깔 수가 없습니다. 그래서 VIM6.1 Version을
: 다운받아서 풀어 놓구, make를 통해서 vim 실행파일은 제 디렉토리 밑에다가
: 생성을 해서 실행을 했더니 실행까지 되더군요.
:
: 그런데 문제는 예를 들면 :syntax on이라는 것을 치면
: Can't open file /usr/local/share/vim/syntax/syntax.vim
: 이라고 나오는 군요.
: 그런데 제가 찾아보니까...
: 그 파일은 /home/shwee/tmp/vim61/runtime/syntax/syntax.vim
: 여기 있더군요.
:
: 컴파일을 하기 전에 디렉토리 위치를 바꿔주면 나중에 진짜 있는 곳을
: 찾아갈텐데...
: 그래서 src/Makefile를 통해서 파일 참조 위치를 추적했더니...
:
: $DATADIR 이라는 곳이 @datadir@로 정의되어있구...
: 그래서 datadir를 찾았더니 이 것은 정의가 안 되 있더군요.
:
: root가 아니면 전혀 사용할 수 없는 건가요?
: 조언 부탁드립니다.
:
: --
: Vim을 쓰기 위해서...
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved