update bashrc. move paths to .dev_profile. add syntastic
parent
321dc28b1f
commit
82747de5b7
18
.bashrc
18
.bashrc
|
|
@ -1,8 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
|
||||
|
||||
|
||||
if [ -d "${HOME}/tools/vim" ] ; then
|
||||
PATH=${HOME}/tools/vim:${PATH}
|
||||
fi
|
||||
|
|
@ -11,21 +8,6 @@ if [ -d "${HOME}/.bin" ] ; then
|
|||
PATH=${HOME}/.bin:${PATH}
|
||||
fi
|
||||
|
||||
# see environ manfile
|
||||
export EDITOR=gvim # Default Editor
|
||||
export VISUAL=$EDITOR # Visual not really used differently from EDITOR anymore
|
||||
export LESS='-iMR' # Case insensite search, verbose prompting and raw output
|
||||
export PAGER=less # Used to display text / man files
|
||||
|
||||
|
||||
#
|
||||
# History
|
||||
#
|
||||
HISTCONTROL=ignoredups # No duplicate commands in history
|
||||
HISTSIZE=50000 # For a huge history
|
||||
export HISTIGNORE="[ ]*:&:bg:fg:exit" # Don't save these commands in the history
|
||||
shopt -s histappend # Append to the history file, not overwrite
|
||||
|
||||
# source development settings
|
||||
if [ -f ~/.dev_profile ]; then
|
||||
. ~/.dev_profile
|
||||
|
|
|
|||
17
.dev_profile
17
.dev_profile
|
|
@ -1,15 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
export ERLBIN="/d/Programs/erl6.0/erts-6.0/bin"
|
||||
if [ -d "$ERLBIN" ]; then
|
||||
PATH=${ERLBIN}:${PATH}
|
||||
if [ -d "C:/Windows" ]; then
|
||||
export WINDOWS="TRUE"
|
||||
export GOPATH="$HOME"
|
||||
export GOBIN="$HOME"
|
||||
else
|
||||
export GOPATH="$HOME/../Projects/go"
|
||||
export GOBIN="$HOME/../Projects/go/bin"
|
||||
fi
|
||||
|
||||
|
||||
if [ -d "${HOME}/tools/plugins" ] ; then
|
||||
PATH=${HOME}/tools/plugins:${PATH}
|
||||
fi
|
||||
|
||||
export ERLBIN="/d/Programs/erl6.0/erts-6.0/bin"
|
||||
if [ -d "$ERLBIN" ]; then
|
||||
PATH=${PATH}:${ERLBIN}
|
||||
fi
|
||||
|
||||
|
||||
# see environ manfile
|
||||
export EDITOR=vim # Default Editor
|
||||
export VISUAL=$EDITOR # Visual not really used differently from EDITOR anymore
|
||||
|
|
|
|||
80
.vsvimrc
80
.vsvimrc
|
|
@ -1,80 +0,0 @@
|
|||
"we don't want vi compatibility AKA Make Vim more useful
|
||||
set nocompatible
|
||||
|
||||
set noswapfile
|
||||
set autoread
|
||||
set selection=exclusive
|
||||
|
||||
syntax enable
|
||||
|
||||
" Use the OS clipboard by default (on versions compiled with `+clipboard`)
|
||||
set clipboard=unnamed
|
||||
" Enhance command-line completion
|
||||
set wildmenu
|
||||
" Allow cursor keys in insert mode
|
||||
set esckeys
|
||||
" Allow backspace in insert mode
|
||||
set backspace=indent,eol,start
|
||||
" Optimize for fast terminal connections
|
||||
set ttyfast
|
||||
" Add the g flag to search/replace by default
|
||||
set gdefault
|
||||
" Use UTF-8 without BOM
|
||||
set encoding=utf-8 "nobomb
|
||||
" Change mapleader
|
||||
let mapleader=","
|
||||
" Dont add empty newlines at the end of files
|
||||
set binary
|
||||
set noeol
|
||||
set history=256 " Number of things to remember in history.
|
||||
set t_Co=256
|
||||
" Respect modeline in files
|
||||
set modeline
|
||||
set modelines=4
|
||||
" Enable per-directory .vimrc files and disable unsafe commands in them
|
||||
set exrc
|
||||
set secure
|
||||
" Enable line numbers
|
||||
set number
|
||||
" Enable syntax highlighting
|
||||
syntax on
|
||||
" Highlight current line
|
||||
set cursorline
|
||||
" Make tabs as wide as two spaces
|
||||
set tabstop=2
|
||||
set expandtab
|
||||
set shiftwidth=2
|
||||
" Show “invisible” characters
|
||||
set lcs=tab:▸\ ,trail:·,eol:¬,nbsp:_
|
||||
set list
|
||||
" Highlight searches
|
||||
set hlsearch
|
||||
" Ignore case of searches
|
||||
set ignorecase
|
||||
" Highlight dynamically as pattern is typed
|
||||
set incsearch
|
||||
" Always show status line
|
||||
set laststatus=2
|
||||
" Enable mouse in all modes
|
||||
set mouse=a
|
||||
" Disable error bells
|
||||
set noerrorbells
|
||||
" Dont reset cursor to start of line when moving around.
|
||||
set nostartofline
|
||||
" Show the cursor position
|
||||
set ruler
|
||||
" Dont show the intro message when starting Vim
|
||||
set shortmess=atI
|
||||
" Show the current mode
|
||||
set showmode
|
||||
" Show the filename in the window titlebar
|
||||
set title
|
||||
" Show the (partial) command as its being typed
|
||||
set showcmd
|
||||
" Use relative line numbers
|
||||
if exists("&relativenumber")
|
||||
set relativenumber
|
||||
au BufReadPost * set relativenumber
|
||||
endif
|
||||
" Start scrolling three lines before the horizontal window border
|
||||
set scrolloff=3
|
||||
|
|
@ -4,3 +4,4 @@ if [[ $DEBUG ]] ; then
|
|||
echo "I'm on my work machine!"
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -34,3 +34,4 @@ git://github.com/fholgado/minibufexpl.vim.git
|
|||
git://github.com/mxw/vim-jsx.git
|
||||
git://github.com/groenewege/vim-less.git
|
||||
git://github.com/cakebaker/scss-syntax.vim.git
|
||||
git://github.com/scrooloose/syntastic.git
|
||||
|
|
|
|||
Loading…
Reference in New Issue