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

등록 2002-06-25 12:47:00     조회 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을 쓰기 위해서...
이름
암호


>> 관련글
51441 VIM 설치시에.  리눅서  2002.06.25  ....
  답장 RE: VIM 설치시에.  안창범  2002.06.25  ....
Register [ localhost 목록보기 윗글 아랫글
글쓰기
답장쓰기 수정 삭제
정규표현식 [ 상세 검색 ]
페이지로딩: [ 0.94 초 ] 작업시간: [ 0.15 초 ]

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

적수네 동네
+
| 적수네 동네
| 공부방
| 리눅스 잡지 서고
| LSN 소스
| 링크 모음
+---+
게시판
+
| 떠들어보세!
| 질문과 답변
| 새소식과 정보
| 1원짜리 팁?
| 대화방
+---+
칼럼?
+
| 세하 훔쳐보기
| Welcome2nite
| 혜진의 염장판
+---+
리눅스 상표권
+
| 반대 서명란
| 토론 게시판
+---+
GNU
+
| GNU 선언문
| GNU GPL
| GNU 미러 목록
+---+
프로젝트?
+
| 리눅스카운터
| RC5DES
| 실질헌법 제작
+---+
커널 소식
+
| 안정 버젼: 2.4.14
+---+
테마 선택
+
LSN 방송국?
+
| OFF AIR
+---+
회원
+
| 로그인
+---+
[ 적수네 동네 ] [ 리눅스 상표권 독점 반대 ] [ 한글 리눅스 문서 프로젝트 ] [ KrLine ] [ 사랑넷 ] [ Valid HTML 4.0! ] [ SlashDot ] [ Freshmeat ]
Copyleft (C) 1998-2001 Byeong-Chan Kim . License
TIME: 1791509054
System by WYZsoft, HDD by I.O.Linux, Mizi Research, Embryo, WOWLINUX, Domain by SarangNet, Network by KrLine.