Created
March 27, 2016 13:33
-
-
Save bookercodes/0118a23ba882c1f366de to your computer and use it in GitHub Desktop.
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
if (!isdirectory(expand("$HOME/.config/nvim/bundle/neobundle.vim"))) | |
call system(expand("mkdir -p $HOME/.config/nvim/bundle")) | |
call system(expand("git clone https://github.com/Shougo/neobundle.vim ~/.config/nvim/bundle/neobundle.vim")) | |
endif | |
if has('vim_starting') | |
set runtimepath+=/home/booker/.config/nvim/bundle/neobundle.vim/ | |
endif | |
call neobundle#begin() | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
NeoBundle 'Shougo/vimproc.vim', {'build' : 'make'} | |
NeoBundleLazy 'Shougo/unite.vim', { | |
\ 'on_cmd': 'Unite' | |
\ } | |
NeoBundleLazy 'Shougo/vimfiler.vim', { | |
\ 'depends': 'Shougo/unite.vim', | |
\ } | |
NeoBundle 'whatyouhide/vim-gotham' | |
NeoBundle 'tpope/vim-surround' | |
NeoBundle 'tpope/vim-commentary' | |
NeoBundle 'tpope/vim-unimpaired' | |
NeoBundleLazy 'othree/yajs.vim', {'on_ft': 'javascript'} | |
NeoBundleLazy 'gavocanov/vim-js-indent', {'on_ft': 'javascript'} | |
NeoBundle 'kana/vim-operator-user' | |
NeoBundle 'haya14busa/vim-operator-flashy' | |
NeoBundleLazy 'haya14busa/vim-operator-flashy', { | |
\ 'depends': 'vim-operator-user', | |
\ 'on_map': '<Plug>' | |
\ } | |
call neobundle#end() | |
filetype plugin indent on | |
NeoBundleCheck | |
set number | |
set relativenumber | |
syntax enable | |
set background=dark | |
let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1 | |
" Indentation | |
set tabstop=2 | |
set expandtab | |
set shiftwidth=2 | |
autocmd FileType help wincmd L | |
if neobundle#is_installed('vim-gotham') | |
colorscheme gotham | |
endif | |
if neobundle#is_installed('vim-operator-flashy') | |
map y <Plug>(operator-flashy) | |
nmap Y <Plug>(operator-flashy)$ | |
highlight Flashy ctermfg=white | |
endif | |
if neobundle#is_installed('unite.vim') | |
nmap ; [unite] | |
nnoremap <silent> [unite]r :UniteResume -no-start-insert -force-redraw<CR> | |
nnoremap <silent> [unite]g :Unite -no-split grep:.<cr> | |
nnoremap <silent> [unite]f :Unite -no-split file_rec/async<CR> | |
nnoremap <silent> [unite]e :VimFiler<cr> | |
if executable('ag') | |
let s:custom_ag_ignore_arguments= [ | |
\ '--ignore', | |
\ 'node_modules', | |
\ '--ignore', | |
\ '.git' | |
\ ] | |
let g:unite_source_rec_async_command = [ | |
\ 'ag', | |
\ '--follow', | |
\ '--nocolor', | |
\ '--nogroup', | |
\ '--hidden', | |
\ '--ignore-case', | |
\ '-g', | |
\ '' | |
\ ] + s:custom_ag_ignore_arguments | |
let g:unite_source_grep_command = 'ag' | |
let g:unite_source_grep_default_opts = [ | |
\ '--nogroup', | |
\ '--vimgrep', | |
\ '--nocolor', | |
\ '--ignore-case' | |
\ ] + s:custom_ag_ignore_arguments | |
endif | |
endif | |
if neobundle#tap('vimfiler.vim') | |
let g:vimfiler_as_default_explorer = 1 | |
call vimfiler#custom#profile('default', 'context', { | |
\ 'safe': 0, | |
\ 'explorer': 1, | |
\ 'winwidth': 25, | |
\ 'split': 1, | |
\ 'direction': 'topleft', | |
\ 'auto_expand': 1, | |
\ 'no_quit': 1, | |
\ 'force_hide': 1, | |
\ 'parent': 0, | |
\ 'toggle': 1, | |
\ }) | |
call neobundle#untap() | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment