[ -f "$file" ] && . "$file";
done;
-[ -f ~/.fzf.bash ] && source ~/.fzf.bash
+#export VIRTUALENVWRAPPER_PYTHON=`/usr/bin/env python3`
+#. /mingw64/bin/virtualenvwrapper.sh
+
+# last line
+[ -f ~/.bashrc_local ] && . ~/.bashrc_local
--- /dev/null
+alias gvim="C:/programs/Vim/vim74/gvim.exe"
+
+if [ -d "${HOME}/.fzf" ] ; then
+ PATH="${HOME}/.fzf:${PATH}"
+fi
+
+PATH="C:/Program\ Files\ (x86)/MSBuild/12.0/Bin:/c/programs/CMake/bin:${PATH}"
+
+[ -f ~/.fzf.bash ] && source ~/.fzf.bash
+
+eval "$(ssh-agent -s)"
+ssh-add.exe ~/.ssh/github
alias newterm='mintty /bin/env CHERE_INVOKING=1 /bin/bash -l &'
alias gtypist='gtypist -wi'
alias startxwin='run /usr/bin/bash.exe -l -c "/usr/bin/startxwin -- -nolock -unixkill"'
-alias sumatra='startSumatra.sh'
-alias lynx='lynx -use_mouse -vikeys'
alias startvnc='vncserver -geometry 1870x980 -depth 24'
alias startvnc4='vnc4server -geometry 1870x980 -depth 24'
-#alias python='/usr/local/bin/python3'
-alias git_local='git --git-dir=.git_local'
alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
-alias vcbuild='"C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/vcpackages/vcbuild.exe"'
-
+alias vcbuild='winpty "c:/program files (x86)/microsoft visual studio 9.0/vc/vcpackages/vcbuild.exe"'
+alias msbuild='winpty "c:/program files (x86)/msbuild/12.0/bin/msbuild.exe"'
+alias python='winpty "c:/program files (x86)/python35-32/python.exe"'
+alias cmake='winpty "c:/programs/cmake/bin/cmake.exe"'
+++ /dev/null
-alias gvim="C:/programs/Vim/vim74/gvim.exe"
-
-if [ -d "${HOME}/.fzf" ] ; then
- PATH="${HOME}/.fzf:${PATH}"
-fi
-
-
-export GOPATH="$HOME/gopath"
-#export GOROOT=/mingw64
-export GOROOT=/mingw64/lib/go
-eval "$(ssh-agent -s)"
-ssh-add.exe ~/.ssh/github
# export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
export LESS=-eFRX
-
+export GTEST_DIR=~/repos/googletest/googletest
+export CPPUNITDIR=~/repos/cppunit
+export VIRTUALENVWRAPPER_PYTHON=/mingw64/bin/python3
#export XDG_CONFIG_HOME = ~/.config/
#export XDG_DATA_HOME = ~/.local/share/
# Set PATH to temporary folders
export TMPDIR="${HOME}/.tmp"
export TEMPDIR="$TMPDIR"
+export TEMP="$TMPDIR"
+export TMP="$TMPDIR"
mkdir -m700 "$TMPDIR" > /dev/null 2>&1
# Set PATH to PREFIX folders
# Use vi keybindings for everything that uses readline.
-set editing-mode vi
-# Prompt will be prefixed with a `+` while in insert mode and a `:` when in command mode
-#set show-mode-in-prompt on
# Adds punctuation as word delimiters
set bind-tty-special-chars off
set visible-stats on
set skip-completed-text on
+set editing-mode vi
+set keymap vi
$if mode=vi
+ # Prompt will be prefixed with a `+` while in insert mode and a `:` when in command mode
+ #set show-mode-in-prompt on
set keymap vi-command
"gg": beginning-of-history
"G": end-of-history
- "p": history-search-backward
- "n": history-search-forward
-# "\e[C": forward-char
-# "\e[D": backward-char
+ "k": history-search-backward
+ "j": history-search-forward
set keymap vi-insert
+ "jj": vi-movement-mode
"\C-l": clear-screen
"\C-w": backward-kill-word
- # auto-complete from the history
- "\C-p": history-search-backward
- "\C-n": history-search-forward
-# "\e[C": forward-char
-# "\e[D": backward-char
+ "\C-k": history-search-backward
+ "\C-j": history-search-forward
$endif
$if Bash
" section: plugins {{{1
" ---------------------
-call plug#begin('~/.cache/vim/bundle')
+silent call plug#begin('~/.cache/vim/bundle')
"Plug 'tpope/vim-sensible'
"Plug 'tpope/vim-ragtag'
Plug 'tpope/vim-repeat'
" Load on nothing
Plug 'SirVer/ultisnips', { 'on': [] }
Plug 'Valloric/YouCompleteMe', { 'on': [] }
+Plug 'heaths/vim-msbuild'
call plug#end()
" section: options {{{1
set smartcase " case insensitive searches become sensitive with capitals
set smarttab " sw at the start of the line, sts everywhere else
setglobal tags=./tags;
-set timeoutlen=1200 " a little bit more time for macros
+set timeoutlen=500 " leader key timeout
set ttimeoutlen=50 " make esc work faster
set visualbell
if exists('+undofile')
"
let mapleader = "\<space>"
-if has("cscope")
- nnoremap <leader>fs :cscope find s <c-r>=expand("<cword>")<cr><cr>:botright cwindow<cr>
- nnoremap <leader>fg :cscope find g <c-r>=expand("<cword>")<cr><cr>:botright cwindow<cr>
- nnoremap <leader>fc :cscope find c <c-r>=expand("<cword>")<cr><cr>:botright cwindow<cr>
- nnoremap <leader>ft :cscope find t <c-r>=expand("<cword>")<cr><cr>:botright cwindow<cr>
- nnoremap <leader>fe :cscope find e <c-r>=expand("<cword>")<cr><cr>:botright cwindow<cr>
- nnoremap <leader>ff :cscope find f <c-r>=expand("<cfile>")<cr><cr>:botright cwindow<cr>
- nnoremap <leader>fd :cscope find d <c-r>=expand("<cword>")<cr><cr>:botright cwindow<cr>
- nnoremap <leader>fi :cscope find i ^<c-r>=expand("<cfile>")<cr>$<cr>:botright cwindow<cr>
- "todo: figure out how to get cstag output in quickfix or a popup menu.
- map <c-_> :cstag <c-r>=expand("<cword>")<cr><cr>
-endif
+" explorer
+nnoremap <leader>e :Lexplore .<cr>
+" cd to same directory as file
+nnoremap <leader>cd :cd %:p:h<cr>:pwd<cr>
+" source .vimrc
+nnoremap <leader>v :so ~/.vimrc<cr>
" copy/paste from system clipboard
if has("win32")
"noremap <Leader>P "*P
endif
-" cd to same directory as file
-nnoremap <leader>cd :cd %:p:h<cr>:pwd<cr>
-" source .vimrc
-nnoremap <leader>v :so ~/.vimrc<cr>
+if has("cscope")
+ nnoremap <leader>fs :cscope find s <c-r>=expand("<cword>")<cr><cr>:botright cwindow<cr>
+ nnoremap <leader>fg :cscope find g <c-r>=expand("<cword>")<cr><cr>:botright cwindow<cr>
+ nnoremap <leader>fc :cscope find c <c-r>=expand("<cword>")<cr><cr>:botright cwindow<cr>
+ nnoremap <leader>ft :cscope find t <c-r>=expand("<cword>")<cr><cr>:botright cwindow<cr>
+ nnoremap <leader>fe :cscope find e <c-r>=expand("<cword>")<cr><cr>:botright cwindow<cr>
+ nnoremap <leader>ff :cscope find f <c-r>=expand("<cfile>")<cr><cr>:botright cwindow<cr>
+ nnoremap <leader>fd :cscope find d <c-r>=expand("<cword>")<cr><cr>:botright cwindow<cr>
+ nnoremap <leader>fi :cscope find i ^<c-r>=expand("<cfile>")<cr>$<cr>:botright cwindow<cr>
+ "todo: figure out how to get cstag output in quickfix or a popup menu.
+ map <c-_> :cstag <c-r>=expand("<cword>")<cr><cr>
+endif
+
" split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
"exit insert mode
inoremap jj <esc>
inoremap j<space> j
-" explorer
-"nnoremap <leader>e :e .<cr>
-nnoremap <leader>e :Lexplore .<cr>
" section: autocommands {{{1
" --------------------------