my own notes on how to install Vim

----------- 1) Unix 1a) with admin:

not sure, prob: yum install vim git curl

1b) without admin:

see notes on opanalysis3; it was compiled from source and installed there may also need: ncurses needed several configure and compile flags to get +python to show up in vim's --version

----------- 2) windows cygwin

in order to use Vundle, git is needed.

2a) with admin: install cygwin packages: git curl python

2b) without admin: install cygwin ./setup-x86_64.exe --no-admin

on faa it was installed to C:\Users\Public\cygwin

other install location possiblities include: C:\Users\Wendell CTR Turner\Documents\installs

----------- 3) windows Vim and GVim

3a) with admin: install vim from .msi into regular (system) location

3b) without admin: on faa, install to: C:\Users\Wendell CTR Turner\Documents\installs\Vim

Somehow, the 'base' (home?) directory is set to: H:\

----------- 4) find and setup vim configuration

==== MOST OF THIS HAS BEEN SUPERCEEDED:

find out user's vimrc: vim :version

and find where gvim thinks its main (first) vimrc config file is: user vimrc file: "$HOME_vimrc" ; home laptop (gvim) user vimrc file: "$HOME_vimrc" ; asdi-db (gvim) user vimrc file: "$HOME_vimrc" ; faa laptop (gvim) user vimrc file: "$HOME/.vimrc" ; carrots (unix) user vimrc file: "$HOME/.vimrc" ; opanalysis3 (unix)

1) put Master .vimrc file in unix or cygwin $HOME directroy 2) edit as needed to find out $hostname 3) edit as needed for if/else to set runtimepath and myplugdir 4) in gvim: :version ; to find 'user vimrc file:' location

edit that file for (dos version of) cygwin .vim file, such as:
$ cat _vimrc
    source C:\cygwin64\home\wendell\.vimrc

----------- 5) Vundle

for now, have decided to use Vundle as a Vim package manager, so these should be the instructions:

5a) install vundle manually install vundle as instructions say (it is one git command)

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

5b) use vim in Unix or Cygwin add lines for favorite plugins:

Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'klen/python-mode'
Plugin 'pangloss/vim-javascript'

and vim: :PluginInstall

note: if git won't accept a self-signed cert, do this: $ export GIT_SSL_NO_VERIFY=true

this works for all: wendells_master.vimrc

TODO: bash, awk (both dated 2007), ctags Plugin 'bash-support.vim'

consider: ctags Plugin 'ludovicchabant/vim-gutentags'

consider PosgreSQL: Plugin 'lifepillar/pgsql.vim'

TODO: fix (messed up) webfaction (and probably opan3): include these from ilc and opan3 ~/.vim/plugin/wendell.vim

----------- 6) color schemes (before svn)

to retrieve the color schemes:

cd .vim
mkdir colors
cd colors

get tatami: git clone https://github.com/Renxiuhu/vim-colorscheme.git mv vim-colorscheme/colors/*.vim . rm -r vim-colorscheme/

oceanlight: git clone https://github.com/vim-scripts/oceanlight.git mv oceanlight/colors/oceanlight.vim . rm -r oceanlight/

greent: git clone https://github.com/whzup/greent.vim.git mv greent.vim foo cp foo/colors/greent.vim . rm -r foo

if gvim is on that machine, copy the colors to the gvim install directory: gvim :echo $VIMRUNTIME ; e.g. wwtlaptop: C:\Program Files (x86)\Vim\vim80

cd C:\Program Files (x86)\Vim\vim80
cd colors
cp -i ~/.vim/colors/* .

may need to do this via windows explorer if admin permissions are needed

btw, on faa: $ ls -1 .vim/colors/ github.vim greent.vim monokai.vim oceanlight.vim relaxedgreen.vim solarized.vim tatami.vim

----------- 7) after filetype indent file (before svn)

" we assume python is ok, need to fix java, javascript, and bash

mkdir -p ~/.vim/after/ftplugin
cd       ~/.vim/after/ftplugin

cat << EOF > javascript.vim

" --------------------------------------------------------------- " wendell's file to configure editor with tabs and nice stuff... " --------------------------------------------------------------- set expandtab " enter spaces when tab is pressed set shiftwidth=4 " number of spaces to use for auto indent set softtabstop=4 set tabstop=8 " use 8 spaces to represent tab (not sure about this one!!!) set textwidth=87 " break lines when line length increases (faa printer value) set autoindent " copy indent from current line when starting a new line EOF

cp javascript.vim sh.vim
cp javascript.vim java.vim

----------- 8) python-mode

1) First, will use python-mode on cygwin 1a) install cygwin's python 1b) " 9/28 Plugin 'klen/python-mode' vim (cygwin command line) :python print "aa" works! :PluginInstall takes a while... then success yipee! python-mode works from cygwin vim

2) Second, from gvim: why bother?

----------- 9) svn

repo.ilc.com: wendell cde34rfv

--- initial import

~/webfaction/svn
svn import dotfiles http://repo.ilikecarrots.com -m "initial import"

Adding dotfiles/.vimrc Adding dotfiles/atest Committing transaction... Committed revision 1.

save copies of current files: mv .vimrc sav1.vimrc mv .vim sav1.vim

here goes...

svn checkout http://repo.ilikecarrots.com

A .vim A .vim/after A .vim/after/ftplugin A .vim/after/ftplugin/javascript.vim A .vim/after/ftplugin/sh.vim A .vim/after/ftplugin/java.vim A .vim/colors A .vim/colors/solarized.vim A .vim/colors/monokai.vim A .vim/colors/oceanlight.vim A .vim/colors/tatami.vim A .vim/colors/github.vim A .vim/colors/greent.vim A .vim/colors/relaxedgreen.vim A .vimrc

and put vundle/bundle files back: (or re-checkout from git?)

cd .vim
cp -R ~/sav1.vim/bundle/ .

----- configuring opanalysis3's vim8 for svn, vundle, plugins:

mv .vim wendell/vim/old_dot_vim    ; save just for historical purposes

svn  checkout --username wendell  http://repo.ilikecarrots.com .

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

cd wendell
vim foo
:PluginInstall

Yes, all plugins seemed installed... Yes, airline mode status bar shows... Yes, python-mode seems to work fine!

----- and for asdi-db: same as op3, works fine

----------- 10) cursor

on the window frameto get block cursor on cygwin terminal on the window frame:

-> Options...
-> Cursor -> Block
(and possibly change colors)