On February 1, 2017, Python 3.6 is available in Anaconda, so compile GVim again. 1st article will be reprinted.
Build a GVim-based Python development environment on a Windows 10, 64-bit PC. The Windows account name is daizu, and each program is mainly placed under C: \ Users \ daizu \ AppData \ Local.
Python
Anyway, Python. On Windows, it is convenient to build a Python environment with Anaconda.
To select the installation target, select Just for me and change the Destination folder from the default setting C: \ Users \ daizu \ Anaconda3 to C: \ Users \ daizu \ AppData \ Local \ Anaconda3. Check both Advanced Options. In addition to the default settings, the directory where the executable file is located is added to PATH.
For the following programs, refer to 1st article.
GVim
Get the source from GitHub. Open a command prompt
$ cd AppData\Local
$ git clone https://github.com/vim/vim.git
will do.
Download the batch file makevim64.bat for compiling from the reference URL below and copy it to C: \ Users \ daizu \ AppData \ Local \ vim. Edit makevim64.bat as follows to match the Lua and Python versions.
makevim64.bat
setlocal
:: path to MinGw64
set USERNAME=daizu
set USERDOMAIN=
set PYTHON3=C:/Users/daizu/AppData/Local/Anaconda3
set PYTHON3_VER=36
set DYNAMIC_PYTHON3=yes
set LUA=C:/Users/daizu/AppData/Local/lua-5.3.2
set LUA_VER=53
set DYNAMIC_LUA=yes
md bin
cd src
:: Clean
mingw32-make -f Make_ming.mak GUI=yes clean ARCH=x86-64
:: GUI x64
mingw32-make -f Make_ming.mak GUI=yes OLE=no FEATURES=HUGE ARCH=x86-64
set OUTDIR=../bin
copy *.exe "%OUTDIR%"
copy .\GvimExt\*.dll "%OUTDIR%"
copy *.dll "%OUTDIR%"
copy .\xxd\*.exe "%OUTDIR%"
cd ..
endlocal
At the command prompt, go to C: \ Users \ daizu \ AppData \ Local \ vim and go to
$ makevim64.bat
Compile as.
If the compilation is successful, create a vim80-daizu folder in C: \ Users \ daizu \ AppData \ Local, and create a vim80 directory under it. Copy the directory and set of files in runtime under the directory where you compiled vim (C: \ Users \ daizu \ AppData \ Local \ vim) under vim80. Then compile the compiled executables gvim.exe and vimrun.exe from C: \ Users \ daizu \ AppData \ Local \ vim \ bin toC: \ Users \ daizu \ AppData \ Local \ vim80-daizu Copy to. Then, get ʻiconv.dllandlibintl.dll for 64-bit from the reference URL, and copy them under the vim80-daizu` directory as well.
Create the GVim configuration files _vimrc and _gvimrc under C: \ Users \ daizu \ vimfiles \ dotfiles. The following is an example only for checking the operation.
_vimrc
set enc=utf-8
_gvimrc
colorscheme desert
Link these to your home directory. Open a command prompt with administrator privileges
$ mklink c:\Users\daizu\_vimrc C:\Users\daizu\vimfiles\dotfiles\_vimrc
$ mklink c:\Users\daizu\_gvimrc C:\Users\daizu\vimfiles\dotfiles\_gvimrc
will do.
Reference URL
https://sites.google.com/site/fudist/Home/vim-nihongo-ban/mingwvim
When I try to use Matplotlib
This application failed to start because it could not find or load
the Qt platform plugin "windows" in "".
Reinstalling the application may fix this problem.
And an error occurred.
$ conda uninstall pyqt
$ conda install pyqt
It can now be executed with.