Skip to content

Instantly share code, notes, and snippets.

@DennyScott
Last active August 29, 2015 14:00
Show Gist options
  • Save DennyScott/b0c658801e99aff49619 to your computer and use it in GitHub Desktop.
Save DennyScott/b0c658801e99aff49619 to your computer and use it in GitHub Desktop.
vimrc
set nocompatible " be iMproved, required
filetype off "required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
"let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Bundle 'vimwiki/vimwiki'
Bundle 'sukima/xmledit'
Bundle 'godlygeek/tabular'
Bundle 'plasticboy/vim-markdown'
Bundle 'jelera/vim-javascript-syntax'
Bundle 'flazz/vim-colorschemes'
Bundle 'kien/ctrlp.vim'
Bundle 'terryma/vim-multiple-cursors'
Bundle 'pangloss/vim-javascript'
Bundle 'nathanaelkane/vim-indent-guides'
Bundle 'Raimondi/delimitMate'
Bundle 'scrooloose/syntastic'
Bundle 'marijnh/tern_for_vim'
Bundle 'SirVer/ultisnips'
Bundle 'bling/vim-airline'
Bundle 'scrooloose/nerdtree'
Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle 'tomtom/tlib_vim'
Bundle 'honza/vim-snippets'
Bundle 'xolox/vim-notes'
Bundle 'xolox/vim-misc'
Bundle 'lokaltog/vim-easymotion'
Bundle 'ervandew/supertab'
Bundle 'kshenoy/vim-signature'
Bundle 'vim-scripts/SearchComplete'
Bundle 'valloric/MatchTagAlways'
Bundle 'scrooloose/nerdcommenter'
Bundle 'airblade/vim-gitgutter'
Bundle 'Lokaltog/vim-distinguished'
Bundle 'Valloric/YouCompleteMe'
Bundle 'wookiehangover/jshint.vim'
Bundle 'editorconfig/editorconfig-vim'
Plugin 'groenewege/vim-less'
"All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on "required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - list configured plugins
": PluginInstall(!) - install(update) plugins " :PluginSearch(!) foo - search (or refresh cache first) for foo
": PluginClean(!) - confirm(or auto - approve) removal of unused plugins "
"see: h vundle for more details or wikifor FAQ
" Put your non-Plugin stuff after this line
"colorscheme two2tango
set t_Co=256
syntax on
set background=dark
colorscheme hybrid
:set mouse=a
let g:molokai_original = 1
set backupdir=~/Development/tmp
imap < C - c > < CR > < Esc > 0
let g:syntastic_check_on_open=1
let g:ycm_add_preview_to_completeopt=0
let g:ycm_confirm_extra_conf=0
set completeopt-=preview
set laststatus=2
map < C - n > : NERDTreeToggle < CR >
set guifont=Sauce\ Code\ Powerline:h10
let g:airline_powerline_fonts = 1
set directory=~/Development/tmp
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
set number
map < F7 > mzgg = G `z<CR>
au FileType vim,html let b:delimitMate_matchpairs="(:),[:],{:}"
map <C-]> :NERDTreeToggle<CR>
filetype plugin on
syntax on
let delimitMate_expand_cr=1
let g:EasyMotion_do_mapping=0 " Disable default mappings
" Less to CSS Map
nnoremap <Leader>m :w <BAR> !lessc % > %:t:r.css<CR><space>
" These are the tweaks I apply to YCM's config, you don't need them but they might help.
" YCM gives you popups and splits by default that some people might not like, so these should tidy it up a bit for you.
let g:ycm_add_preview_to_completeopt=0
let g:ycm_confirm_extra_conf=0
set completeopt-=preview
" This does what it says on the tin. It will check your file on open too, not just on save.
" You might not want this, so just leave it out if you don't.
let g:syntastic_check_on_open=1
" make YCM compatible with UltiSnips (using supertab)
let g:ycm_key_list_select_completion=['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion=['<C-p>', '<Up>']
let g:SuperTabDefaultCompletionType='<C-n>'
" better key bindings for UltiSnipsExpandTrigger
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<s-tab>""
" Bi-directional find motion
" Jump to anywhere you want with minimal keystrokes, with just one key binding.
" `s { char } { label } `
nmap s <Plug>(easymotion-s)
" or " `s { char } { char } { label } `
" Need one more keystroke, but on average, it may be more comfortable.
nmap s <Plug>(easymotion-s2)
" Turn on case sensitive feature
let g:EasyMotion_smartcase=1
" JK motions: Line motions
map <Leader>j <Plug>(easymotion-j)
map <Leader>k <Plug>(easymotion-k)
" Nerd Commenter Mappings
nmap <D-/> <leader>c<Space>
vmap <D-/> <leader>c<Space>
" Ctrl P Hide
let g:ctrlp_custom_ignore='server\|admin\|platforms\|bower_components\|node_modules\|DS_Store\|git'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment