-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
86 lines (76 loc) · 1.81 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
78
79
80
81
82
83
84
85
86
" General {
set nu
set nohls
syntax on
set encoding=utf-8
set noswapfile
set clipboard+=unnamed " 共享系统剪切板
set mouse=a
filetype plugin on
set cursorline
set list " 显示换行符
set colorcolumn=80
set viminfofile=
" General }
" Keys {
" move selected line up and down
vmap K :m '<-2<CR>gv=gv
vmap J :m '>+1<CR>gv=gv
" Keys }
" Format {
set tabstop=4
set shiftwidth=4
set smarttab " bs时更快
set autoindent
set expandtab
filetype plugin indent on
autocmd FileType elixir setlocal shiftwidth=2 softtabstop=2
autocmd BufRead,BufNewFile *.mbox setfiletype mail
" Format }
" Color {
hi Normal ctermfg=252 ctermbg=none
" Color }
" Plug {
call plug#begin('~/.vim/plugged')
Plug 'preservim/nerdtree'
Plug 'mhartington/oceanic-next'
Plug 'joshdick/onedark.vim'
Plug 'JuliaEditorSupport/julia-vim'
Plug 'elixir-editors/vim-elixir'
Plug 'gcmt/wildfire.vim'
Plug 'mg979/vim-visual-multi'
Plug 'sainnhe/everforest'
Plug 'rhysd/vim-color-spring-night'
Plug 'hachy/eva01.vim' " Evangelion!
Plug 'nvim-lualine/lualine.nvim'
Plug 'lambdalisue/suda.vim'
Plug 'eandrju/cellular-automaton.nvim'
Plug 'nvim-treesitter/nvim-treesitter'
call plug#end()
nmap <f3> :NERDTreeToggle<CR>
nmap '' :PlugInstall<CR>
if has('termguicolors')
" important!
set termguicolors
endif
let g:everforest_transparent_background=2
colorscheme everforest
set background=dark
lua require('evil_lualine')
" Plug }
" GUI {
" set lines=30 columns=140
set guioptions-=T " toolbar
set guioptions-=m " menubar
set guioptions-=L
set guioptions-=r
set guioptions-=b
set guioptions-=e
set guifont=JetBrainsMono\ Nerd\ Font:h15 " in linux
if exists("g:neovide")
let g:everforest_transparent_background=0
colorscheme everforest
let g:neovide_cursor_vfx_mode = "railgun"
let g:neovide_transparency = 0.9
endif
" GUI }