diff --git a/doc/usr_90.jax b/doc/usr_90.jax index 4492eb70b..cd25080e3 100644 --- a/doc/usr_90.jax +++ b/doc/usr_90.jax @@ -1,4 +1,4 @@ -*usr_90.txt* For Vim バージョン 9.1. Last change: 2024 Oct 05 +*usr_90.txt* For Vim バージョン 9.1. Last change: 2025 Mar 03 VIM USER MANUAL - by Bram Moolenaar @@ -27,20 +27,19 @@ Vim を使うにはまずインストールする必要があります。シス が使われます。ただし、これはシステムによって異なります。インストールされている 他のパッケージを参考にするなどして調べてください。 自分一人で使う場合は、例えばホームディレクトリをベースディレクトリにします。 -ファイルはその下の "bin" や "shared/vim" などに置かれます。 +ファイルはその下の "bin" や "share/vim" などに置かれます。 ☆パッケージからインストール -Unix システムごとにコンパイル済みバイナリが用意されています。次のページにパッ -ケージへのリンクが一覧されています: +使用する Unix/Linux システムによっては、コンパイル済みのバイナリパッケージが存 +在する場合があります。これについては検索する必要があります。以前はさまざまな +UNIX システムのリストを保持していましたが、そのリストは古くなったため削除され +ました。 - http://www.vim.org/binaries.html - -バイナリのメンテナンスはボランティアベースなので、古いままになっていることが -多々あります。自分でソースからコンパイルする方が無難です。自分でコンパイルする -ことによって組み込む機能をコントロールできるようにもなります。それが必要な場合 -はどのみちコンパイルが必要です。 +ソースから独自の UNIX バージョンをコンパイルすることをお勧めします。また、ソー +スからエディタを作成すると、コンパイルする機能を制御できます。ただし、これには +コンパイラが必要です。 Linux を使っている場合、"vi" はおそらく最小構成の Vim です。それには例えば構文 強調表示などの機能はありません。そのディストリビューションから別の Vim パッ @@ -52,24 +51,18 @@ Linux を使っている場合、"vi" はおそらく最小構成の Vim です Vim をコンパイルしてインストールするには、次のものが必要です: - - C コンパイラ (GCCが望ましい) - - GZIP プログラム (www.gnu.org から入手可能) - - Vim のソースとランタイムのアーカイブ + - C コンパイラ (GCC または Clang が望ましい) + - git (オプション、github からクローンする場合のみ) + - zip/unzip (アーカイブを解凍する) + - Vim のソースアーカイブ -Vim のアーカイブを入手するには、次のファイルを見てダウンロード速度が最も早いで -あろう近くのミラーを探してください: - - ftp://ftp.vim.org/pub/vim/MIRRORS +Vim のソースをダウンロードするには、Github プロジェクトページからクローンを作 +成するか: > + git clone https://github.com/vim/vim.git +< +または、以下を使用してアーカイブを直接ダウンロードします: -Vim のホームサイト ftp.vim.org で十分な速度が出るならそれでも構いません。 -"unix" ディレクトリにファイルが入っています。バージョン番号はファイル名に埋め -込まれています。特に事情がなければ最新のバージョンをダウンロードしてください。 -Unix 用のすべてのファイルが含まれた一つの大きなアーカイブをダウンロードできま -す: - - vim-8.2.tar.bz2 ~ - -このアーカイブの展開には "bzip2" が必要です。 + https://github.com/vim/vim/archive/refs/heads/master.zip ☆コンパイル @@ -81,17 +74,12 @@ Unix 用のすべてのファイルが含まれた一つの大きなアーカイ この場所でアーカイブを展開します。次のようにして展開できます: > - tar xf path/vim-8.2.tar.bz2 - -もし使用している tar コマンドが bz2 に直接対応していない場合は: > - - bzip2 -d -c path/vim-8.2.tar.bz2 | tar xf - + unzip vim-master.zip -"path" の部分はファイルをダウンロードした場所に変更してください。 欲しいのがデフォルトの機能だけで、環境が適切に設定されているのであれば、次のコ マンドを実行するだけでコンパイルできます: > - cd vim82/src + cd vim-master/src make make プログラムによって configure とコンパイルが実行されます。設定を変更してコ diff --git a/en/usr_90.txt b/en/usr_90.txt index 9d7598957..d144303ee 100644 --- a/en/usr_90.txt +++ b/en/usr_90.txt @@ -1,4 +1,4 @@ -*usr_90.txt* For Vim version 9.1. Last change: 2024 Oct 05 +*usr_90.txt* For Vim version 9.1. Last change: 2025 Mar 03 VIM USER MANUAL - by Bram Moolenaar @@ -28,20 +28,18 @@ is installed in differs. used. But this may be different for your system. Try finding out where other packages are installed. When installing for a single user, you can use your home directory as the -base. The files will be placed in subdirectories like "bin" and "shared/vim". +base. The files will be placed in subdirectories like "bin" and "share/vim". FROM A PACKAGE -You can get precompiled binaries for many different UNIX systems. There is a -long list with links on this page: +Depending on the Unix/Linux system used, there may exist pre-compiled binary +packages. You need to search for this. We used to keep a list for different +UNIX systems, but that list was outdated so the list was removed. - http://www.vim.org/binaries.html - -Volunteers maintain the binaries, so they are often out of date. It is a -good idea to compile your own UNIX version from the source. Also, creating -the editor from the source allows you to control which features are compiled. -This does require a compiler though. +It is a good idea to compile your own UNIX version from the source. Also, +creating the editor from the source allows you to control which features are +compiled. This does require a compiler though. If you have a Linux distribution, the "vi" program is probably a minimal version of Vim. It doesn't do syntax highlighting, for example. Try finding @@ -52,23 +50,18 @@ FROM SOURCES To compile and install Vim, you will need the following: - - A C compiler (GCC preferred) - - The GZIP program (you can get it from www.gnu.org) - - The Vim source and runtime archives + - A C compiler (GCC or clang preferred) + - git (optionally, only when cloning from github) + - zip/unzip (to uncompress the archive) + - The Vim source archives -To get the Vim archives, look in this file for a mirror near you, this should -provide the fastest download: +To download the Vim source, you can either clone it from the Github project +page: > + git clone https://github.com/vim/vim.git +< +or download the archive directly using: - ftp://ftp.vim.org/pub/vim/MIRRORS - -Or use the home site ftp.vim.org, if you think it's fast enough. Go to the -"unix" directory and you'll find a list of files there. The version number is -embedded in the file name. You will want to get the most recent version. - You can get the files for Unix in one big archive that contains everything: - - vim-8.2.tar.bz2 ~ - -You need the bzip2 program to uncompress it. + https://github.com/vim/vim/archive/refs/heads/master.zip COMPILING @@ -80,17 +73,12 @@ First create a top directory to work in, for example: > Then unpack the archives there. You can unpack it like this: > - tar xf path/vim-8.2.tar.bz2 - -If your tar command doesn't support bz2 directly: > - - bzip2 -d -c path/vim-8.2.tar.bz2 | tar xf - + unzip vim-master.zip -Change "path" to where you have downloaded the file. If you are satisfied with getting the default features, and your environment is setup properly, you should be able to compile Vim with just this: > - cd vim82/src + cd vim-master/src make The make program will run configure and compile everything. Further on we