gVIM Installer http://www.vim.org/download.php
- Choose the "latest version" link, for example ftp://ftp.vim.org/pub/vim/pc/gvim80-586.exe
Latest 64-bit version (auto-compiled); python not integrated
1. Download the "latest version " from http://www.vim.org/download.php
- This is 32-bit gVIM, compiled in 2016
2. Double click gvim80-586.exe
3. Dialog says "This will install Vim 8.0 on your computer. Continue?" Click Yes
4. Uninstall everything (if prompted), but do not delete "C:\Program Files\Vim" because it has _vimrc
- This is a hard-linked file: "C:\Program Files (x86)\Vim\_vimrc" <--> c:\users\username\_vimrc
- Created using:
cd C:\Program Files\Vim mklink /h _vimrc %userprofile%\_vimrc
- This was done because gvim first looks for a _vimrc file at ~
- And also so that VisVim (for Visual Studio) could read it
5. Next the installer starts
- Use the "Typical" options (all checked except "Create .bat files", "Create plugin directories", and "VisVim Extension"
6. Change the destination folder to "C:\Program Files\Vim"
- Reason: we will replace the x86 version with the 64-bit version later
7. Download the 64-bit .7z archive from https://tuxproject.de/projects/vim/
8. Extract the files in complete-x64.7z
9. Copy all of the files and paste in folder C:\Program Files\Vim\vim80
10. Start an admin-level command prompt
11. Remove the secondary stream bit (see it with "dir /r")
cd "C:\Program Files\Vim\vim80" streams -s -d *
12. Double click gVim.exe in C:\Program Files\Vim\vim80
13. The program should start and report version 8.1.690
14. Customize your _vimrc file, see folder %userprofile%
15. Copy customized plugins and syntax files to %userprofile%\vimfiles
16. Edit the registry to make it so that files double clicked in explorer open in a new tab
- Go to key HKEY_CLASSES_ROOT\Applications\gvim.exe\shell\edit\command and set the Value Data to
"C:\Program Files\Vim\vim80\gvim.exe" --remote-tab-silent "%1"
Use Pathogen to load plugins stored in subfolders https://github.com/tpope/vim-pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle curl -LSso ~/.vim/autoload/pathogen.vim https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim
mkdir %userprofile%\vimfiles\autoload mkdir %userprofile%\vimfiles\bundle cd %userprofile%\vimfiles\autoload curl -Lko pathogen.vim https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim rem Or use: curl -Lko pathogenAlt.vim https://tpo.pe/pathogen.vim
execute pathogen#infect()
Graphical representaion of your undo history https://github.com/sjl/gundo.vim
Requires that Vim be compiled with Python 2.4+ Open gvim.exe in a text editor to determine the expected filenames, for example: python27.dll and python35.dll
If using 64-bit Vim, we need 64-bit python. Install from: https://www.python.org/downloads/windows/
- 2.7.x: Windows x86-64 MSI installer
- 3.5.x: Windows x86-64 executable installer
Possibly also copy the python DLLs to the folder with gvim.exe Test if python is working using
:python print(1)
Add to .vimrc:
nnoremap <F5> :GundoToggle<CR>
Display selectable list of Most Recently Used files http://www.vim.org/scripts/script.php?script_id=521 https://github.com/yegappan/mru
Command:
:MRU
Automatic reload of modified Vim scripts http://peterodding.com/code/vim/reload/ https://github.com/xolox/vim-reload
After changing a script file, this plugin auto-reloads it and shows a status message saying that it has done so. To force a reload, use
:ReloadScript
Easily scroll through color schemes http://www.vim.org/scripts/script.php?script_id=1488
Commands:
:SCROLL :COLOR
Advanced status bar http://vimawesome.com/plugin/vim-airline-sad-beautiful-tragic https://github.com/vim-airline/vim-airline
Easily access copied (yanked) or deleted text https://github.com/vim-scripts/YankRing.vim
Add to .vimrc:
nnoremap <silent> <F3> :YRShow<cr> inoremap <silent> <F3> <ESC>:YRShow<cr>
Also, after pasting text, use Ctrl+P and Ctrl+N to cycle through recent buffers
Store in ~/.vim/syntax/txt.vim or %userprofile%\vimfiles\syntax
txt.vim: https://www.vim.org/scripts/script.php?script_id=1532
- Updated version at https://raw.githubusercontent.com/alchemistmatt/VIM_Tips/master/vimfiles/syntax/txt.vim
proteinFasta.vim: https://www.vim.org/scripts/script.php?script_id=5236
mediawiki.vim: https://github.com/chikamichi/mediawiki.vim/
cd ~/.vim/bundle/ git clone https://github.com/sjl/gundo.vim gundo git clone https://github.com/xolox/vim-reload vim-reload git clone https://github.com/xolox/vim-misc vim-misc git clone https://github.com/yegappan/mru mru git clone https://github.com/vim-airline/vim-airline vim-airline git clone https://github.com/chikamichi/mediawiki.vim/ mediawiki.vim git clone https://github.com/vim-scripts/YankRing.vim yankring curl -o ScrollColor.vim http://www.vim.org/scripts/download_script.php?src_id=5966 mkdir scrollcolor mkdir scrollcolor/plugin mv ScrollColor.vim scrollcolor/plugin cd ~/.vim mkdir colors cd colors curl -ko SlateDark.vim https://raw.githubusercontent.com/alchemistmatt/VIM_Tips/master/vimfiles/syntax/SlateDark.vim cd ~/.vim mkdir syntax cd syntax curl -ko proteinFasta.vim https://raw.githubusercontent.com/alchemistmatt/VIM_Tips/master/vimfiles/syntax/proteinFasta.vim curl -ko txt.vim https://raw.githubusercontent.com/alchemistmatt/VIM_Tips/master/vimfiles/syntax/txt.vim
c: cd %userprofile%\vimfiles\bundle git clone https://github.com/sjl/gundo.vim.git gundo git clone https://github.com/xolox/vim-reload vim-reload git clone https://github.com/xolox/vim-misc vim-misc git clone https://github.com/yegappan/mru mru git clone https://github.com/vim-airline/vim-airline vim-airline git clone https://github.com/chikamichi/mediawiki.vim/ mediawiki.vim git clone https://github.com/vim-scripts/YankRing.vim yankring curl -o ScrollColor.vim http://www.vim.org/scripts/download_script.php?src_id=5966 mkdir scrollcolor mkdir scrollcolor\plugin move ScrollColor.vim scrollcolor\plugin cd %userprofile%\vimfiles mkdir colors cd colors curl -ko SlateDark.vim https://raw.githubusercontent.com/alchemistmatt/VIM_Tips/master/vimfiles/colors/SlateDark.vim cd %userprofile%\vimfiles mkdir syntax cd syntax curl -ko proteinFasta.vim https://raw.githubusercontent.com/alchemistmatt/VIM_Tips/master/vimfiles/syntax/proteinFasta.vim curl -ko txt.vim https://raw.githubusercontent.com/alchemistmatt/VIM_Tips/master/vimfiles/syntax/txt.vim
This pathogen command generates help files for your plugins
:Helptags
This is an alternative to
:helptags ~/.vim/doc
or
:helptags ~\vimfiles\doc
http://vimcolors.com/?utf8=%E2%9C%93&bg=light&colors=gui&order=newest
git clone https://github.com/flazz/vim-colorschemes.git ~/.vim