Skip to content

Instantly share code, notes, and snippets.

@huydx
Created January 12, 2018 13:47
Show Gist options
  • Save huydx/3ea6bbe8d39c77660e2e8714e2a3aed2 to your computer and use it in GitHub Desktop.
Save huydx/3ea6bbe8d39c77660e2e8714e2a3aed2 to your computer and use it in GitHub Desktop.
~/.config/nvim/init.vim
call plug#begin('~/.vim/bundle')
" must
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
let b:commandDepends = ['Unite', 'UniteWithBufferDir',
\ 'VimFilerCurrentDir', 'VimFilerBufferDir']
Plug 'Shougo/unite.vim', {'on': b:commandDepends, 'for': ['unite']}
\ | Plug 'Shougo/vimfiler', {'on': b:commandDepends}
Plug 'tpope/vim-commentary' " use gcc to comment line, gc to comment capture
" language
Plug 'tpope/vim-rails'
Plug 'rust-lang/rust.vim'
Plug 'hdima/python-syntax'
Plug 'fatih/vim-go', { 'tag': '*' }
Plug 'elixir-lang/vim-elixir'
Plug 'Rip-Rip/clang_complete'
Plug 'vim-scripts/cscope.vim'
let g:clang_library_path='/usr/local/Cellar/llvm/4.0.1/lib'
" colorscheme
Plug 'mhartington/oceanic-next'
Plug 'junegunn/seoul256.vim'
Plug 'vim-scripts/mayansmoke'
Plug 'rhysd/vim-color-spring-night'
Plug 'joshdick/onedark.vim'
" misc
Plug 'junegunn/goyo.vim'
call plug#end()
:set clipboard=unnamed
:set noswapfile
:set expandtab
:set autoindent
:set tabstop=2
:set shiftwidth=2
:set pastetoggle=<C-z>
:set visualbell
:set hlsearch
:set mouse=a
imap <C-c> <Esc>
nmap <C-f> <Esc>:Unite file<CR>
nmap <C-e> <Esc>:Explore<CR>
nmap <F5> <Esc>:Goyo<CR>
nmap <C-b> <Esc>:Unite buffer<CR>
nmap ; :
nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
if (has("termguicolors"))
set termguicolors
endif
syntax enable
colorscheme spring-night
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment