diff --git a/bashrc b/bashrc index 0a0444b..0cae5c6 100644 --- a/bashrc +++ b/bashrc @@ -1,3 +1,4 @@ +export PATH="$PATH:$HOME/.bin" # If not running interactively, don't do anything [ -z "$PS1" ] && return @@ -173,8 +174,6 @@ PS0="$PS0 \\[\033[1;32m\]\$(parse_git_branch)\\[\033[0m\]\$ " # export PROMPT_COMMAND="$PROMPT_COMMAND&&updateWindowTitle" #fi #[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* -export PATH="$PATH:$HOME/.bin" -export CDPATH="$CDPATH:/media/Data/" PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting diff --git a/bin b/bin index 3e52be8..74f36c4 160000 --- a/bin +++ b/bin @@ -1 +1 @@ -Subproject commit 3e52be8becafe793a3394fd9f9f1069908e0ea67 +Subproject commit 74f36c4a4d5003a7b952ad4f42da3376d96e3902 diff --git a/starttmux b/starttmux old mode 100644 new mode 100755 diff --git a/vimrc b/vimrc index 32227cb..422daf1 100644 --- a/vimrc +++ b/vimrc @@ -8,12 +8,15 @@ call vundle#rc() " let Vundle manage Vundle " required! -Bundle 'gmarik/vundle' -Bundle 'LaTeX-Box-Team/LaTeX-Box' -Bundle 'tpope/vim-fugitive' +Bundle "gmarik/vundle" +Bundle "LaTeX-Box-Team/LaTeX-Box" +Bundle "tpope/vim-fugitive" Bundle "tpope/vim-unimpaired" -Bundle 'scrooloose/nerdtree' -Bundle 'taglist.vim' +Bundle "scrooloose/nerdtree" +Bundle "scrooloose/nerdcommenter" +Bundle "scrooloose/syntastic" +Bundle "ervandew/supertab" +Bundle "majutsushi/tagbar" Bundle "MarcWeber/vim-addon-mw-utils" Bundle "tomtom/tlib_vim" Bundle "honza/snipmate-snippets" @@ -21,6 +24,7 @@ Bundle "garbas/vim-snipmate" Bundle "SpellCheck" Bundle "mattn/gist-vim" Bundle "mattn/webapi-vim" +Bundle "kien/ctrlp.vim.git" filetype plugin indent on " required! @@ -32,6 +36,7 @@ set list set tabstop=4 set shiftwidth=4 autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class +au FileType py set textwidth=79 autocmd Filetype javascript set ts=4 sts=4 sw=4 expandtab smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class set expandtab set autoindent @@ -52,23 +57,24 @@ set hlsearch let mapleader="," noremap \ , -" Commenting blocks of code. -autocmd FileType c,cpp,java,scala,javascript let b:comment_leader = '// ' -autocmd FileType sh,ruby,python let b:comment_leader = '# ' -autocmd FileType conf,fstab let b:comment_leader = '# ' -autocmd FileType tex let b:comment_leader = '% ' -autocmd FileType mail let b:comment_leader = '> ' -autocmd FileType vim let b:comment_leader = '" ' -noremap ,cc :silent s/^/=escape(b:comment_leader,'\/')/:nohlsearch -noremap ,cu :silent s/^\V=escape(b:comment_leader,'\/')//e:nohlsearch - +" Commenting blocks of code. I don't need it with NerdCommenter +" autocmd FileType c,cpp,java,scala,javascript let b:comment_leader = '// ' +" autocmd FileType sh,ruby,python let b:comment_leader = '# ' +" autocmd FileType conf,fstab let b:comment_leader = '# ' +" autocmd FileType tex let b:comment_leader = '% ' +" autocmd FileType mail let b:comment_leader = '> ' +" autocmd FileType vim let b:comment_leader = '" ' +" noremap ,cc :silent s/^/=escape(b:comment_leader,'\/')/:nohlsearch +" noremap ,cu :silent s/^\V=escape(b:comment_leader,'\/')//e:nohlsearch +" imap "+gP noremap :w imap :w "Custom maps noremap n :NERDTreeToggle -noremap t :TlistToggle +noremap t :TagbarToggle +noremap f :CtrlPMixed "Omni set completeopt=longest,menuone @@ -132,7 +138,4 @@ call InsertStatuslineColor('') au InsertEnter * call InsertStatuslineColor(v:insertmode) au InsertLeave * call InsertStatuslineColor('') - -" Encryption -" set cm=blowfish -" Transparent editing of gpg encrypted files. +set guifont=DejaVu\ Sans\ Mono diff --git a/xinitrc b/xinitrc index adaf98b..d8f4f73 100755 --- a/xinitrc +++ b/xinitrc @@ -1,2 +1,4 @@ -setxkbmap -option ctrl:nocaps +#!/bin/sh +[ -f /etc/xprofile ] && source /etc/xprofile +[ -f ~/.xprofile ] && source ~/.xprofile #caps:swapescape diff --git a/xprofile b/xprofile index 645677e..f059248 100755 --- a/xprofile +++ b/xprofile @@ -1,4 +1,4 @@ # echo "pasado(xprofile)" $(date) >> /tmp/LOG -#setxkbmap -option ctrl:nocaps +setxkbmap -option ctrl:nocaps #xmodmap ~/.Xmodmap -source ~/.xinitrc +#source ~/.xinitrc