Skip to content

Instantly share code, notes, and snippets.

@jonboiser
Created April 15, 2016 15:12
Show Gist options
  • Save jonboiser/0b2618bb619f17934edd341ebb9fb4e5 to your computer and use it in GitHub Desktop.
Save jonboiser/0b2618bb619f17934edd341ebb9fb4e5 to your computer and use it in GitHub Desktop.
init.vim
call plug#begin('~/.config/nvim/plugged')
Plug 'sjl/badwolf'
Plug 'rking/ag.vim'
Plug 'editorconfig/editorconfig-vim'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'Chun-Yang/vim-action-ag'
Plug 'kchmck/vim-coffee-script'
Plug 'tpope/vim-sensible'
Plug 'jszakmeister/vim-togglecursor'
call plug#end()
colorscheme badwolf
syntax enable
let mapleader = ','
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set lazyredraw
set showmatch
set foldenable
set foldlevelstart=10
set foldnestmax=10
set listchars=tab:▸\ ,eol:¬
filetype indent on
nnoremap <space> za
nnoremap ; :
nnoremap <C-P> :FZF<CR>
nnoremap <leader><space> :nohlsearch<CR>
nnoremap j gj
nnoremap k gk
nnoremap B ^
nnoremap E $
nnoremap $ <nop>
nnoremap ^ <nop>
nnoremap gV `[v`]
nnoremap <leader>u :GundoToggle<CR>
nnoremap <leader>a :Ag
nmap <leader>l :set list!<CR>
set number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment