Skip to content

Instantly share code, notes, and snippets.

@calopez
Forked from ericson-cepeda/.dotfiles
Created October 1, 2015 22:40
Show Gist options
  • Select an option

  • Save calopez/44bcec451e5338c859f4 to your computer and use it in GitHub Desktop.

Select an option

Save calopez/44bcec451e5338c859f4 to your computer and use it in GitHub Desktop.

Revisions

  1. Ericson Cepeda renamed this gist Oct 1, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Ericson Cepeda revised this gist Aug 11, 2015. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -88,5 +88,7 @@ export AWS_ACCESS_KEY_ID=<KEY>
    export EC2_INI_PATH='/etc/ansible/ec2.ini'

    # VIM
    alias tmux="TERM=screen-256color-bce tmux"
    alias vim="vim +NERDTree"
    export VISUAL=vim
    export EDITOR="$VISUAL"
    alias tmux="TERM=screen-256color tmux"
    alias vim="vim -x"
  3. Ericson Cepeda revised this gist Aug 11, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -434,7 +434,7 @@ endfunction
    inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
    inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : neocomplete#start_manual_complete()
    inoremap <expr><C-@> pumvisible() ? "\<C-y>" : neocomplete#start_manual_complete()."\<C-n>"
    inoremap <expr><C-@> pumvisible() ? "\<C-y>" : neocomplete#start_manual_complete()
    " <C-h>, <BS>: close popup and delete backword char.
    inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>"
    inoremap <expr><BS> neocomplete#smart_close_popup()."\<BS>"
  4. Ericson Cepeda revised this gist Jul 12, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -190,7 +190,7 @@ au BufRead,BufNewFile *.md setlocal formatoptions+=ct
    " set scss files RIGHT
    au BufRead,BufNewFile *.scss set filetype=scss

    " au VimEnter * so $HOME/.vimrc
    " au VimEnter * so $HOME/.vimrc " Uncomment: OSX does not get mouse events.
    let g:nerdtree_tabs_open_on_console_startup=1
    let g:gitgutter_enabled = 1

  5. Ericson Cepeda revised this gist Jul 12, 2015. 1 changed file with 122 additions and 11 deletions.
    133 changes: 122 additions & 11 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -69,14 +69,26 @@ NeoBundle 'xolox/vim-misc'
    NeoBundle 'xolox/vim-shell'
    NeoBundle 'xolox/vim-session'
    NeoBundle 'Glench/Vim-Jinja2-Syntax'
    NeoBundle 'Valloric/YouCompleteMe', {
    \ 'build' : {
    \ 'mac' : './install.sh',
    \ 'unix' : './install.sh',
    \ 'windows' : './install.sh',
    \ 'cygwin' : './install.sh'
    \ }
    \ }
    NeoBundle 'digitaltoad/vim-jade'
    NeoBundle 'ekalinin/Dockerfile.vim'
    NeoBundle 'Shougo/vimproc.vim', {
    \ 'build' : {
    \ 'windows' : 'tools\\update-dll-mingw',
    \ 'cygwin' : 'make -f make_cygwin.mak',
    \ 'mac' : 'make -f make_mac.mak',
    \ 'linux' : 'make',
    \ 'unix' : 'gmake',
    \ },
    \ }
    NeoBundle 'Shougo/neocomplete.vim'
    "NeoBundle 'Valloric/YouCompleteMe', {
    " \ 'build' : {
    " \ 'mac' : './install.sh',
    " \ 'unix' : './install.sh',
    " \ 'windows' : './install.sh',
    " \ 'cygwin' : './install.sh'
    " \ }
    " \ }

    " Tmux
    NeoBundle 'benmills/vimux'
    @@ -126,6 +138,7 @@ set showmode
    set showcmd " Show partial commands in the last line of the Screen
    set wildmenu " Better command line completion
    set autoindent smartindent " Auto/smart indent
    set pastetoggle=<F2>
    set wrap " Wrap lines
    set linebreak
    " note trailing space at end of next line
    @@ -177,8 +190,7 @@ au BufRead,BufNewFile *.md setlocal formatoptions+=ct
    " set scss files RIGHT
    au BufRead,BufNewFile *.scss set filetype=scss

    " OSX to allow mouse actions
    au VimEnter * so $HOME/.vimrc
    " au VimEnter * so $HOME/.vimrc
    let g:nerdtree_tabs_open_on_console_startup=1
    let g:gitgutter_enabled = 1

    @@ -236,7 +248,7 @@ set splitbelow
    set sessionoptions=resize,winpos,winsize,buffers,tabpages,folds,curdir,help

    "" yank text to the OS X clipboard
    set clipboard=unnamed
    set clipboard^=unnamed

    " Set tag file location
    set tags+=.git/tags
    @@ -350,6 +362,7 @@ nmap <Leader>v :e $MYVIMRC<CR>
    nnoremap <Leader><Leader> <c-^>
    nnoremap <Tab> :bn<CR>
    nnoremap <S-Tab> :bp<CR>
    nnoremap <F5> :buffers<CR>:buffer<Space>
    " Buffer closing (without deleting split)
    nnoremap <silent> <Leader>d :bp<Bar>bd #<CR>
    @@ -375,11 +388,109 @@ nnoremap <silent> <Leader>b :CtrlPTag<CR>

    "" PLUGINS -------------------------------------------------------------------


    """"""""""""""
    "NEOCOMPLETE

    let g:neocomplete#use_vimproc = 1
    "Note: This option must set it in .vimrc(_vimrc). NOT IN .gvimrc(_gvimrc)!
    " Disable AutoComplPop.
    let g:acp_enableAtStartup = 0
    " Use neocomplete.
    let g:neocomplete#enable_at_startup = 1
    " Use smartcase.
    let g:neocomplete#enable_smart_case = 1
    " Set minimum syntax keyword length.
    let g:neocomplete#sources#syntax#min_keyword_length = 3
    let g:neocomplete#sources#buffer#max_keyword_width = 60
    let g:neocomplete#lock_buffer_name_pattern = '\*ku\*'

    " Define dictionary.
    let g:neocomplete#sources#dictionary#dictionaries = {
    \ 'default' : '',
    \ 'vimshell' : $HOME.'/.vimshell_hist',
    \ 'scheme' : $HOME.'/.gosh_completions'
    \ }

    " Define keyword.
    if !exists('g:neocomplete#keyword_patterns')
    let g:neocomplete#keyword_patterns = {}
    endif
    let g:neocomplete#keyword_patterns['default'] = '\h\w*'

    " Plugin key-mappings.
    inoremap <expr><C-g> neocomplete#undo_completion()
    inoremap <expr><C-l> neocomplete#complete_common_string()
    " Recommended key-mappings.
    " <CR>: close popup and save indent.
    inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
    function! s:my_cr_function()
    "return neocomplete#close_popup() . "\<CR>"
    " For no inserting <CR> key.
    return pumvisible() ? neocomplete#close_popup() : "\<CR>"
    endfunction
    " <TAB>: completion.
    inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
    inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : neocomplete#start_manual_complete()
    inoremap <expr><C-@> pumvisible() ? "\<C-y>" : neocomplete#start_manual_complete()."\<C-n>"
    " <C-h>, <BS>: close popup and delete backword char.
    inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>"
    inoremap <expr><BS> neocomplete#smart_close_popup()."\<BS>"
    inoremap <expr><C-y> neocomplete#close_popup()
    inoremap <expr><C-e> neocomplete#cancel_popup()
    " Close popup by <Space>.
    inoremap <expr><Space> pumvisible() ? neocomplete#close_popup() : "\<Space>"
    " For cursor moving in insert mode(Not recommended)
    "inoremap <expr><Left> neocomplete#close_popup() . "\<Left>"
    "inoremap <expr><Right> neocomplete#close_popup() . "\<Right>"
    "inoremap <expr><Up> neocomplete#close_popup() . "\<Up>"
    "inoremap <expr><Down> neocomplete#close_popup() . "\<Down>"
    " Or set this.
    "let g:neocomplete#enable_cursor_hold_i = 1
    " Or set this.
    "let g:neocomplete#enable_insert_char_pre = 1

    " AutoComplPop like behavior.
    let g:neocomplete#enable_auto_select = 1

    " Shell like behavior(not recommended).
    "set completeopt+=longest
    "let g:neocomplete#enable_auto_select = 1
    let g:neocomplete#disable_auto_complete = 1
    "inoremap <expr><TAB> pumvisible() ? "\<Down>" : "\<C-x>\<C-u>"

    " Enable omni completion.
    set completeopt-=preview
    autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
    autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
    autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
    autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
    autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags

    " Enable heavy omni completion.
    if !exists('g:neocomplete#sources#omni#input_patterns')
    let g:neocomplete#sources#omni#input_patterns = {}
    endif
    "let g:neocomplete#sources#omni#input_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
    "let g:neocomplete#sources#omni#input_patterns.c = '[^.[:digit:] *\t]\%(\.\|->\)'
    "let g:neocomplete#sources#omni#input_patterns.cpp = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::'

    " For perlomni.vim setting.
    " https://github.com/c9s/perlomni.vim
    let g:neocomplete#sources#omni#input_patterns.perl = '\h\w*->\h\w*\|\h\w*::'



    " Airline, a powerline replacement
    let g:airline_powerline_fonts = 1
    " let g:airline_section_b = '%{getcwd()}'
    " let g:airline_section_c = '%t'
    let g:airline#extensions#tabline#enabled = 1
    " Show just the filename
    let g:airline#extensions#tabline#fnamemod = ':t'
    if !exists('g:airline_symbols')
    let g:airline_symbols = {}
    endif
  6. Ericson Cepeda revised this gist Jun 24, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -177,7 +177,8 @@ au BufRead,BufNewFile *.md setlocal formatoptions+=ct
    " set scss files RIGHT
    au BufRead,BufNewFile *.scss set filetype=scss

    " au VimEnter * NERDTreeTabsOpen
    " OSX to allow mouse actions
    au VimEnter * so $HOME/.vimrc
    let g:nerdtree_tabs_open_on_console_startup=1
    let g:gitgutter_enabled = 1

  7. Ericson Cepeda revised this gist Jun 24, 2015. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -152,7 +152,11 @@ set shell=zsh
    set fileformats=unix
    set ff=unix
    set encoding=utf-8
    set mouse=a
    set mouse=nicr
    if &term =~ '^screen'
    " tmux knows the extended mouse mode
    set ttymouse=xterm2
    endif
    "" Things like whitespace
    set list
    set linespace=3
  8. Ericson Cepeda revised this gist Jun 24, 2015. 1 changed file with 4 additions and 6 deletions.
    10 changes: 4 additions & 6 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -59,6 +59,7 @@ NeoBundle 'scrooloose/nerdtree'
    NeoBundle 'jistr/vim-nerdtree-tabs'
    NeoBundle 'Xuyuanp/nerdtree-git-plugin'
    NeoBundle 'elixir-lang/vim-elixir'
    NeoBundle 'vim-scripts/Vim-R-plugin'
    NeoBundle 'mattreduce/vim-mix'
    NeoBundle 'tpope/vim-sensible'
    NeoBundle 'Matt-Deacalion/vim-systemd-syntax'
    @@ -151,11 +152,7 @@ set shell=zsh
    set fileformats=unix
    set ff=unix
    set encoding=utf-8
    set mouse+=a
    if &term =~ '^screen'
    " tmux knows the extended mouse mode
    set ttymouse=xterm2
    endif
    set mouse=a
    "" Things like whitespace
    set list
    set linespace=3
    @@ -305,7 +302,8 @@ function! <SID>RemoveWhitespaces()
    let l = line(".")
    let c = col(".")
    execute '%s/\s\+$//e'
    " execute '%s/\r//e'
    execute '%s/
    $//ge'
    call cursor(l, c)
    endfunction
    nnoremap <silent> <Leader><Space> :call <SID>RemoveWhitespaces()<CR>
  9. Ericson Cepeda revised this gist Jun 20, 2015. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -151,7 +151,6 @@ set shell=zsh
    set fileformats=unix
    set ff=unix
    set encoding=utf-8
    set mouse=a
    set mouse+=a
    if &term =~ '^screen'
    " tmux knows the extended mouse mode
  10. Ericson Cepeda revised this gist Jun 20, 2015. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -152,6 +152,11 @@ set fileformats=unix
    set ff=unix
    set encoding=utf-8
    set mouse=a
    set mouse+=a
    if &term =~ '^screen'
    " tmux knows the extended mouse mode
    set ttymouse=xterm2
    endif
    "" Things like whitespace
    set list
    set linespace=3
  11. Ericson Cepeda revised this gist Jun 20, 2015. 1 changed file with 11 additions and 3 deletions.
    14 changes: 11 additions & 3 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -43,6 +43,7 @@ NeoBundle 'tpope/vim-commentary'
    NeoBundle 'tpope/vim-eunuch'
    NeoBundle 'tpope/vim-fugitive'
    NeoBundle 'tpope/vim-git'
    NeoBundle 'airblade/vim-gitgutter'
    NeoBundle 'tpope/vim-repeat'
    NeoBundle 'tpope/vim-sensible'
    NeoBundle 'tpope/vim-surround'
    @@ -56,6 +57,7 @@ NeoBundle 'godlygeek/tabular'
    " IDE
    NeoBundle 'scrooloose/nerdtree'
    NeoBundle 'jistr/vim-nerdtree-tabs'
    NeoBundle 'Xuyuanp/nerdtree-git-plugin'
    NeoBundle 'elixir-lang/vim-elixir'
    NeoBundle 'mattreduce/vim-mix'
    NeoBundle 'tpope/vim-sensible'
    @@ -64,6 +66,7 @@ NeoBundle 'vim-scripts/ShowTrailingWhitespace'
    NeoBundle 'vim-scripts/DeleteTrailingWhitespace'
    NeoBundle 'xolox/vim-misc'
    NeoBundle 'xolox/vim-shell'
    NeoBundle 'xolox/vim-session'
    NeoBundle 'Glench/Vim-Jinja2-Syntax'
    NeoBundle 'Valloric/YouCompleteMe', {
    \ 'build' : {
    @@ -85,6 +88,8 @@ NeoBundle 'SirVer/ultisnips'
    NeoBundle 'honza/vim-snippets'
    " Colors
    " NeoBundle 'altercation/vim-colors-solarized'
    " NeoBundle 'chriskempson/vim-tomorrow-theme'
    NeoBundle 'NLKNguyen/papercolor-theme'
    " Syntax
    NeoBundle 'kchmck/vim-coffee-script'
    NeoBundle 'mustache/vim-mustache-handlebars'
    @@ -106,13 +111,14 @@ call neobundle#end()
    """"""""""""

    syntax on
    set background=dark
    set background=light
    set ruler " Show the line number on the bar
    set showmatch " Show matching parenthesis
    set more " Use more prompt
    set autoread " Watch for file changes
    set confirm " Dialog Box to Confirm
    set number " Display Line Numbers
    set laststatus=2
    set nobinary " insert a newline at the end of the document (Unless there already is one)
    set hidden " Re-use the same window and switch from an unsaved buffer without saving it first
    set showmode
    @@ -168,6 +174,7 @@ au BufRead,BufNewFile *.scss set filetype=scss

    " au VimEnter * NERDTreeTabsOpen
    let g:nerdtree_tabs_open_on_console_startup=1
    let g:gitgutter_enabled = 1

    "" who even wants swap files???
    set noswapfile
    @@ -179,7 +186,7 @@ set showmode

    "" display things like newlines, carriage returns, whitespace, etc...
    set listchars=""
    set listchars+=tab:>\
    set listchars+=tab:\
    " set listchars+=eol:¬
    set listchars+=trail:.
    set listchars+=extends:>
    @@ -240,7 +247,8 @@ set wildmode=longest:full
    "execute pathogen#infect()
    set guifont=Inconsolata\ for\ Powerline:h14
    set t_Co=256
    colorscheme PaperColor
    " let g:solarized_termcolors=256
    colorscheme PaperColor " solarized

    let g:neobundle#install_process_timeout = 1500
    """""""""""""
  12. Ericson Cepeda revised this gist Jun 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -45,7 +45,7 @@ bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq v
    set -g status-left-length 32

    # Load status bar conf
    # if-shell "test -f ~/.tmux_statusbar.conf" "source ~/.tmux_statusbar.conf"
    if-shell "test -f ~/.tmux_statusbar.conf" "source ~/.tmux_statusbar.conf"

    # enable activity alerts
    setw -g monitor-activity on
  13. Ericson Cepeda revised this gist Jun 17, 2015. 2 changed files with 4 additions and 5 deletions.
    8 changes: 3 additions & 5 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ bind r source-file ~/.tmux.conf\; display "Configuration file reloaded."
    setw -g utf8 on

    # Set terminal emulator to display 256 colors under tmux
    set-option -g default-terminal "screen-256color-bce"
    set-option -g default-terminal "screen-256color"

    # Set terminal emulator to receive xterm keys
    set-window-option -g xterm-keys on
    @@ -38,16 +38,14 @@ bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq v
    bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
    bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"

    bind r source-file ${HOME}/.tmux.conf \; display-message "source-file reloaded"

    # Use wrapper to get pbcopy/pbpaste working in tmux.
    set-option -g default-command "reattach-to-user-namespace -l zsh"
    # set-option -g default-command "reattach-to-user-namespace -l zsh"

    # Increases length of status-left
    set -g status-left-length 32

    # Load status bar conf
    if-shell "test -f ~/.tmux_statusbar.conf" "source ~/.tmux_statusbar.conf"
    # if-shell "test -f ~/.tmux_statusbar.conf" "source ~/.tmux_statusbar.conf"

    # enable activity alerts
    setw -g monitor-activity on
    1 change: 1 addition & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -159,6 +159,7 @@ set cursorline
    "" use gq to apply formatting
    set textwidth=80
    set colorcolumn=81
    set term=screen-256color

    au BufRead,BufNewFile *.md setlocal formatoptions+=ct

  14. Ericson Cepeda revised this gist Jun 17, 2015. 1 changed file with 9 additions and 4 deletions.
    13 changes: 9 additions & 4 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -55,12 +55,16 @@ NeoBundle 'godlygeek/tabular'

    " IDE
    NeoBundle 'scrooloose/nerdtree'
    NeoBundle 'jistr/vim-nerdtree-tabs'
    NeoBundle 'elixir-lang/vim-elixir'
    NeoBundle 'mattreduce/vim-mix'
    NeoBundle 'tpope/vim-sensible'
    NeoBundle 'Matt-Deacalion/vim-systemd-syntax'
    NeoBundle 'vim-scripts/ShowTrailingWhitespace'
    NeoBundle 'vim-scripts/DeleteTrailingWhitespace'
    NeoBundle 'xolox/vim-misc'
    NeoBundle 'xolox/vim-shell'
    NeoBundle 'Glench/Vim-Jinja2-Syntax'
    NeoBundle 'Valloric/YouCompleteMe', {
    \ 'build' : {
    \ 'mac' : './install.sh',
    @@ -161,7 +165,8 @@ au BufRead,BufNewFile *.md setlocal formatoptions+=ct
    " set scss files RIGHT
    au BufRead,BufNewFile *.scss set filetype=scss

    au VimEnter * NERDTree
    " au VimEnter * NERDTreeTabsOpen
    let g:nerdtree_tabs_open_on_console_startup=1

    "" who even wants swap files???
    set noswapfile
    @@ -172,7 +177,7 @@ set nowb
    set showmode

    "" display things like newlines, carriage returns, whitespace, etc...
    " set listchars=""
    set listchars=""
    set listchars+=tab:>\
    " set listchars+=eol:¬
    set listchars+=trail:.
    @@ -287,7 +292,7 @@ function! <SID>RemoveWhitespaces()
    let l = line(".")
    let c = col(".")
    execute '%s/\s\+$//e'
    execute '%s/\r//ge'
    " execute '%s/\r//e'
    call cursor(l, c)
    endfunction
    nnoremap <silent> <Leader><Space> :call <SID>RemoveWhitespaces()<CR>
    @@ -331,7 +336,7 @@ nnoremap <Tab> :bn<CR>
    nnoremap <S-Tab> :bp<CR>
    " Buffer closing (without deleting split)
    nnoremap <silent> <Leader>d :bp\|bd #<CR>
    nnoremap <silent> <Leader>d :bp<Bar>bd #<CR>


  15. Ericson Cepeda revised this gist Jun 17, 2015. 1 changed file with 75 additions and 0 deletions.
    75 changes: 75 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,75 @@
    # tmux configuration file

    # Bind r to reload this file.
    bind r source-file ~/.tmux.conf\; display "Configuration file reloaded."

    # Set utf-8
    setw -g utf8 on

    # Set terminal emulator to display 256 colors under tmux
    set-option -g default-terminal "screen-256color-bce"

    # Set terminal emulator to receive xterm keys
    set-window-option -g xterm-keys on

    # Sets preferred binding for prefix and viewing windows
    # (if you have used screen, this might be useful)
    set-option -g prefix C-a
    unbind-key C-b
    bind-key C-a send-prefix
    unbind '"'
    bind '"' choose-window

    # Binding to clear shell
    bind C-l send-keys 'C-l'

    # New windows on the same current directory
    bind c new-window -c "#{pane_current_path}"

    # Intuitive pane partitions and on the same current directory
    unbind %
    bind | split-window -h -c "#{pane_current_path}"
    bind - split-window -v -c "#{pane_current_path}"

    # smart pane switching with awareness of vim splits
    bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
    bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
    bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
    bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
    bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"

    bind r source-file ${HOME}/.tmux.conf \; display-message "source-file reloaded"

    # Use wrapper to get pbcopy/pbpaste working in tmux.
    set-option -g default-command "reattach-to-user-namespace -l zsh"

    # Increases length of status-left
    set -g status-left-length 32

    # Load status bar conf
    if-shell "test -f ~/.tmux_statusbar.conf" "source ~/.tmux_statusbar.conf"

    # enable activity alerts
    setw -g monitor-activity on
    set -g visual-activity on

    # Center the window list
    set -g status-justify centre

    # Scroll
    setw -g mode-mouse on
    set -g terminal-overrides 'xterm*:smcup@:rmcup@'

    # Pane and window selection
    set -g mouse-select-window on
    set -g mouse-select-pane on
    set -g mouse-resize-pane on

    # Sets Aggresive Resize for grouped-sessions
    set-window-option -g aggressive-resize on

    # Set escape time to 0, faster command sequences.
    set -s escape-time 0

    # Start indexes at 1
    set -g base-index 1
  16. Ericson Cepeda revised this gist Jun 16, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -287,20 +287,20 @@ function! <SID>RemoveWhitespaces()
    let l = line(".")
    let c = col(".")
    execute '%s/\s\+$//e'
    "execute '%s/\r//g'
    execute '%s/\r//ge'
    call cursor(l, c)
    endfunction
    nnoremap <silent> <Leader><Space> :call <SID>RemoveWhitespaces()<CR>
    au BufRead * %s/\r//ge
    " au BufRead * %s/\r//ge

    " Remove white spaces on write
    augroup AutoRemoveWhitespace
    autocmd!
    autocmd BufWritePre * :call <SID>RemoveWhitespaces()
    augroup END

    autocmd BufWritePre * :%s/\s\+$//e
    " autocmd BufWritePre * :%s/\s\+$//e

    "" up/down keys move by row, rather than line
    nnoremap j gj
  17. Ericson Cepeda revised this gist Jun 16, 2015. 1 changed file with 21 additions and 7 deletions.
    28 changes: 21 additions & 7 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -58,7 +58,9 @@ NeoBundle 'scrooloose/nerdtree'
    NeoBundle 'elixir-lang/vim-elixir'
    NeoBundle 'mattreduce/vim-mix'
    NeoBundle 'tpope/vim-sensible'
    " NeoBundle 'davidhalter/jedi-vim'
    NeoBundle 'Matt-Deacalion/vim-systemd-syntax'
    NeoBundle 'vim-scripts/ShowTrailingWhitespace'
    NeoBundle 'vim-scripts/DeleteTrailingWhitespace'
    NeoBundle 'Valloric/YouCompleteMe', {
    \ 'build' : {
    \ 'mac' : './install.sh',
    @@ -90,6 +92,7 @@ NeoBundle 'cakebaker/scss-syntax.vim'
    NeoBundle 'tpope/vim-liquid'
    NeoBundle 'rodjek/vim-puppet'
    NeoBundle 'fatih/vim-go'
    NeoBundle 'chase/vim-ansible-yaml'

    call neobundle#end()

    @@ -106,12 +109,16 @@ set more " Use more prompt
    set autoread " Watch for file changes
    set confirm " Dialog Box to Confirm
    set number " Display Line Numbers
    set nobinary " insert a newline at the end of the document (Unless there already is one)
    set hidden " Re-use the same window and switch from an unsaved buffer without saving it first
    set showmode
    set showcmd " Show partial commands in the last line of the Screen
    set wildmenu " Better command line completion
    set autoindent smartindent " Auto/smart indent
    set wrap " Wrap lines
    set linebreak
    " note trailing space at end of next line
    set showbreak=>\ \ \
    set smarttab " Tab and Backspace are smart
    set tabstop=4 " 6 spaces
    set shiftwidth=4
    @@ -121,6 +128,7 @@ set ignorecase smartcase " Use case insensitive Search, except when using c
    set scrolloff=5 " keep at least 5 lines above/below
    set sidescrolloff=5 " keep at least 5 lines left/right
    set history=200
    " set backspace=2 " make backspace work like most other apps
    set backspace=indent,eol,start
    set linebreak
    set cmdheight=2 " command line two lines high
    @@ -153,6 +161,8 @@ au BufRead,BufNewFile *.md setlocal formatoptions+=ct
    " set scss files RIGHT
    au BufRead,BufNewFile *.scss set filetype=scss

    au VimEnter * NERDTree

    "" who even wants swap files???
    set noswapfile
    set nobackup
    @@ -162,12 +172,12 @@ set nowb
    set showmode

    "" display things like newlines, carriage returns, whitespace, etc...
    set listchars=""
    set listchars+=tab:\
    " set listchars=""
    set listchars+=tab:>\
    " set listchars+=eol:¬
    " set listchars+=trail:.
    " set listchars+=extends:>
    " set listchars+=precedes:<
    set listchars+=trail:.
    set listchars+=extends:>
    set listchars+=precedes:<

    "" search settings
    set incsearch
    @@ -277,17 +287,20 @@ function! <SID>RemoveWhitespaces()
    let l = line(".")
    let c = col(".")
    execute '%s/\s\+$//e'
    "execute '%s/\r//g'
    call cursor(l, c)
    endfunction
    nnoremap <silent> <Leader><Space> :call <SID>RemoveWhitespaces()<CR>
    au BufRead * %s/\r//ge

    " Remove white spaces on write
    augroup AutoRemoveWhitespace
    autocmd!
    autocmd BufWritePre * :call <SID>RemoveWhitespaces()
    augroup END

    autocmd BufWritePre * :%s/\s\+$//e

    "" up/down keys move by row, rather than line
    nnoremap j gj
    @@ -350,6 +363,7 @@ if !exists('g:airline_symbols')
    let g:airline_symbols = {}
    endif
    let g:airline_symbols.space = "\ua0"
    let g:airline_theme = "sol"

    "" Blockify
    let g:blockify_pairs = {
    @@ -456,4 +470,4 @@ map <Leader>vz :call VimuxZoomRunner()<CR>
    "" Colors and type------------------------------------------------------------
    if has('gui_running')
    set go-=T
    endif
    endif
  18. Ericson Cepeda revised this gist Jun 15, 2015. 1 changed file with 16 additions and 4 deletions.
    20 changes: 16 additions & 4 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -58,7 +58,15 @@ NeoBundle 'scrooloose/nerdtree'
    NeoBundle 'elixir-lang/vim-elixir'
    NeoBundle 'mattreduce/vim-mix'
    NeoBundle 'tpope/vim-sensible'
    NeoBundle 'davidhalter/jedi-vim'
    " NeoBundle 'davidhalter/jedi-vim'
    NeoBundle 'Valloric/YouCompleteMe', {
    \ 'build' : {
    \ 'mac' : './install.sh',
    \ 'unix' : './install.sh',
    \ 'windows' : './install.sh',
    \ 'cygwin' : './install.sh'
    \ }
    \ }

    " Tmux
    NeoBundle 'benmills/vimux'
    @@ -70,7 +78,7 @@ NeoBundle 'jmcantrell/vim-virtualenv'
    NeoBundle 'SirVer/ultisnips'
    NeoBundle 'honza/vim-snippets'
    " Colors
    NeoBundle 'altercation/vim-colors-solarized'
    " NeoBundle 'altercation/vim-colors-solarized'
    " Syntax
    NeoBundle 'kchmck/vim-coffee-script'
    NeoBundle 'mustache/vim-mustache-handlebars'
    @@ -83,7 +91,6 @@ NeoBundle 'tpope/vim-liquid'
    NeoBundle 'rodjek/vim-puppet'
    NeoBundle 'fatih/vim-go'


    call neobundle#end()


    @@ -122,7 +129,7 @@ set updatecount=100 " switch every 100 chars
    set complete=.,w,b,u,U,t,i,d " do lots of scanning on tab completion
    set ttyfast " we have a fast terminal
    set noerrorbells " No error bells please
    set shell=bash
    set shell=zsh
    set fileformats=unix
    set ff=unix
    set encoding=utf-8
    @@ -219,6 +226,7 @@ set guifont=Inconsolata\ for\ Powerline:h14
    set t_Co=256
    colorscheme PaperColor

    let g:neobundle#install_process_timeout = 1500
    """""""""""""
    " Mapping
    """"""""""""
    @@ -338,6 +346,10 @@ let g:airline_powerline_fonts = 1
    " let g:airline_section_b = '%{getcwd()}'
    " let g:airline_section_c = '%t'
    let g:airline#extensions#tabline#enabled = 1
    if !exists('g:airline_symbols')
    let g:airline_symbols = {}
    endif
    let g:airline_symbols.space = "\ua0"

    "" Blockify
    let g:blockify_pairs = {
  19. Ericson Cepeda revised this gist Jun 15, 2015. 1 changed file with 92 additions and 0 deletions.
    92 changes: 92 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,92 @@
    # Path to your oh-my-zsh installation.
    export ZSH=/home/ecepeda/.oh-my-zsh

    # Set name of the theme to load.
    # Look in ~/.oh-my-zsh/themes/
    # Optionally, if you set this to "random", it'll load a random theme each
    # time that oh-my-zsh is loaded.
    ZSH_THEME="robbyrussell"

    # Uncomment the following line to use case-sensitive completion.
    # CASE_SENSITIVE="true"

    # Uncomment the following line to disable bi-weekly auto-update checks.
    # DISABLE_AUTO_UPDATE="true"

    # Uncomment the following line to change how often to auto-update (in days).
    # export UPDATE_ZSH_DAYS=13

    # Uncomment the following line to disable colors in ls.
    # DISABLE_LS_COLORS="true"

    # Uncomment the following line to disable auto-setting terminal title.
    # DISABLE_AUTO_TITLE="true"

    # Uncomment the following line to enable command auto-correction.
    # ENABLE_CORRECTION="true"

    # Uncomment the following line to display red dots whilst waiting for completion.
    # COMPLETION_WAITING_DOTS="true"

    # Uncomment the following line if you want to disable marking untracked files
    # under VCS as dirty. This makes repository status check for large repositories
    # much, much faster.
    # DISABLE_UNTRACKED_FILES_DIRTY="true"

    # Uncomment the following line if you want to change the command execution time
    # stamp shown in the history command output.
    # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
    # HIST_STAMPS="mm/dd/yyyy"

    # Would you like to use another custom folder than $ZSH/custom?
    # ZSH_CUSTOM=/path/to/new-custom-folder

    # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
    # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
    # Example format: plugins=(rails git textmate ruby lighthouse)
    # Add wisely, as too many plugins slow down shell startup.
    plugins=(git)

    # User configuration

    export PATH="/home/ecepeda/.gvm/bin:/usr/local/heroku/bin:/home/ecepeda/.rvm/gems/ruby-2.1.1/bin:/home/ecepeda/.rvm/gems/ruby-2.1.1@global/bin:/home/ecepeda/.rvm/rubies/ruby-2.1.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/ecepeda/.rvm/bin:/home/ecepeda/Downloads/go/bin:/home/ecepeda/go/bin"
    # export MANPATH="/usr/local/man:$MANPATH"

    source $ZSH/oh-my-zsh.sh

    # You may need to manually set your language environment
    # export LANG=en_US.UTF-8

    # Preferred editor for local and remote sessions
    # if [[ -n $SSH_CONNECTION ]]; then
    # export EDITOR='vim'
    # else
    # export EDITOR='mvim'
    # fi

    # Compilation flags
    # export ARCHFLAGS="-arch x86_64"

    # ssh
    # export SSH_KEY_PATH="~/.ssh/dsa_id"

    # Set personal aliases, overriding those provided by oh-my-zsh libs,
    # plugins, and themes. Aliases can be placed here, though oh-my-zsh
    # users are encouraged to define aliases within the ZSH_CUSTOM folder.
    # For a full list of active aliases, run `alias`.
    #
    # Example aliases
    # alias zshconfig="mate ~/.zshrc"
    # alias ohmyzsh="mate ~/.oh-my-zsh"
    alias docker="sudo docker"
    export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
    [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

    source ~/virtualenvs/fabric-locust/bin/activate
    export AWS_SECRET_ACCESS_KEY=<SECRET>
    export AWS_ACCESS_KEY_ID=<KEY>
    export EC2_INI_PATH='/etc/ansible/ec2.ini'

    # VIM
    alias tmux="TERM=screen-256color-bce tmux"
    alias vim="vim +NERDTree"
  20. Ericson Cepeda revised this gist Jun 14, 2015. 1 changed file with 447 additions and 0 deletions.
    447 changes: 447 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,447 @@
    " Note: Skip initialization for vim-tiny or vim-small.
    if 0 | endif

    if has('vim_starting')
    if &compatible
    set nocompatible " Be iMproved
    endif

    " Required:
    set runtimepath+=~/.vim/bundle/neobundle.vim/
    endif

    " Required:
    call neobundle#begin(expand('~/.vim/bundle/'))

    " Let NeoBundle manage NeoBundle
    " Required:
    NeoBundleFetch 'Shougo/neobundle.vim'

    " My Bundles here:
    " Refer to |:NeoBundle-examples|.
    " Note: You don't set neobundle setting in .gvimrc!

    " NeoBundles
    NeoBundle 'Shougo/neosnippet.vim'
    NeoBundle 'Shougo/neosnippet-snippets'
    NeoBundle 'ctrlpvim/ctrlp.vim'
    NeoBundle 'flazz/vim-colorschemes'

    NeoBundle 'bling/vim-airline'
    NeoBundle 'bling/vim-bufferline'
    NeoBundle 'henrik/vim-reveal-in-finder'
    NeoBundle 'jiangmiao/auto-pairs'
    NeoBundle 'kien/ctrlp.vim'
    NeoBundle 'matze/vim-move'
    NeoBundle 'mhinz/vim-signify'
    NeoBundle 'mhinz/vim-startify'
    NeoBundle 'mileszs/ack.vim'
    NeoBundle 'myusuf3/numbers.vim'
    NeoBundle 'scrooloose/syntastic'
    NeoBundle 'sjl/vitality.vim'
    NeoBundle 'tpope/vim-commentary'
    NeoBundle 'tpope/vim-eunuch'
    NeoBundle 'tpope/vim-fugitive'
    NeoBundle 'tpope/vim-git'
    NeoBundle 'tpope/vim-repeat'
    NeoBundle 'tpope/vim-sensible'
    NeoBundle 'tpope/vim-surround'
    NeoBundle 'tpope/vim-unimpaired'
    NeoBundle 'tpope/vim-vinegar'
    NeoBundle 'Lokaltog/vim-easymotion'
    NeoBundle 'terryma/vim-multiple-cursors'
    NeoBundle 'majutsushi/tagbar'
    NeoBundle 'godlygeek/tabular'

    " IDE
    NeoBundle 'scrooloose/nerdtree'
    NeoBundle 'elixir-lang/vim-elixir'
    NeoBundle 'mattreduce/vim-mix'
    NeoBundle 'tpope/vim-sensible'
    NeoBundle 'davidhalter/jedi-vim'

    " Tmux
    NeoBundle 'benmills/vimux'
    NeoBundle 'christoomey/vim-tmux-navigator'
    NeoBundle 'edkolev/tmuxline.vim'
    " Python
    NeoBundle 'jmcantrell/vim-virtualenv'
    " Snippets
    NeoBundle 'SirVer/ultisnips'
    NeoBundle 'honza/vim-snippets'
    " Colors
    NeoBundle 'altercation/vim-colors-solarized'
    " Syntax
    NeoBundle 'kchmck/vim-coffee-script'
    NeoBundle 'mustache/vim-mustache-handlebars'
    NeoBundle 'groenewege/vim-less'
    NeoBundle 'beyondwords/vim-twig'
    NeoBundle 'pangloss/vim-javascript'
    NeoBundle 'tpope/vim-haml'
    NeoBundle 'cakebaker/scss-syntax.vim'
    NeoBundle 'tpope/vim-liquid'
    NeoBundle 'rodjek/vim-puppet'
    NeoBundle 'fatih/vim-go'


    call neobundle#end()


    """""""""""""
    " Basics
    """"""""""""

    syntax on
    set background=dark
    set ruler " Show the line number on the bar
    set showmatch " Show matching parenthesis
    set more " Use more prompt
    set autoread " Watch for file changes
    set confirm " Dialog Box to Confirm
    set number " Display Line Numbers
    set hidden " Re-use the same window and switch from an unsaved buffer without saving it first
    set showmode
    set showcmd " Show partial commands in the last line of the Screen
    set wildmenu " Better command line completion
    set autoindent smartindent " Auto/smart indent
    set wrap " Wrap lines
    set smarttab " Tab and Backspace are smart
    set tabstop=4 " 6 spaces
    set shiftwidth=4
    set expandtab " Using spaces instead of tabs
    set hlsearch " Highlist Searches
    set ignorecase smartcase " Use case insensitive Search, except when using capital letters
    set scrolloff=5 " keep at least 5 lines above/below
    set sidescrolloff=5 " keep at least 5 lines left/right
    set history=200
    set backspace=indent,eol,start
    set linebreak
    set cmdheight=2 " command line two lines high
    set undolevels=1000 " 1000 undos
    set updatecount=100 " switch every 100 chars
    set complete=.,w,b,u,U,t,i,d " do lots of scanning on tab completion
    set ttyfast " we have a fast terminal
    set noerrorbells " No error bells please
    set shell=bash
    set fileformats=unix
    set ff=unix
    set encoding=utf-8
    set mouse=a
    "" Things like whitespace
    set list
    set linespace=3
    set formatoptions=qrn1
    set formatoptions+=w
    set cursorline
    " highlight NonText guifg=#4a4a59
    " highlight SpecialKey guifg=#4a4a59

    "" show where line ends
    "" use gq to apply formatting
    set textwidth=80
    set colorcolumn=81

    au BufRead,BufNewFile *.md setlocal formatoptions+=ct

    " set scss files RIGHT
    au BufRead,BufNewFile *.scss set filetype=scss

    "" who even wants swap files???
    set noswapfile
    set nobackup
    set nowb

    "" what mode is i am?
    set showmode

    "" display things like newlines, carriage returns, whitespace, etc...
    set listchars=""
    set listchars+=tab:▸\
    " set listchars+=eol:¬
    " set listchars+=trail:.
    " set listchars+=extends:>
    " set listchars+=precedes:<

    "" search settings
    set incsearch
    nmap <silent> ,/ :nohlsearch<CR>
    hi Search cterm=NONE ctermfg=white ctermbg=5

    "" undo forever and ever
    silent !mkdir ~/.vim/backups > /dev/null 2>&1
    set undodir=~/.vim/backups
    set undofile

    "" wildcard settings
    set wildignore+=*.o,*.out,*.obj,*.rbc,*.rbo,*.class,*.gem,*.pyc
    set wildignore+=*.zip,*.tar.gz,*.tar.bz2,*.rar,*.tar.xz
    set wildignore+=*/vendor/gems/*,*/vendor/cache/*,*/.bundle/*,*/.sass-cache/*
    set wildignore+=*.swp,*~,._*
    set wildignore+=*/node_modules/*,*/bower_components/*,*/dist/*,*/img/*,*/images/*
    set wildignore+=*/env/*,*/venv/*,*/devenv/*,*/__pycache__/*,*/.divshot-cache/*
    set wildignore+=.DS_Store

    "" set <leader> to ,
    let mapleader = ","
    set timeoutlen=500

    "" enable code folding
    set foldenable
    set foldmethod=syntax
    set foldlevelstart=99

    "" hide mouse when typing
    set mousehide

    "" split windows below the current window.
    set splitbelow

    "" session settings
    set sessionoptions=resize,winpos,winsize,buffers,tabpages,folds,curdir,help

    "" yank text to the OS X clipboard
    set clipboard=unnamed

    " Set tag file location
    set tags+=.git/tags


    " Open new split panes to right and bottom. More natural than default:
    set splitbelow
    set splitright

    filetype on " Enable filetype detection
    filetype indent on " Enable filetype-specific indenting
    filetype plugin on " Enable filetype-specific plugins
    set wildmode=longest:full
    "execute pathogen#infect()
    set guifont=Inconsolata\ for\ Powerline:h14
    set t_Co=256
    colorscheme PaperColor

    """""""""""""
    " Mapping
    """"""""""""

    " Yank till end of line
    map Y y$
    " Map <C-L> (redraw screen) to turn off search highlighting until the next
    " search
    nnoremap <C-L> :nohl<CR><C-L>
    " Map <Space> to / (Search) and <Ctrl>+<Space) for ? (Backward Search)
    map <space> /
    map <c-space> ?
    " Remove the Windows ^M - when the encodings gets messed up
    noremap <Leader>m mmHmt:%s/<C-V><cr>//ge<cr>'tzt'm

    "" map escape key to jk -- much faster
    " also, <C-c> and <C-[>
    imap jk <esc>
    imap jj <esc>
    imap kk <esc>
    "" window navigation
    nnoremap <C-h> <C-w>h
    nnoremap <C-j> <C-w>j
    nnoremap <C-k> <C-w>k
    nnoremap <C-l> <C-w>l
    " Visually select the text that was last edited/pasted
    nmap gV `[v`]


    "" highlight brackets
    hi MatchParen cterm=bold ctermbg=darkmagenta ctermfg=white


    "" preserve indentation while pasting text from the OS X clipboard
    "" use ,p dummy
    noremap <Leader>p :set paste<CR>:put *<CR>:set nopaste<CR>

    "" kill all trailing whitespace
    function! <SID>RemoveWhitespaces()
    let l = line(".")
    let c = col(".")
    execute '%s/\s\+$//e'
    call cursor(l, c)
    endfunction
    nnoremap <silent> <Leader><Space> :call <SID>RemoveWhitespaces()<CR>

    " Remove white spaces on write
    augroup AutoRemoveWhitespace
    autocmd!
    autocmd BufWritePre * :call <SID>RemoveWhitespaces()
    augroup END


    "" up/down keys move by row, rather than line
    nnoremap j gj
    nnoremap k gk
    "" bubble single lines
    nmap <C-Up> [e
    nmap <C-Down> ]e
    "" bubble multiple lines
    vmap <C-Up> [egv
    vmap <C-Down> ]egv


    "" Reload .vimrc after editing and saving
    augroup AutoSourceVimrc
    autocmd!
    autocmd bufwritepost .vimrc source $MYVIMRC
    augroup END

    " Leader-v to edit vimrc
    nmap <Leader>v :e $MYVIMRC<CR>
    " Buffer switching
    nnoremap <Leader><Leader> <c-^>
    nnoremap <Tab> :bn<CR>
    nnoremap <S-Tab> :bp<CR>
    " Buffer closing (without deleting split)
    nnoremap <silent> <Leader>d :bp\|bd #<CR>


    " CTAGS -------------------------------------------------------------------

    " Function to regenerate tag file
    function! FlushCtags()
    silent! exe ":!ctags ."
    endfunction

    " mapping to regenerate tags file
    " silent! nnoremap <silent> TT :call FlushCtags()<CR>

    " mapping to toggle tagbar
    nnoremap <Leader>. :TagbarToggle<cr>
    " mapping to use ctrlp tags function
    nnoremap <silent> <Leader>b :CtrlPTag<CR>

    "" PLUGINS -------------------------------------------------------------------

    " Airline, a powerline replacement
    let g:airline_powerline_fonts = 1
    " let g:airline_section_b = '%{getcwd()}'
    " let g:airline_section_c = '%t'
    let g:airline#extensions#tabline#enabled = 1

    "" Blockify
    let g:blockify_pairs = {
    \ 'c': [ '{', '}' ],
    \ 'cpp': [ '{', '}' ],
    \ 'java': [ '{', '}' ],
    \ 'php': [ '{', '}' ],
    \ 'css': [ '{', '}' ],
    \ 'scss.css': [ '{', '}' ],
    \ 'scss': [ '{', '}' ],
    \ 'javascript': [ '{', '}' ],
    \ 'php.drupal': [ '{', '}' ],
    \}

    "" Numbers
    let g:numbers_exclude = ['nerdtree']

    "" Syntastic
    let g:syntastic_enable_signs=1
    let g:syntastic_auto_jump=0
    let g:syntastic_stl_format = '[%E{Err: %fe #%e}%B{, }%W{Warn: %fw #%w}]'
    let g:syntastic_javascript_checkers = ['jshint']

    "" EasyMotion
    let g:EasyMotion_leader_key = '<Space>'

    "" Ctrlp
    let g:ctrlp_show_hidden = 1
    let g:ctrlp_extensions = ['tag']
    let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'

    "" Tagbar
    let g:tagbar_autofocus = 1
    let g:tagbar_autoclose = 1

    "" Options to add support for Coffeescript
    let g:tagbar_type_coffee = {
    \ 'ctagstype' : 'coffee',
    \ 'kinds' : [
    \ 'c:classes',
    \ 'm:methods',
    \ 'f:functions',
    \ 'v:variables',
    \ 'f:fields',
    \ ]
    \ }

    "" Options to add support for Go
    let g:tagbar_type_go = {
    \ 'ctagstype' : 'go',
    \ 'kinds' : [
    \ 'p:package',
    \ 'i:imports:1',
    \ 'c:constants',
    \ 'v:variables',
    \ 't:types',
    \ 'n:interfaces',
    \ 'w:fields',
    \ 'e:embedded',
    \ 'm:methods',
    \ 'r:constructor',
    \ 'f:functions'
    \ ],
    \ 'sro' : '.',
    \ 'kind2scope' : {
    \ 't' : 'ctype',
    \ 'n' : 'ntype'
    \ },
    \ 'scope2kind' : {
    \ 'ctype' : 't',
    \ 'ntype' : 'n'
    \ },
    \ 'ctagsbin' : 'gotags',
    \ 'ctagsargs' : '-sort -silent'
    \ }

    "" UltiSnips
    let g:UltiSnipsExpandTrigger="<tab>"
    let g:UltiSnipsJumpForwardTrigger="<tab>"
    let g:UltiSnipsJumpBackwardTrigger="<s-tab>"

    "" Vimux
    " Run the current file with rspec
    map <Leader>rb :call VimuxRunCommand("clear; rspec " . bufname("%"))<CR>
    " Prompt for a command to run
    map <Leader>vp :VimuxPromptCommand<CR>
    " Run last command executed by VimuxRunCommand
    map <Leader>vl :VimuxRunLastCommand<CR>
    " Inspect runner pane
    map <Leader>vi :VimuxInspectRunner<CR>
    " Close vim tmux runner opened by VimuxRunCommand
    map <Leader>vq :VimuxCloseRunner<CR>
    " Interrupt any command running in the runner pane
    map <Leader>vx :VimuxInterruptRunner<CR>
    " Zoom the runner pane (use <bind-key> z to restore runner pane)
    map <Leader>vz :call VimuxZoomRunner()<CR>
    "" Colors and type------------------------------------------------------------
    if has('gui_running')
    set go-=T
    endif
  21. Ericson Cepeda created this gist Jun 14, 2015.
    1 change: 1 addition & 0 deletions Dotfiles
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Env config files.