Created
May 30, 2017 18:51
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inoremap jj <ESC> | |
set encoding=utf-8 | |
set laststatus=2 | |
let g:mustache_abbreviations = 1 | |
syntax enable | |
au BufRead,BufNewFile *.hbs set filetype=handlebars | |
command E Ex | |
set nocompatible | |
let iCanHazNeoBundle=1 | |
let neobundle_readme=expand($HOME.'/.vim/bundle/neobundle.vim/README.md') | |
if !filereadable(neobundle_readme) | |
echo "Installing NeoBundle.." | |
echo "" | |
silent !mkdir -p $HOME/.vim/bundle | |
silent !git clone https://github.com/Shougo/neobundle.vim $HOME/.vim/bundle/neobundle.vim | |
let iCanHazNeoBundle=0 | |
endif | |
if has('vim_starting') | |
set rtp+=$HOME/.vim/bundle/neobundle.vim/ | |
endif | |
call neobundle#begin(expand($HOME.'/.vim/bundle/')) | |
NeoBundle 'Shougo/neobundle.vim' | |
NeoBundle 'tpope/vim-vinegar' | |
NeoBundle 'ctrlpvim/ctrlp.vim' | |
NeoBundle 'altercation/vim-colors-solarized' | |
NeoBundle 'vim-airline/vim-airline' | |
NeoBundle 'vim-airline/vim-airline-themes' | |
NeoBundle 'tpope/vim-commentary' | |
NeoBundle 'scrooloose/syntastic' | |
NeoBundle 'osyo-manga/vim-over' | |
NeoBundle 'thinca/vim-qfreplace' | |
NeoBundle 'kshenoy/vim-signature' | |
NeoBundle 'editorconfig/editorconfig-vim' | |
NeoBundle 'mattn/gist-vim', {'depends': 'mattn/webapi-vim'} | |
" NeoBundle 'SirVer/ultisnips' | |
" NeoBundle 'honza/vim-snippets' | |
NeoBundle 'Valloric/YouCompleteMe', {'build': './install.sh --clang-completer --tern-completer --system-libclang --omnisharp-completer'} | |
call neobundle#end() | |
if iCanHazNeoBundle == 0 | |
echo "Installing Bundles, please ignore key map error messages" | |
echo "" | |
:NeoBundleInstall | |
endif | |
NeoBundleCheck | |
filetype plugin on | |
filetype indent on | |
set nowrap | |
set ignorecase | |
set t_Co=256 | |
set number | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set nobackup | |
set noswapfile | |
set noerrorbells | |
syntax enable | |
let g:airline_theme='molokai' | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline_powerline_fonts = 1 | |
colorscheme solarized | |
let g:solarized_termcolors = &t_Co | |
let g:solarized_termtrans = 1 | |
let g:solarized_termcolors=256 | |
let g:solarized_visibility = "high" | |
let g:solarized_contrast = "high" | |
set background=dark | |
let g:ctrlp_use_caching=0 | |
let g:ctrlp_custom_ignore = 'bin$\|build$\|node_modules$\|tmp$\|dist$\|.git|.bak|.swp|.pyc|.class' | |
let g:ctrlp_working_path_mode = 0 | |
let g:ctrlp_max_files=0 | |
let g:ctrlp_max_height = 18 | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 0 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_javascript_jshint_args = "" | |
" --config $HOME/.jshintrc" | |
let mapleader=" " | |
nnoremap <Tab> :b#<CR> | |
function! VisualFindAndReplace() | |
:OverCommandLine%s/ | |
endfunction | |
function! VisualFindAndReplaceWithSelection() range | |
:'<,'>OverCommandLine s/ | |
endfunction | |
nnoremap <Leader>fr :call VisualFindAndReplace()<CR> | |
xnoremap <Leader>fr :call VisualFindAndReplaceWithSelection()<CR> | |
nnoremap <Leader>ff :CtrlP<CR> | |
nnoremap <Leader>d :bd<CR> | |
nnoremap <Leader>n :bn<CR> | |
nnoremap <Leader>N :bN<CR> | |
nnoremap <Esc><Esc> :nohlsearch<CR> | |
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE | |
nnoremap <C-J> <C-W><C-J> | |
nnoremap <C-K> <C-W><C-K> | |
nnoremap <C-L> <C-W><C-L> | |
nnoremap <C-H> <C-W><C-H> | |
nnoremap <Leader>= <C-W>+ | |
nnoremap <Leader>- <C-W>- | |
nnoremap <Leader>, <C-W>< | |
nnoremap <Leader>. <C-W>> | |
nnoremap <A-h> <C-w>h | |
nnoremap <A-j> <C-w>j | |
nnoremap <A-k> <C-w>k | |
nnoremap <A-l> <C-w>l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment