Browse Source

Sync dotfiles

neuraflash
Brandon Cornejo 12 years ago
commit
84586dbd1b
  1. 15
      install.sh
  2. 28
      tmux.conf
  3. 72
      vimrc

15
install.sh

@ -0,0 +1,15 @@
#!/bin/bash
dir=~/dotfiles
files="vimrc tmux.conf"
cd $dir
for file in $files; do
ln -s $dir/$file ~/.$file
done
if [ ! -d ~/.vim/bundle/vundle ]; then
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
vim +BundleInstall +qall
fi

28
tmux.conf

@ -0,0 +1,28 @@
# Stop Vim bindings, use screen defaults
set-option -g prefix C-a
bind-key C-a last-window
# Window size constraints
setw -g aggressive-resize on
# Command piping
bind-key a send-prefix
# Mouse in copy mode
setw -g mode-mouse on
set -g mouse-select-pane on
setw -g alternate-screen on
# Status bar stuff
set -g status-utf8 on
set -g status-keys vi
set -g status-interval 1
set -g status-attr bright
set -g status-left-length 20
set -g status-left '#[fg=green][#[fg=red]#S#[fg=green]]#[default]'
set -g status-justify centre
set -g status-right '[fg=green][ %m/%d %H:%M:%S ]#[default]'
setw -g window-status-current-format '#[fg=yellow] (#I.#P#F#W)#[default]'
setw -g window-status-format '#I#F#W'

72
vimrc

@ -0,0 +1,72 @@
set nocompatible
set laststatus=2
set encoding=utf-8
filetype off
" autocmd
if has("autocmd")
" enable file type detection
"filetype on
filetype indent on
filetype plugin on
set ofu=syntaxcomplete#Complete
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
endif
" basic options
syntax on
set number
set nowrap
set autoindent
" spaces not tabs, etc
set tabstop=8
set softtabstop=4
set shiftwidth=4
set expandtab
" show invisible characters
nmap <leader>l :set list!<CR>
set listchars=tab:▸\ ,eol
" multi-file
set hidden
" shortcut to silently run commands
command -nargs=1 Run <bar>execute ':silent !'.<q-args> <bar>execute ':redraw!'
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
imap <up> <nop>
imap <down> <nop>
imap <left> <nop>
imap <right> <nop>
" lets setup vundle
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" vundle bundles
Bundle 'gmarik/vundle'
" bundles on github
Bundle 'fholgado/minibufexpl.vim.git'
Bundle 'Lokaltog/vim-powerline.git'
Bundle 'Lokaltog/vim-distinguished.git'
Bundle 'scrooloose/nerdtree.git'
" toggle showing nerd-tree
:nmap <leader>e :NERDTreeToggle<CR>
" end tags with a key
imap ,/ </<C-X><C-O>
" toggle line wrap
:nmap <leader>w :setlocal wrap!<CR>:setlocal wrap?<CR>
" dem fancy colors
set t_Co=256
colorscheme distinguished
Loading…
Cancel
Save