Skip to content

Instantly share code, notes, and snippets.

@aire-con-gas
Created January 23, 2015 22:15
Show Gist options
  • Select an option

  • Save aire-con-gas/f346812dc01c7101c47e to your computer and use it in GitHub Desktop.

Select an option

Save aire-con-gas/f346812dc01c7101c47e to your computer and use it in GitHub Desktop.
local vimrc overrides
set nocursorline " don't highlight current line
" keyboard shortcuts
inoremap jj <ESC>
nmap <F8> :TagbarToggle<CR>
" highlight search
"set hlsearch
"nmap <leader>hl :let @/ = ""<CR>
" gui settings
colorscheme desert
if (&t_Co == 256 || has('gui_running'))
colorscheme vividchalk
endif
" Disambiguate ,a & ,t from the Align plugin, making them fast again.
"
" This section is here to prevent AlignMaps from adding a bunch of mappings
" that interfere with the very-common ,a and ,t mappings. This will get run
" at every startup to remove the AlignMaps for the *next* vim startup.
"
" If you do want the AlignMaps mappings, remove this section, remove
" ~/.vim/bundle/Align, and re-run rake in maximum-awesome.
function! s:RemoveConflictingAlignMaps()
if exists("g:loaded_AlignMapsPlugin")
AlignMapsClean
endif
endfunction
command! -nargs=0 RemoveConflictingAlignMaps call s:RemoveConflictingAlignMaps()
silent! autocmd VimEnter * RemoveConflictingAlignMaps
set guifont=Source\ Code\ Pro:h13
" vim-tmux-navigator
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l
let g:rspec_command = 'call Send_to_Tmux("rspec {spec}\n")'
"map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>
map <Leader>l :call RunLastSpec()<CR>
"map <Leader>a :call RunAllSpecs()<CR>
set clipboard=unnamed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment