Last active
May 10, 2019 09:19
-
-
Save christiaan-janssen/270c984489fe3c34cdd159edf035aa88 to your computer and use it in GitHub Desktop.
vim config
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
let vimplug_exists=expand('~/.config/nvim/autoload/plug.vim') | |
if !filereadable(vimplug_exists) | |
if !executable("curl") | |
echoerr "You have to install curl or first install vim-plug yourself!" | |
execute "q!" | |
endif | |
echo "Installing Vim-Plug..." | |
echo "" | |
silent !\curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
let g:not_finish_vimplug = "yes" | |
endif | |
call plug#begin('~/.vim/plugged') | |
Plug 'sheerun/vim-polyglot' | |
Plug 'tpope/vim-surround' | |
Plug 'scrooloose/nerdtree' | |
Plug 'scrooloose/syntastic' | |
Plug 'kien/rainbow_parentheses.vim' | |
Plug 'kassio/neoterm' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'majutsushi/tagbar' | |
Plug 'kien/ctrlp.vim' | |
Plug 'christoomey/vim-tmux-navigator' | |
Plug 'skywind3000/asyncrun.vim' | |
Plug 'morhetz/gruvbox' | |
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
Plug 'neoclide/coc.nvim', {'do': './install.sh nightly'} | |
" CocExtensions | |
Plug 'neoclide/coc-json', {'do': 'yarn install --frozen-lockfile'} | |
Plug 'neoclide/coc-tsserver', {'do': 'yarn install --frozen-lockfile'} | |
Plug 'neoclide/coc-html', {'do': 'yarn install --frozen-lockfile'} | |
Plug 'neoclide/coc-solargraph', {'do': 'yarn install --frozen-lockfile'} | |
Plug 'neoclide/coc-yaml', {'do': 'yarn install --frozen-lockfile'} | |
Plug 'neoclide/coc-python', {'do': 'yarn install --frozen-lockfile'} | |
Plug 'neoclide/coc-highlight', {'do': 'yarn install --frozen-lockfile'} | |
Plug 'neoclide/coc-lists', {'do': 'yarn install --frozen-lockfile'} | |
Plug 'neoclide/coc-git', {'do': 'yarn install --frozen-lockfile'} | |
Plug 'neoclide/coc-yank', {'do': 'yarn install --frozen-lockfile'} | |
Plug 'mileszs/ack.vim' | |
Plug 'vim-ruby/vim-ruby' | |
Plug 'pangloss/vim-javascript' | |
Plug 'plasticboy/vim-markdown' | |
call plug#end() | |
set number | |
silent! helptags ALL | |
filetype off | |
let &runtimepath.=',~/.vim/bundle/neoterm' | |
filetype plugin on | |
"let g:deoplete#enable_at_startup = 1 | |
" Keybindings | |
let mapleader="," | |
imap jk <Esc> | |
nnoremap <silent> <leader>ft :NERDTreeToggle<CR> | |
nnoremap <silent> <F3> :NERDTreeToggle<CR> | |
nnoremap <silent> <F4> :TagbarToggle<CR> | |
nnoremap <silent> <leader>wv :vsplit<CR> | |
nnoremap <silent> <leader>wh :split<CR> | |
nnoremap <silent> <Tab> :bnext<CR> | |
nnoremap <silent> <S-Tab> :bprevious<CR> | |
nnoremap <silent> <leader>ff :CtrlP :pwd<CR> | |
nnoremap <silent> <leader>bb :CtrlPBuffer<CR> | |
" Terminal keymap | |
" | |
:tnoremap jk <C-\><C-n> | |
au VimEnter * RainbowParenthesesToggle | |
au Syntax * RainbowParenthesesLoadRound | |
au Syntax * RainbowParenthesesLoadSquare | |
au Syntax * RainbowParenthesesLoadBraces | |
let g:ackprg = 'ag --vimgrep --smart-case' | |
cnoreabbrev ag Ack | |
cnoreabbrev aG Ack | |
cnoreabbrev Ag Ack | |
cnoreabbrev AG Ack | |
colorscheme gruvbox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment