Skip to content

Instantly share code, notes, and snippets.

@NeMO84
Last active December 31, 2016 06:21
Show Gist options
  • Select an option

  • Save NeMO84/d30c6c7d5df61f57d08d56261320a873 to your computer and use it in GitHub Desktop.

Select an option

Save NeMO84/d30c6c7d5df61f57d08d56261320a873 to your computer and use it in GitHub Desktop.

Revisions

  1. NeMO84 revised this gist Dec 31, 2016. 1 changed file with 13 additions and 7 deletions.
    20 changes: 13 additions & 7 deletions neo-init.vim
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,11 @@
    " yank to clipboard
    if has("clipboard")
    set clipboard=unnamed " copy to the system clipboard
    if has("unnamedplus") " X11 support
    set clipboard+=unnamedplus
    endif
    endif

    " Select your Leader key
    let mapleader = "\<Space>"

    @@ -28,12 +36,9 @@ let &l:softtabstop = s:tabwidth

    let $NVIM_TUI_ENABLE_TRUE_COLOR=1

    if empty(glob('~/.config/nvim/autoload/plug.vim'))
    silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    autocmd VimEnter * PlugInstall
    endif
    call plug#begin('~/.config/nvim/plugged')
    Plug 'scrooloose/nerdtree'
    call plug#begin()

    Plug 'scrooloose/nerdtree'
    Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
    Plug 'godlygeek/tabular'
    Plug 'bling/vim-airline'
    @@ -45,4 +50,5 @@ Plug 'Shougo/neosnippet-snippets'
    Plug 'tpope/vim-unimpaired'
    Plug 'kien/ctrlp.vim'
    Plug 'tpope/vim-commentary'
    call plug#end()

    call plug#end()
  2. NeMO84 revised this gist Dec 30, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions neo-init.vim
    Original file line number Diff line number Diff line change
    @@ -29,8 +29,8 @@ let &l:softtabstop = s:tabwidth
    let $NVIM_TUI_ENABLE_TRUE_COLOR=1

    if empty(glob('~/.config/nvim/autoload/plug.vim'))
    silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    autocmd VimEnter * PlugInstall
    silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    autocmd VimEnter * PlugInstall
    endif
    call plug#begin('~/.config/nvim/plugged')
    Plug 'scrooloose/nerdtree'
  3. NeMO84 revised this gist Dec 30, 2016. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions neo-init.vim
    Original file line number Diff line number Diff line change
    @@ -29,8 +29,7 @@ let &l:softtabstop = s:tabwidth
    let $NVIM_TUI_ENABLE_TRUE_COLOR=1

    if empty(glob('~/.config/nvim/autoload/plug.vim'))
    silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    autocmd VimEnter * PlugInstall
    endif
    call plug#begin('~/.config/nvim/plugged')
  4. NeMO84 revised this gist Dec 30, 2016. 1 changed file with 6 additions and 3 deletions.
    9 changes: 6 additions & 3 deletions neo-init.vim
    Original file line number Diff line number Diff line change
    @@ -28,8 +28,12 @@ let &l:softtabstop = s:tabwidth

    let $NVIM_TUI_ENABLE_TRUE_COLOR=1

    call plug#begin()

    if empty(glob('~/.config/nvim/autoload/plug.vim'))
    silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    autocmd VimEnter * PlugInstall
    endif
    call plug#begin('~/.config/nvim/plugged')
    Plug 'scrooloose/nerdtree'
    Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
    Plug 'godlygeek/tabular'
    @@ -42,5 +46,4 @@ Plug 'Shougo/neosnippet-snippets'
    Plug 'tpope/vim-unimpaired'
    Plug 'kien/ctrlp.vim'
    Plug 'tpope/vim-commentary'

    call plug#end()
  5. NeMO84 created this gist Dec 30, 2016.
    46 changes: 46 additions & 0 deletions neo-init.vim
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    " Select your Leader key
    let mapleader = "\<Space>"

    " Custom Maps
    nnoremap <C-J> <C-W><C-J>
    nnoremap <C-K> <C-W><C-K>
    nnoremap <C-L> <C-W><C-L>
    nnoremap <C-H> <C-W><C-H>
    nnoremap / :Commentary<CR>
    vnoremap / :Commentary<CR>
    nnoremap <Leader>k :NERDTreeToggle<CR>
    nnoremap <Leader>o :FZF<CR>
    nnoremap <Leader>b :CtrlPBuffer<CR>
    nnoremap <Leader>f :CtrlPMRUFiles<CR>
    " SplitPane
    set splitbelow
    set splitright

    " Tabs
    setlocal noexpandtab
    setlocal shiftround
    setlocal autoindent
    let s:tabwidth=2
    let &l:tabstop = s:tabwidth
    let &l:shiftwidth = s:tabwidth
    let &l:softtabstop = s:tabwidth

    let $NVIM_TUI_ENABLE_TRUE_COLOR=1

    call plug#begin()

    Plug 'scrooloose/nerdtree'
    Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
    Plug 'godlygeek/tabular'
    Plug 'bling/vim-airline'
    Plug 'tpope/vim-surround'
    Plug 'airblade/vim-gitgutter'
    Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
    Plug 'Shougo/neosnippet.vim'
    Plug 'Shougo/neosnippet-snippets'
    Plug 'tpope/vim-unimpaired'
    Plug 'kien/ctrlp.vim'
    Plug 'tpope/vim-commentary'

    call plug#end()