Skip to content

Instantly share code, notes, and snippets.

@huydx
Created January 12, 2018 13:47
Show Gist options
  • Select an option

  • Save huydx/3ea6bbe8d39c77660e2e8714e2a3aed2 to your computer and use it in GitHub Desktop.

Select an option

Save huydx/3ea6bbe8d39c77660e2e8714e2a3aed2 to your computer and use it in GitHub Desktop.

Revisions

  1. huydx created this gist Jan 12, 2018.
    57 changes: 57 additions & 0 deletions nvim.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    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