Created
July 25, 2015 11:12
-
-
Save minivan/764f8ea3f6f5d47a51d2 to your computer and use it in GitHub Desktop.
My NeoVim Config
This file contains 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('~/.vim/plugged') | |
Plug 'junegunn/vim-easy-align' | |
Plug 'tpope/vim-sensible' | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'kien/ctrlp.vim' | |
Plug 'sickill/vim-monokai' | |
Plug 'rking/ag.vim' | |
Plug 'tpope/vim-fugitive' | |
Plug 'tpope/vim-haml' | |
Plug 'kassio/neoterm' | |
call plug#end() | |
set ignorecase | |
set number | |
colorscheme monokai | |
set t_Co=256 | |
set cursorline | |
set expandtab | |
set tabstop=2 | |
set shiftwidth=2 | |
set mouse=a | |
let g:ctrlp_custom_ignore = '\v[\/](\.git|\.hg|\.svn|node_modules|bower_components|tmp)$' | |
" neoterm configs | |
let g:neoterm_position = 'horizontal' | |
let g:neoterm_automap_keys = ',tt' | |
nnoremap <silent> <f10> :TREPLSendFile<cr> | |
nnoremap <silent> <f9> :TREPLSend<cr> | |
vnoremap <silent> <f9> :TREPLSend<cr> | |
" run set test lib | |
nnoremap <silent> ,rt :call neoterm#test#run('all')<cr> | |
nnoremap <silent> ,rf :call neoterm#test#run('file')<cr> | |
nnoremap <silent> ,rr :call neoterm#test#run('current')<cr> | |
command! -nargs=+ Troute :T rake routes | grep <args> | |
" Indent if we're at the beginning of a line. Else, do completion. | |
function! InsertTabWrapper() | |
let col = col('.') - 1 | |
if !col || getline('.')[col - 1] !~ '\k' | |
return "\<tab>" | |
else | |
return "\<c-p>" | |
endif | |
endfunction | |
inoremap <tab> <c-r>=InsertTabWrapper()<cr> | |
inoremap <s-tab> <c-n> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment