This repository has been archived by the owner on Jan 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
77 lines (60 loc) · 1.64 KB
/
init.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
set rtp+=/usr/local/opt/fzf
set tabstop=4
set softtabstop=4
set shiftwidth=2
set expandtab
set shiftround
set noswapfile
set number
set mouse=a
set ignorecase
set hidden
set smartindent
set list
set clipboard+=unnamedplus
call plug#begin('~/.local/share/nvim/plugged')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'mhartington/nvim-typescript'
Plug 'Yggdroot/indentLine'
Plug 'joshdick/onedark.vim'
Plug 'junegunn/fzf.vim'
Plug 'mbbill/undotree'
Plug 'roman/golden-ratio'
Plug 'scrooloose/nerdcommenter'
Plug 'scrooloose/nerdtree'
Plug 'terryma/vim-multiple-cursors'
Plug 'tpope/vim-fugitive'
Plug 'vim-airline/vim-airline'
Plug 'leafgarland/typescript-vim'
call plug#end()
colorscheme onedark
let mapleader = ","
map <Leader>P :Files<CR>
map <Leader>p :GFiles<CR>
map <Leader>g :GFiles?<CR>
map <Leader>f :Ag
map <Leader>b :Buffers<CR>
map <Leader>d :e $MYVIMRC<CR>
map <Leader>r :so %<CR>
map <Leader>t :NERDTreeToggle<CR>
map <Leader>u :UndotreeToggle<CR>
nmap <leader>, :bprevious<CR>
nmap <leader>. :bnext<CR>
nmap <leader>n :enew<CR>
tnoremap <ESC> <C-\><C-n>
" nerdtree
let g:NERDTreeMouseMode=3
" airline
let g:airline_theme = 'onedark'
" nerdcommenter
let g:NERDSpaceDelims = 1
" deploete
let g:deoplete#enable_at_startup = 1
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
" Convenient command to see the difference between the current buffer and the
" file it was loaded from, thus the changes you made.
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
\ | wincmd p | diffthis
endif