diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..90c51f5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +var/ +vim/bundle/ diff --git a/README.md b/README.md index b23109b..87f1673 100755 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Typically software you buy comes with some sort of installer, why not your dotfiles? After setting up my dotfiles and installation for years, I decided to take a page from [some](https://github.com/necolas) [other](https://github.com/mathiasbynens) [people's](https://github.com/cowboy) [books](http://dotfiles.github.io) and set up a script that will configure my machine to run [ViM as an IDE](http://blog.sanctum.geek.nz/series/unix-as-ide/). Along the way, I figured how to get all of the necessary [Homebrew](http://braumeister.org) & [Node](https://www.npmjs.org) packages installed as well as some useful [Ruby gems](http://rubygems.org). Feel free to [poke around](https://github.com/chrisopedia/dotfiles/commits/master) the repository, [fork it](https://github.com/chrisopedia/dotfiles/fork) to make it your own, [suggest things](https://github.com/chrisopedia/dotfiles/issues?labels=feature+request) for me to include, [log a bug](https://github.com/chrisopedia/dotfiles/issues/new), or maybe checkout the [features list](#features) to see what's included. -[![Version 1.3.0](http://img.shields.io/badge/version-1.3.0-brightgreen.svg)](https://github.com/chrisopedia/bash/releases/tag/1.3.0) [![Stories in Ready](https://badge.waffle.io/chrisopedia/dotfiles.png?label=Ready)](http://waffle.io/chrisopedia/dotfiles) +[![Version 1.3.1](http://img.shields.io/badge/version-1.3.1-brightgreen.svg)](https://github.com/chrisopedia/bash/releases/tag/1.3.1) [![Stories in Ready](https://badge.waffle.io/chrisopedia/dotfiles.png?label=Ready)](http://waffle.io/chrisopedia/dotfiles) ## Installation diff --git a/conf/git/ignore b/conf/git/ignore index f6beeac..6e70d5e 100755 --- a/conf/git/ignore +++ b/conf/git/ignore @@ -1,4 +1,5 @@ -# OS or Editor files +# OS or Editor files # +###################### ._* .DS_Store Thumbs.db @@ -23,6 +24,7 @@ Desktop.ini *.sass-cache *.sw? *.vi +*.viminfo # Compiled source # ################### @@ -46,11 +48,11 @@ Desktop.ini *.xz *.lzma -#packing-only formats +# Packing-only formats *.iso *.tar -#package management formats +# Package management formats *.dmg *.xpi *.gem diff --git a/conf/runcom/bash b/conf/runcom/bash index 0bdd3ca..973b297 100755 --- a/conf/runcom/bash +++ b/conf/runcom/bash @@ -1,3 +1,5 @@ #!/usr/bin/env bash -[ -n "$PS1" ] && source ~/.bash_profile +# http://superuser.com/a/2449900 +[ -r "$PS1" ] && source ~/.bash_profile +# sudo ln -fs /usr/local/opt/dotfiles/conf/bash/profile /var/root/.bash_profile diff --git a/conf/runcom/vim b/conf/runcom/vim index 6440bef..c1ff8d8 100755 --- a/conf/runcom/vim +++ b/conf/runcom/vim @@ -17,8 +17,9 @@ source ${HOME}/.vim/settings/bundles.vim call vundle#end() source ${HOME}/.vim/settings/general.vim -source ${HOME}/.vim/settings/display.vim source ${HOME}/.vim/settings/theme.vim +source ${HOME}/.vim/settings/display.vim +source ${HOME}/.vim/settings/keyboard.vim source ${HOME}/.vim/settings/search.vim +" CtrlP plugin source ${HOME}/.vim/settings/ctrlp.vim -source ${HOME}/.vim/settings/keyboard.vim diff --git a/share/man/man1/dotfiles.1 b/share/man/man1/dotfiles.1 index c9cd2af..0d72b86 100755 --- a/share/man/man1/dotfiles.1 +++ b/share/man/man1/dotfiles.1 @@ -3,7 +3,7 @@ .\" .TH "DOTFILES" 1 "JANUARY 2014" Unix "User Manuals" .SH NAME -\fBdotfile\fR \- Installs all necessary configuration files for development +\fBdotfiles\fR \- Installs all necessary configuration files for development .SH SYNOPSIS \fBdotfiles\fR \-\-version .br diff --git a/vim/settings/ctrlp.vim b/vim/settings/ctrlp.vim index bc4a3c5..d7f7df5 100755 --- a/vim/settings/ctrlp.vim +++ b/vim/settings/ctrlp.vim @@ -7,7 +7,7 @@ let g:ctrlp_custom_ignore = { \ 'file': '\.DS_Store$\|\.jpg$\|\.png$\|\.jpeg$\|\jpeg.gif$\|\.svg$\|\.class$\|\.iml$\|\.log$' \ } " set to 1 will put regex search by default -let g:ctrlp_regexp_search = 0 +let g:ctrlp_regexp_search = 0 " set to 0 for results to show at top; set to 1 for results to show on bottom let g:ctrlp_match_window_bottom = 0 " set to 0 for results matches to show top to bottom; set to 1 for matches to show bottom to top @@ -19,3 +19,9 @@ let g:ctrlp_show_hidden = 1 " set to 1 to search by filename (as opposed to full path) as default let g:ctrlp_by_filename = 0 +" keyboard mappings +nnoremap \ :CtrlP +nnoremap :CtrlPCurFile +nnoremap :CtrlPBuffer +nnoremap m :CtrlPMRUFiles +nnoremap cv :CtrlPTag diff --git a/vim/settings/display.vim b/vim/settings/display.vim index d1cea3a..efc0ad6 100755 --- a/vim/settings/display.vim +++ b/vim/settings/display.vim @@ -3,10 +3,11 @@ if has("syntax") syntax enable " Set 256 color terminal support set t_Co=256 - " Set dark background - set background=dark - " Set colorscheme hi Visual ctermbg=15 ctermfg=0 + " Highlight current line + set cursorline + hi clear CursorLine + hi CursorLine cterm=underline term=underline gui=underline guibg=NONE endif if has("cmdline_info") @@ -37,10 +38,6 @@ endif " Enable line numbers set number hi LineNr ctermbg=NONE ctermfg=white -" Highlight current line -set cursorline -hi clear CursorLine -hi CursorLine cterm=underline term=underline gui=underline guibg=NONE " Show 'invisible' characters set list diff --git a/vim/settings/general.vim b/vim/settings/general.vim index 5cd8a24..976ee91 100755 --- a/vim/settings/general.vim +++ b/vim/settings/general.vim @@ -33,7 +33,7 @@ let mapleader="," " skip over a lot of screen lines. You can use gj and gk to move by screen " lines. " -set wrap +set wrap! set linebreak set nolist set textwidth=0 diff --git a/vim/settings/keyboard.vim b/vim/settings/keyboard.vim index 2b89f9b..4403df6 100755 --- a/vim/settings/keyboard.vim +++ b/vim/settings/keyboard.vim @@ -18,9 +18,3 @@ nnoremap Y y$ vmap >gv vmap \ :CtrlP -nnoremap :CtrlPCurFile -nnoremap :CtrlPBuffer -nnoremap m :CtrlPMRUFiles -nnoremap cv :CtrlPTag diff --git a/vim/settings/wrap.vim b/vim/settings/wrap.vim new file mode 100644 index 0000000..762cb8e --- /dev/null +++ b/vim/settings/wrap.vim @@ -0,0 +1 @@ +map w :set nowrap!