Created
August 7, 2015 02:48
-
-
Save RobAWilkinson/e656834c0f15e424d378 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
call plug#begin('~/.nvim/plugged') | |
Plug 'kien/ctrlp.vim' | |
Plug 'mattn/emmet-vim' | |
Plug 'scrooloose/nerdtree' | |
Plug 'scrooloose/nerdcommenter' | |
Plug 'ervandew/supertab' | |
Plug 'tpope/vim-fugitive' | |
Plug 'tpope/vim-endwise' | |
Plug 'bling/vim-airline' | |
Plug 'elzr/vim-json' | |
Plug 'terryma/vim-multiple-cursors' | |
Plug 'jeetsukumaran/vim-buffergator' | |
Plug 'altercation/vim-colors-solarized' | |
Plug 'rking/ag.vim' | |
Plug 'godlygeek/tabular' | |
Plug 'plasticboy/vim-markdown' | |
Plug 'kchmck/vim-coffee-script' | |
Plug 'slim-template/vim-slim' | |
Plug 'morhetz/gruvbox' | |
Plug 'benekastah/neomake' | |
Plug 'kien/rainbow_parentheses.vim' | |
Plug 'slm-lang/vim-slm' | |
Plug 'floobits/floobits-neovim' | |
Plug 'tpope/vim-fireplace' | |
call plug#end() | |
set shell=/bin/sh | |
syntax on | |
filetype plugin indent on | |
" turn of folding | |
set nofoldenable | |
map <C-D> :NERDTreeToggle<CR> | |
"set colorscheme | |
syntax enable | |
set bg=dark | |
set colorscheme=elflord | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set smarttab | |
set expandtab | |
set laststatus=2 | |
set t_Co=256 | |
set guifont=Inconsolata\ for\ Powerline:h15 | |
set encoding=utf-8 | |
set fillchars+=stl:\ ,stlnc:\ | |
set termencoding=utf-8 | |
set noerrorbells | |
set novisualbell | |
set t_vb= | |
autocmd! GUIEnter * set vb t_vb= | |
let g:tagbar_left = 1 | |
let g:tagbar_width = 30 | |
let g:tagbar_show_visibility = 1 | |
let g:tagbar_iconchars = ['▾', '▸'] | |
" "zz" now puts the line 10% above the middle of the screen instead of dead center | |
if has('float') | |
nnoremap <silent> zz :exec "normal! zz" . float2nr(winheight(0)*0.1) . "\<Lt>C-E>"<CR> | |
endif | |
" Ruby | |
autocmd FileType ruby let g:SuperTabDefaultCompletionType = "context" | |
autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete | |
autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1 | |
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1 | |
autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1 | |
autocmd FileType ruby,eruby let ruby_minlines = 300 | |
autocmd FileType ruby,eruby let ruby_operators = 1 | |
autocmd FileType ruby,eruby let ruby_space_errors = 1 | |
autocmd FileType ruby,eruby let ruby_fold = 1 | |
autocmd FileType ruby setlocal tabstop=2 shiftwidth=2 softtabstop=2 | |
autocmd FileType eruby setlocal tabstop=2 shiftwidth=2 softtabstop=2 | |
" improve autocomplete menu color | |
highlight Pmenu ctermbg=238 gui=bold | |
" Stylesheets | |
autocmd FileType css setlocal tabstop=2 shiftwidth=2 softtabstop=2 foldmethod=indent | |
autocmd FileType scss setlocal tabstop=2 shiftwidth=2 softtabstop=2 foldmethod=indent | |
" Javascript | |
autocmd BufNewFile,BufRead *.json set ft=javascript | |
autocmd FileType javascript setlocal tabstop=2 shiftwidth=2 softtabstop=2 | |
" Make | |
autocmd FileType make setlocal noexpandtab | |
" Coffeescript | |
autocmd FileType coffee setlocal shiftwidth=2 tabstop=2 softtabstop=2 | |
" Tintin++ | |
autocmd BufNewFile,BufRead *.tin set filetype=tintin | |
autocmd FileType tintin setlocal shiftwidth=2 tabstop=2 softtabstop=2 | |
"" C++ | |
autocmd FileType cpp setlocal noexpandtab copyindent preserveindent softtabstop=0 shiftwidth=4 tabstop=4 | |
" Set spell Language | |
setlocal nospell spelllang=en_us | |
" Ctrl P bindings | |
let g:ctrlp_map = '<c-p>' | |
let g:ctrlp_cmd = 'CtrlP' | |
" ctrl p open directory | |
let g:ctrlp_working_path_mode = 'r' | |
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'] | |
" airline | |
" Enable the list of buffers | |
" | |
" Show just the filename | |
let g:airline#extensions#tabline#fnamemod = ':t' | |
let g:airline_theme='gruvbox' | |
let g:airline_powerline_fonts = 1 | |
" NeoMake | |
autocmd! BufWritePost * Neomake | |
let g:neomake_javascript_enabled_makers = ['eslint'] | |
let g:neomake_cpp_clang_maker = { | |
\ 'std':'c++11', | |
\ 'stdlib':'libc++', | |
\ } | |
" Set clipboard to system clipboard | |
set clipboard+=unnamedplus | |
set laststatus=2 | |
" set json to json | |
au BufRead,BufNewFile *.json setfiletype=json | |
" | |
noremap <leader>[ :call ToggleLocationWindow()<cr> | |
let g:location_is_open = 0 | |
function! ToggleLocationWindow() | |
if g:location_is_open | |
:lclose | |
let g:location_is_open = 0 | |
else | |
:lopen | |
let g:location_is_open = 1 | |
endif | |
endfunction | |
" Rainbow parends | |
au VimEnter * RainbowParenthesesToggle | |
au Syntax * RainbowParenthesesLoadRound | |
au Syntax * RainbowParenthesesLoadSquare | |
au Syntax * RainbowParenthesesLoadBraces |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment