Skip to content

Instantly share code, notes, and snippets.

@dvidsilva
Created March 26, 2014 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvidsilva/9774143 to your computer and use it in GitHub Desktop.
Save dvidsilva/9774143 to your computer and use it in GitHub Desktop.
I use https://github.com/square/maximum-awesome for my vim basic config, this two extra files are the local shorcuts and plugins that i add.
Bundle 'chriskempson/tomorrow-theme', {'rtp': 'vim/'}
Bundle "xolox/vim-misc"
Bundle "xolox/vim-session"
Bundle "vim-multiple-cursors"
Bundle 'groenewege/vim-less'
Bundle 'kchmck/vim-coffee-script'
set nocursorline " don't highlight current line
" keyboard shortcuts
inoremap jj <ESC>
" highlight search
"set hlsearch
"nmap <leader>hl :let @/ = ""<CR>
colorscheme Tomorrow-Night
" 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
" let g:user_emmet_leader_key='<C-Z>'
let g:user_emmet_leader_key='hh'
" So we don't have to press shift when we want to get into command mode.
nnoremap ; :
vnoremap ; :
cmap Cd cd %:p:h
set nowrap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment