Skip to content

Instantly share code, notes, and snippets.

@loa
Created March 3, 2016 18:34
Show Gist options
  • Select an option

  • Save loa/fae0525b85f67ffbd05b to your computer and use it in GitHub Desktop.

Select an option

Save loa/fae0525b85f67ffbd05b to your computer and use it in GitHub Desktop.
Neovim config
call plug#begin('~/.nvim/plugged')
Plug 'tomasr/molokai'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'Shougo/neocomplcache.vim'
Plug 'scrooloose/syntastic'
Plug 'airblade/vim-gitgutter'
Plug 'spolu/dwm.vim'
Plug 'kien/ctrlp.vim'
Plug 'fatih/vim-go'
Plug 'majutsushi/tagbar'
Plug 'ntpeters/vim-better-whitespace'
Plug 'editorconfig/editorconfig-vim'
Plug 'kchmck/vim-coffee-script'
call plug#end()
colorscheme molokai
"set clipboard=exclude:.*
let mapleader=" "
set number relativenumber
autocmd InsertEnter * :set norelativenumber
autocmd InsertLeave * :set relativenumber
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
" Shougo/neocomplcache.vim
let g:neocomplcache_enable_at_startup = 1
" <TAB>: completion.
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<TAB>"
" airblade/vim-gitgutter
let g:gitgutter_max_signs = 5000
" set vim to chdir for each file
set autochdir
" allow backspacing over autoindent, line breaks and over start of insert
set backspace=indent,eol,start
" don't wrap lines
set nowrap
" mouse scroll support
set mouse=a
" syntastic settings
" use python3 checker
let g:syntastic_python_python_exec = '/usr/local/bin/python3'
let g:syntastic_python_checkers = ['flake8']
" show ruler
set ruler
" don't remove indent when inserting #
:inoremap # X<BS>#
" activate spell checking
"setlocal spell spelllang=en_us
" fatih/go-vim
au FileType go nmap <leader>r <Plug>(go-run)
au FileType go nmap <leader>b <Plug>(go-build)
au FileType go nmap <leader>t <Plug>(go-test)
au FileType go nmap <leader>c <Plug>(go-coverage)
" fatih/go-vim fatih/vim-go#367
let g:go_jump_to_error = 0
au FileType go nmap <leader>j :TagbarToggle<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment