# githubgit clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# or giteegit clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
vim ~/.zshrc
# set ZSH_THEMEZSH_THEME="powerlevel10k/powerlevel10k"# save and quit
:wq
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
vim ~/.zshrc
# set pluginsplugins=(git zsh-autosuggestions)
vimrc
# ~/.vimrcset nocompatible
noremap <Space><Nop>let g:mapleader ="\<Space>""开启真彩色支持
set termguicolors
"开启256色支持
sett_Co=256
colorscheme desert
" 开启文件类型侦测
filetype on
" 根据不同文件类型加载不同插件
filetype plugin on
" show number
set relativenumber
set number
" auto break at column80settextwidth=80" not break word
set linebreak
" 设置新文件的<EOL>格式
setfileformat=unix
" 给出文件的<EOL>格式类型
set fileformats=unix
"setfileformats=unix,dos,mac
set showmatch
setmatchtime=0set ruler
set showmatch
setmatchtime=0set ruler
" Highlight search results
set hlsearch
" Ignore casein search patterns
set ignorecase
" Override the 'ignorecase' option if the search patter ncontains upper case characters
set smartcase
" Live search. While typing a search command, show where the pattern
set incsearch
" Show matching brackets
set showmatch
" Disable higlighting search result on Enter key
nnoremap <silent><leader>hl :nohlsearch<cr>
nmap S :%s/<C-R><C-W>\>//gc<LEFT><LEFT><LEFT>"Indent 2 space
set shiftwidth=2
" Set the width of tab to 2 space
settabstop=2" Replace tab with space
set expandtab
" Backspace delete 2 space
set smarttab
" Configure backspace so it acts as it should act
set backspace=indent,eol,start
set whichwrap+=<,>,h,l
" Patse from clippboard
vmap <Leader>y "+y
vmap <Leader>d "+d
nmap <Leader>p "+p
nmap <Leader>P "+P
vmap <Leader>p "+p
vmap <Leader>P "+P
" Move
map 0 ^
" Treat lone lines as break lines
map j gj
map k gk