Skip to content

Instantly share code, notes, and snippets.

@minhoryang
Last active July 26, 2017 09:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save minhoryang/f70de285cee22b827f2c3c6c7f8e7f09 to your computer and use it in GitHub Desktop.
Minhoryang's Neovim HEAD .nvimrc
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
let g:loaded_netrw = 1
let g:loaded_netrwPlugin = 1
let g:NERDTreeChDirMode = 2
let g:NERDTreeMinimalUI = 1
let g:NERDTreeShowHidden = 1
let g:NERDTreeIgnore=['\.git$', '.DS_Store']
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'bogado/file-line' "- for `file.py:20`
Plug 'simnalamburt/vim-mundo', { 'on': 'MundoToggle' }
let g:loaded_python_provider = 1
let g:mundo_prefer_python3 = 1
set undofile
set undodir=~/.config/nvim/undo
set undoreload=0
set nobackup
set noswapfile
Plug 'rhysd/committia.vim' "- for `git commit`
Plug 'airblade/vim-gitgutter' "- for `git status`
let g:gitgutter_sign_column_always = 1
Plug 'bkad/CamelCaseMotion'
map <silent> w <Plug>CamelCaseMotion_w
map <silent> b <Plug>CamelCaseMotion_b
sunmap w
sunmap b
Plug 'vasconcelloslf/vim-foldfocus'
Plug 'terryma/vim-multiple-cursors'
Plug 'terryma/vim-expand-region'
Plug 'tpope/vim-eunuch'
Plug 'osyo-manga/vim-anzu' "- Vim Search Status
nmap n <Plug>(anzu-n-with-echo)
nmap N <Plug>(anzu-N-with-echo)
nmap * <Plug>(anzu-star-with-echo)
nmap # <Plug>(anzu-sharp-with-echo)
nmap <Esc><Esc> <Plug>(anzu-clear-search-status)
set statusline+=%{anzu#search_status()}
Plug 'kassio/neoterm'
let g:neoterm_position = 'vertical'
Plug 'janko-m/vim-test'
let test#strategy = "neoterm"
Plug 'nathanaelkane/vim-indent-guides'
let g:indent_guides_start_level = 1
let g:indent_guides_guide_size = 1
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_color_change_percent = 3
let g:indent_guides_auto_colors = 1
hi IndentGuidesOdd guibg=#354555
hi IndentGuidesEven guibg=#2f3f4f
Plug 'tweekmonster/local-indent.vim', { 'on': 'LocalIndentGuide' }
Plug 'roalddevries/yaml.vim'
Plug 'vim-airline/vim-airline'
let g:airline_powerline_fonts = 1
Plug 'vim-airline/vim-airline-themes'
let g:airline_theme = 'powerlineish'
Plug 'kristijanhusak/vim-hybrid-material'
Plug 'ryanoasis/vim-devicons'
Plug 'zhaocai/GoldenView.Vim' "- Ctrl+L for new split
let g:goldenview__enable_default_mapping = 0
" 1. split to tiled windows
nmap <silent> <C-L> <Plug>GoldenViewSplit
" 2. quickly switch current window with the main pane
" and toggle back
nmap <silent> <F3> <Plug>GoldenViewSwitchMain
nmap <silent> <S-F3> <Plug>GoldenViewSwitchToggle
" 3. jump to next and previous window
nmap <silent> <C-N> <Plug>GoldenViewNext
nmap <silent> <C-P> <Plug>GoldenViewPrevious
Plug 'sheerun/vim-polyglot'
function! DoRemote(arg)
silent UpdateRemotePlugins
endfunction
Plug 'Shougo/deoplete.nvim', { 'do': function('DoRemote') }
let g:deoplete#enable_at_startup = 0
call plug#end()
set encoding=utf8
set backspace=indent,eol,start
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set autoindent nosmartindent
autocmd FileType vim,javascript,yaml setlocal ts=2 sw=2 sts=2
autocmd FileType make set noexpandtab shiftwidth=8 softtabstop=0
set hlsearch
set incsearch
set ignorecase
set smartcase
set showmatch
set nu
set cursorline
set visualbell t_vb=
set novisualbell
set bg=dark
set guioptions=egmrLt
set linespace=1
set guifont='Cousine-for-Powerline':h11
set termguicolors
set fillchars+=vert:.
hi VertSplit guibg=bg guifg=bg
colorscheme hybrid_material
colorscheme hybrid_reverse
set foldmethod=syntax
set foldlevelstart=1
set foldnestmax=4
set foldminlines=15
autocmd FileType yaml setlocal foldmethod=indent foldminlines=0 foldnestmax=3
hi foldcolumn guibg=bg
nnoremap <silent> <Space> @=(foldlevel('.')?'za':"\<Space>")<CR>
vnoremap <Space> zf
nnoremap <F1> :MundoToggle<CR>
nnoremap <F5> :LocalIndentGuide -hl<CR>
nnoremap <F6> :LocalIndentGuide +hl<CR>
nnoremap <F7> :TestSuite .<CR>
nnoremap <F8> :NERDTreeToggle<CR>
nnoremap <F10> :call FoldFocus('vnew')<CR>
map <silent> <F11> <ESC>:r! pbpaste<CR>
map <silent> <F12> <ESC>:exec &mouse!=""? "set mouse=" : "set mouse=nv"<CR>
nmap ]\ <Plug>GitGutterNextHunk
nmap [\ <Plug>GitGutterPrevHunk
command -bar -bang Q quit<bang>
@minhoryang
Copy link
Author

@minhoryang
Copy link
Author

@minhoryang
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment