Guest User

neovim 간단설정

a guest
Feb 11th, 2021
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. call plug#begin('~/.config/nvim/plugged')
  2.  
  3. Plug 'vim-airline/vim-airline'
  4. Plug 'jiangmiao/auto-pairs'
  5. Plug 'chriskempson/base16-vim'
  6. Plug 'vim-airline/vim-airline-themes'
  7. Plug 'prabirshrestha/asyncomplete.vim'
  8. Plug 'prabirshrestha/vim-lsp'
  9. Plug 'mattn/vim-lsp-settings'
  10. Plug 'prabirshrestha/asyncomplete-lsp.vim'
  11.  
  12. call plug#end()
  13.  
  14. set path+=**
  15. set wildmenu
  16.  
  17. let g:airline#extensions#tabline#enabled = 1
  18. let g:airline_symbols_ascii = 1
  19. let g:airline_theme = 'base16'
  20.  
  21. inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
  22. inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
  23. inoremap <expr> <cr> pumvisible() ? asyncomplete#close_popup() : "\<cr>"
  24.  
  25. color base16-tomorrow-night
  26. set termguicolors
  27.  
  28. hi Normal guibg=NONE ctermbg=NONE
  29.  
  30. set number
  31.  
  32. set expandtab " expand tab to space
  33. set shiftwidth=4
  34. set tabstop=4
  35.  
  36. set autoindent
  37. set smarttab
  38.  
  39. set showmatch
  40. set ignorecase
  41. set smartcase
  42.  
  43. set virtualedit=block
  44. set gdefault
  45. set incsearch
  46. set inccommand=nosplit "preview for replace
  47. set fileencodings=utf8,euc-kr
  48.  
  49. nnoremap n nzz
  50. nnoremap { {zz
  51. nnoremap } }zz
  52.  
  53. nnoremap j gj
  54. nnoremap k gk
Advertisement
Add Comment
Please, Sign In to add comment