Skip to content

Instantly share code, notes, and snippets.

@jackbravo
Created June 20, 2017 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jackbravo/5538d522b384fefd6260b17efbadcdc7 to your computer and use it in GitHub Desktop.
Save jackbravo/5538d522b384fefd6260b17efbadcdc7 to your computer and use it in GitHub Desktop.
My neovim init.vim file
call plug#begin('~/.config/nvim/plugged')
" Polyglot loads language support on demand!
Plug 'sheerun/vim-polyglot'
Plug 'tomasr/molokai'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
let g:deoplete#enable_at_startup = 1
" use tab for completion
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
" Execute code checks, find mistakes, in the background
Plug 'neomake/neomake'
" Run Neomake when I save any buffer
augroup localneomake
autocmd! BufWritePost * Neomake
augroup END
" Don't tell me to use smartquotes in markdown ok?
let g:neomake_markdown_enabled_makers = []
Plug 'tpope/vim-projectionist' " required for some navigation features
Plug 'c-brenn/phoenix.vim'
Plug 'slashmili/alchemist.vim'
Plug 'powerman/vim-plugin-AnsiEsc'
Plug 'cloudhead/neovim-fuzzy'
nnoremap <C-p> :FuzzyOpen<CR>
" Easily manage tags files
Plug 'ludovicchabant/vim-gutentags'
let g:gutentags_cache_dir = '~/.tags_cache'
call plug#end()
" You have to have this after you end the plug section
set background=dark
syntax enable
colorscheme molokai
" Sane tabs
" - Two spaces wide
set tabstop=2
set softtabstop=2
" - Expand them all
set expandtab
" - Indent by 2 spaces by default
set shiftwidth=2
" Use comma for leader
let g:mapleader=','
set number " line numbering
" Highlight search results
set hlsearch
" Incremental search, search as you type
set incsearch
" Ignore case when searching
set ignorecase
" Ignore case when searching lowercase
set smartcase
" Stop highlighting on Enter
map <CR> :noh<CR>
" highlight cursor position
set cursorline
" Set the title of the iterm tab
set title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment