-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
54 lines (47 loc) · 1.23 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
set nocompatible
set nobackup
set nowritebackup
set cmdheight=2
filetype off
set tabstop=1
set termguicolors
set encoding=UTF-8
set rtp+=~/.config/nvim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'neoclide/coc.nvim', {'branch':'release'}
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'preservim/nerdtree'
Plugin 'preservim/nerdcommenter'
Plugin 'jiangmiao/auto-pairs'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'gosukiwi/vim-atom-dark'
Plugin 'ap/vim-css-color'
Plugin 'junegunn/fzf.vim'
Plugin 'ryanoasis/vim-devicons'
call vundle#end()
filetype plugin indent on
set number
let g:airline#extensions#tabline#enabled = 1
nnoremap <C-e> :bn<CR>
"nnoremap <C-S> :update<CR>
inoremap <C-S> <Esc>:update<cr>gi
nnoremap <F10> :NERDTreeToggle<CR>
nnoremap <C-S-x> :qa!<CR>
nnoremap <silent> <F12> <C-\><C-n>:FloatermToggle<CR>
nnoremap <C-j> :bp<CR>
nnoremap <C-k> :bn<CR>
colorscheme atom-dark
autocmd VimEnter * NERDTree | wincmd p
autocmd WinEnter * call s:CloseIfOnlyNerdTreeLeft()
function! s:CloseIfOnlyNerdTreeLeft()
if exists("t:NERDTreeBufName")
if bufwinnr(t:NERDTreeBufName) != -1
if winnr("$") == 1
q
endif
endif
endif
endfunction
syntax on