VIM

为了方便大家在不同的平台都能成功配置,考虑到不同的包管理下载的vim都是不同版本的,这里直接采用源码编译版本进行使用

效果图:

用了一段时间的spacevim 因为不太喜欢它的底部弹窗,索性该用vim

脚本:

#安装代码提示插件
#依赖
sudo apt install g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
sudo update-alternatives --config gcc #切换为gcc-8wget https://github.com/Kitware/CMake/releases/download/v3.17.1/cmake-3.17.1-linux-x86_64.tar.gz
tar -zxvf cmake-3.17.1-linux-x86_64.tar.gz
cd cmake-3.17.1-linux-x86_64
sudp cp /bin/cmake /usr/bin/
sudo cp -r share/cmake-3.17 /usr/sharegit clone https://github.com/vim/vim.git
sudo apt-get install libncurses5-dev python-dev python3-dev libgtk3.0-cil-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
cd vim
sudo ./configure --with-features=huge --enable-multibyte --enable-rubyinterp --enable-pythoninterp --enable-python3interp --enable-luainterp --enable-cscope --enable-gui=gtk3 --enable-perlinterp --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/ --with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/ --prefix=/usr/local/vim
sudo make  #gcc version 8.4.0
sudo make install
sudo cp ./src/vim /usr/bin/#taglist插件依赖
sudo apt-get install ctags#安装插件
file = '~/.vim/bundle/YouCompleteMe'
if [ ! -d "$file"]; thencd ~/.vim/bundlegit clone https://github.com/ycm-core/YouCompleteMe.gitgit submodule update --init --recursivecd ~/.vim/bundle/YouCompleteMepython3 install.py --clang-completer
fi

vim ~/.vimrc

set nocompatible
filetype onset rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()"YouCompleteMe:语句补全插件
set runtimepath+=~/.vim/bundle/YouCompleteMe
autocmd InsertLeave * if pumvisible() == 0|pclose|endif "离开插入模式后自动关闭预览窗口"
let g:ycm_collect_identifiers_from_tags_files = 1           " 开启 YCM基于标签引擎
let g:ycm_collect_identifiers_from_comments_and_strings = 1 " 注释与字符串中的内容也用于补全
let g:syntastic_ignore_files=[".*\.py$"]
let g:ycm_seed_identifiers_with_syntax = 1                  " 语法关键字补全
let g:ycm_complete_in_comments = 1
let g:ycm_confirm_extra_conf = 0                            " 关闭加载.ycm_extra_conf.py提示
let g:ycm_key_list_select_completion = ['<c-n>', '<Down>']  " 映射按键,没有这个会拦截掉tab, 导致其他插件的tab不能用.
let g:ycm_key_list_previous_completion = ['<c-p>', '<Up>']
let g:ycm_complete_in_comments = 1                          " 在注释输入中也能补全
let g:ycm_complete_in_strings = 1                           " 在字符串输入中也能补全
let g:ycm_collect_identifiers_from_comments_and_strings = 1 " 注释和字符串中的文字也会被收入补全
let g:ycm_show_diagnostics_ui = 0                           " 禁用语法检查
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>"             " 回车即选中当前项
nnoremap <c-j> :YcmCompleter GoToDefinitionElseDeclaration<CR>     " 跳转到定义处
let g:ycm_min_num_of_chars_for_completion=2                 " 从第2个键入字符就开始罗列匹配项
"
" github 仓库中的插件 "
Plugin 'VundleVim/Vundle.vim'
let g:ycm_global_ycm_extra_conf='~/.vim/.ycm_extra_conf.py'"主题"
""colorscheme yowish
colorscheme seoul256"自动加执行权限"
au BufWritePost * if getline(1) =~ "^#!" | if getline(1) =~ "/bin/" | silent !chmod +x <afile> | endif | endif"状态栏设置"
""Plugin 'vim-airline/vim-airline'
"vim-airline配置:优化vim界面"
" 显示颜色
""set t_Co=256
""set laststatus=2
" 使用powerline打过补丁的字体
""let g:airline_powerline_fonts = 1
" tabline中当前buffer两端的分隔字符
""let g:airline#extensions#tabline#left_sep = ' '
" tabline中未激活buffer两端的分隔字符
""let g:airline#extensions#tabline#left_alt_sep = ' '
" tabline中buffer显示编号
""let g:airline#extensions#tabline#buffer_nr_show = 1" 映射切换buffer的键位
nnoremap [b :bp<CR>
nnoremap ]b :bn<CR>
" 映射<leader>num到num buffer
map <leader>1 :b 1<CR>
map <leader>2 :b 2<CR>
map <leader>3 :b 3<CR>
map <leader>4 :b 4<CR>
map <leader>5 :b 5<CR>
map <leader>6 :b 6<CR>
map <leader>7 :b 7<CR>
map <leader>8 :b 8<CR>
map <leader>9 :b 9<CR>" vim-scripts 中的插件 "
Plugin 'taglist.vim'
"ctags 配置:F3快捷键显示程序中的各种tags,包括变量和函数等。
map <F3> :TlistToggle<CR>
let Tlist_Use_Right_Window=1
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_WinWidt=25Plugin 'The-NERD-tree'
"NERDTree 配置:F2快捷键显示当前目录树
map <F2> :NERDTreeToggle<CR>
let NERDTreeWinSize=25Plugin 'indentLine.vim'
Plugin 'delimitMate.vim'" 非 github 仓库的插件"
" Plugin 'git://git.wincent.com/command-t.git'
" 本地仓库的插件 "call vundle#end()
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""新文件标题
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"新建.c,.h,.sh,.java文件,自动插入文件头
autocmd BufNewFile *.cpp,*.[ch],*.sh,*.java,*.py exec ":call SetTitle()"
""定义函数SetTitle,自动插入文件头
func SetTitle()"如果文件类型为.sh文件if &filetype == 'sh'call setline(1, "#!/bin/zsh")endifif &filetype == 'cpp'call setline(1, "#include<iostream>")call append(line("."), "")call append(line(".")+1, "int main(){")call append(line(".")+2, "")call append(line(".")+3, "  printf();")call append(line(".")+4, "  return 0;")call append(line(".")+5, "}")endifif &filetype == 'c'call setline(1, "#include<stdio.h>")call append(line("."), "")call append(line(".")+1, "int main(){")call append(line(".")+2, "")call append(line(".")+3, "  printf();")call append(line(".")+4, "  return 0;")call append(line(".")+5, "}")endifif &filetype == 'python'call setline(1, "#!/usr/bin/python3")call append(line("."), "# -*- coding: UTF-8 -*-")endifif &filetype == 'java'call setline(1,"public class ".expand("%"))call append(line("."),"")endif"新建文件后,自动定位到文件末尾autocmd BufNewFile * normal G
endfunc
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"键盘命令
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
map <F5> :call CompileRunGcc()<CR>func! CompileRunGcc()exec "w"if &filetype == 'c'exec '!gcc % -o %< -g -w  'exec '!time ./%<'elseif &filetype == 'cpp'exec '!g++ % -o %< -g -w'exec '!time ./%<'elseif &filetype == 'python'exec '!time python3 %'elseif &filetype == 'sh':!time bash %endif
endfuncnmap <leader>w :w!<cr>
nmap <leader>f :find<cr>" 映射全选+复制 ctrl+a
map <C-A> ggVGY
map! <C-A> <Esc>ggVGY
map <F12> gg=G
" 选中状态下 Ctrl+c 复制
vmap <C-c> "+y
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""实用设置
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" 设置当文件被改动时自动载入
set autoread
" quickfix模式
autocmd FileType c,cpp map <buffer> <leader><space> :w<cr>:make<cr>
"代码补全
set completeopt=preview,menu
"允许插件
filetype plugin on
"共享剪贴板
set clipboard=unnamed
"从不备份
set nobackup
"make 运行
:set makeprg=g++\ -Wall\ \ %
"自动保存
set autowrite
set ruler                   " 打开状态栏标尺
" 设置在状态行显示的信息
set foldcolumn=0
set foldmethod=indent
set foldlevel=3
set foldenable              " 开始折叠
" 不要使用vi的键盘模式,而是vim自己的
set nocompatible
" 语法高亮
syntax on
" 去掉输入错误的提示声音
set noeb
" 在处理未保存或只读文件的时候,弹出确认
set confirm
" 自动缩进
set autoindent
set cindent
" Tab键的宽度
set tabstop=4
" 统一缩进为4
set softtabstop=4
set shiftwidth=4
" 不要用空格代替制表符
set noexpandtab
" 在行和段开始处使用制表符
set smarttab
" 显示行号
set number
" 历史记录数
set history=1000
"禁止生成临时文件
set nobackup
set noswapfile
"搜索忽略大小写
set ignorecase
"搜索逐字符高亮
set hlsearch
set incsearch
"行内替换
set gdefault
"编码设置
set enc=utf-8
set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936
"语言设置
set langmenu=zh_CN.UTF-8
set helplang=cn
" 我的状态行显示的内容(包括文件类型和解码)
" 命令行(在状态行下)的高度,默认为1,这里是2
set cmdheight=1
" 侦测文件类型
filetype on
" 载入文件类型插件
filetype plugin on
" 为特定文件类型载入相关缩进文件
filetype indent on
" 保存全局变量
set viminfo+=!
" 带有如下符号的单词不要被换行分割
set iskeyword+=_,$,@,%,#,-
" 字符间插入的像素行数目
set linespace=0
" 增强模式中的命令行自动完成操作
set wildmenu
" 使回格键(backspace)正常处理indent, eol, start等
set backspace=2
" 允许backspace和光标键跨越行边界
set whichwrap+=<,>,h,l
" 可以在buffer的任何地方使用鼠标(类似office中在工作区双击鼠标定位)
""set mouse=a  这里不需要可视模式 ,可自行打开
set selection=exclusive
set selectmode=mouse,key
" 通过使用: commands命令,告诉我们文件的哪一行被改变过
set report=0
" 在被分割的窗口间显示空白,便于阅读
set fillchars=vert:\ ,stl:\ ,stlnc:\
" 高亮显示匹配的括号
set showmatch
" 匹配括号高亮的时间(单位是十分之一秒)
set matchtime=1
" 光标移动到buffer的顶部和底部时保持3行距离
set scrolloff=3
" 为C程序提供自动缩进
set smartindent
" 高亮显示普通txt文件(需要txt.vim脚本)au BufRead,BufNewFile *  setfiletype txt
"自动补全
:inoremap ( ()<ESC>i
:inoremap ) <c-r>=ClosePair(')')<CR>
":inoremap { {<CR>}<ESC>O
":inoremap } <c-r>=ClosePair('}')<CR>
:inoremap [ []<ESC>i
:inoremap ] <c-r>=ClosePair(']')<CR>
:inoremap " ""<ESC>i
:inoremap ' ''<ESC>i
function! ClosePair(char)if getline('.')[col('.') - 1] == a:charreturn "\<Right>"elsereturn a:charendif
endfunction
filetype plugin indent on
"打开文件类型检测, 加了这句才可以用智能补全
set completeopt=longest,menu
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

终端

脚本

chsh -s /usr/bin/zshpath=${HOME}file=$path'/.oh-my-zsh'
if [ ! -d "$file" ]; thengit clone https://github.com/ohmyzsh/ohmyzsh.git $filecp ${file}/templates/zshrc.zsh-template ~/.zshrc
fifile=$path'/autojump'
if [ ! -d "$file" ]; thengit clone https://github.com/wting/autojump.git $filecd $file./install.py
fifile=$path'/.oh-my-zsh/custom/plugins/zsh-autosuggestions'
if [ ! -d "$file" ]; then
git clone https://github.com/zsh-users/zsh-autosuggestions $file
fifile=$path'/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting'
if [ ! -d "$file" ]; then
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $file
fi

vim ~/.zshrc

export ZSH=$HOME/.oh-my-zshexport https_proxy=http://10.21.159.116:8234;export http_proxy=http://10.21.159.116:8234;export all_proxy=socks5://10.21.159.116:8235
plugins=(git zsh-autosuggestions zsh-syntax-highlighting autojump )  #插件[[ -s ~/.autojump/etc/profile.d/autojump.sh ]] && . ~/.autojump/etc/profile.d/autojump.shZSH_THEME="kennethreitz"  #Mac
#ZSH_THEME="arrow"  #箭头
#ZSH_THEME="awesomepanda"  #也可以
#ZSH_THEME="robbyrussell"  #最好看的主题
#ZSH_THEME="candy"   #带时间
#ZSH_THEME="steeef"   #命令在下面alias cl='clear'
alias python='python3'
alias cat='bat -p'
source $ZSH/oh-my-zsh.sh

为方便使用Leax+vim ,这里我将项目转移到了neovim(现代化vim插件丰富,且容易集成,相当于vim的升级版)

我的neovim使用所需环境:

#!/bin/bash
set -v
brew install neovim yarn
python -m pip install --user --upgrade pynvim#vim迁移到neovim
mkdir -p ~/.config/nvim/
cd ~/.config/nvim
cp ~/.vimrc ./init.vim
alias vim=nvim#更新vim插件
nvim init.vim#vim中 -> :PlugInstall 等待插件更新完毕cd ~/.config/nvim/plugins/markdown-preview.nvim
yarn install && yarn upgrade

这里写入脚本一键运行就好,然后在你的主目录新建.config/nvim 目录在nvim新建配置文件init.vim 配置如下:

  au BufWritePost * if getline(1) =~ "^#!" | if getline(1) =~ "/bin/" | silent execute "!chmod +x <afile>" | endif | endifautocmd BufNewFile *.cpp,*.[ch],*.sh,*.java,*.py exec ":call SetTitle()"func SetTitle()if &filetype == 'sh'call setline(1, "#!/bin/zsh")endifif &filetype == 'cpp'call setline(1, "#include<iostream>")call append(line("."), "")call append(line(".")+1, "int main(){")call append(line(".")+2, "")call append(line(".")+3, "  printf();")call append(line(".")+4, "  return 0;")call append(line(".")+5, "}")endifif &filetype == 'c'call setline(1, "#include<stdio.h>")call append(line("."), "")call append(line(".")+1, "int main(){")call append(line(".")+2, "")call append(line(".")+3, "  printf();")call append(line(".")+4, "  return 0;")call append(line(".")+5, "}")endifif &filetype == 'python'call setline(1, "#!/usr/bin/python3")call append(line("."), "# -*- coding: UTF-8 -*-")endifif &filetype == 'java'call setline(1,"public class ".expand("%"))call append(line("."),"")endifautocmd BufNewFile * normal Gendfunc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""map <F5> :call CompileRunGcc()<CR>map <F6> :call CompileRunGccs()<CR>func! CompileRunGccs()exec "w"if &filetype == 'c'exec '!gcc % -o %< -g -w  'elseif &filetype == 'JavaScript'exec '!time python3 ./douyin.sh'endifendfuncfunc! CompileRunGcc()exec "w"if &filetype == 'c'exec '!gcc % -o %< -g -w  'exec '!time ./%<'elseif &filetype == 'cpp'exec '!g++ % -o %< -g -w'exec '!time ./%<'elseif &filetype == 'JavaScript'exec '!time python3 ./exp.py'elseif &filetype == 'python'exec '!time python3 %'elseif &filetype == 'sh':!time bash %endifendfunc"共享剪贴板set clipboard=unnamed"自动缩进set autoindentset cindent
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Search {set hlsearchset incsearchset ignorecaseset smartcase" }" Others {set fileformats=unix,dos,macset showcmdset hiddenset backspace=indent,eol,start    " Fix backspace indentset mousemodel=popup" }"" Visual {let $NVIM_TUI_ENABLE_TRUE_COLOR=1" Basic {set nolinebreak               " don't wrap at words, messes up copyingset visualbellset wildmode=longest,list,fullset wildmenuset numberwidth=3        " minimun width to use for the number column." }" Syntax {syntax onsyntax enable" }" Cursor {set guicursor=a:ver25-blinkon10"set rulerset nonumber"set cursorlineset scrolloff=3"}" Tab {set list                      " Show tabs differentlyset listchars=tab:>-          " Use >--- for tabs" }" Status {set titleset titleold="Terminal"set titlestring=%Fset noshowmodeset norulerset laststatus=0set noshowcmd" }
""}"" Key-mapping {" Abbreviations {cnoreabbrev W! w!cnoreabbrev Q! q!cnoreabbrev Qall! qall!cnoreabbrev Wq wqcnoreabbrev Wa wacnoreabbrev wQ wqcnoreabbrev WQ wqcnoreabbrev W wcnoreabbrev Q qcnoreabbrev Qall qall"}" Mapping {" Map Leader to ,let mapleader=','" Window navigation {" Allow Alt + {h, j, k, l} to navigate between windows" In all mode including Terminalif has("mac")" Alt+h,j,k,l ==> ˙,∆,˚,¬:tnoremap ˙ <C-\><C-n><C-w>h:tnoremap ∆ <C-\><C-n><C-w>j:tnoremap ˚ <C-\><C-n><C-w>k:tnoremap ¬ <C-\><C-n><C-w>l:nnoremap ˙ <C-w>h:nnoremap ∆ <C-w>j:nnoremap ˚ <C-w>k:nnoremap ¬ <C-w>lelse:tnoremap <A-h> <C-\><C-n><C-w>h:tnoremap <A-j> <C-\><C-n><C-w>j:tnoremap <A-k> <C-\><C-n><C-w>k:tnoremap <A-l> <C-\><C-n><C-w>l:nnoremap <A-h> <C-w>h:nnoremap <A-j> <C-w>j:nnoremap <A-k> <C-w>k:nnoremap <A-l> <C-w>lendif" }" Splitnoremap <Leader>h :<C-u>split<CR>noremap <Leader>v :<C-u>vsplit<CR>" Tabsnnoremap <Tab> gtnnoremap <S-Tab> gTnnoremap <silent> <S-t> :tabnew<CR>" Terminal {nnoremap <silent> <Leader>t :terminal<CR>" exit 'terminal' mode:tnoremap <Esc> <C-\><C-n>"}" Set working directorynnoremap <Leader>. :lcd %:p:h<CR>" Buffer navnoremap <Leader>q :bp<CR>noremap <Leader>w :bn<CR>" Close buffernoremap <Leader>c :bd<CR>" Clean search (highlight)nnoremap <silent> <leader><space> :noh<cr>" }
"" }"" Plugins {let s:vim_plug_dir=expand('~/.config/nvim/autoload')" Vim-Plug {if !filereadable(s:vim_plug_dir.'/plug.vim')execute '!wget https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -P '.s:vim_plug_dirlet s:install_plug=1endifcall plug#begin('~/.config/nvim/plugged')Plug 'Shougo/unite.vim'Plug 'Shougo/neomru.vim'Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }Plug 'zchee/deoplete-jedi'Plug 'mbbill/undotree'Plug 'scrooloose/nerdtree'Plug 'tpope/vim-commentary'Plug 'airblade/vim-gitgutter'Plug 'tpope/vim-fugitive'Plug 'sheerun/vim-polyglot' " Language packsPlug 'scrooloose/syntastic'Plug 'majutsushi/tagbar'Plug 'bronson/vim-trailing-whitespace'Plug 'editorconfig/editorconfig-vim'Plug 'Yggdroot/indentLine'"============================================================================" Color themsPlug 'junegunn/seoul256.vim'Plug 'dylanaraps/wal'
"============================================================================"Plug 'plasticboy/vim-markdown'"let g:vim_markdown_math = 1
"============================================================================"Plug 'iamcco/mathjax-support-for-mkdp'
"============================================================================Plug 'SirVer/ultisnips'Plug 'keelii/vim-snippets'let g:UltiSnipsExpandTrigger = '<tab>'let g:UltiSnipsJumpForwardTrigger = '<tab>'let g:UltiSnipsJumpBackwardTrigger = '<S-tab>'Plug 'lervag/vimtex'let g:tex_flavor='latex'let g:vimtex_view_method='zathura'let g:vimtex_quickfix_mode=0Plug 'KeitaNakamura/tex-conceal.vim'set conceallevel=1let g:tex_conceal='abdmg'hi Conceal ctermbg=nonesetlocal spellset spelllang=en_usinoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
"============================================================================Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
"      let g:mkdp_them ='dark'let g:mkdp_page_title ='Latex'
"============================================================================call plug#end()if exists('s:install_plug')augroup PlugInstallau!au VimEnter * PlugInstallaugroup ENDendif" }" NERDTree {set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.pyc,*.db,*.sqlitelet g:NERDTreeChDirMode=2let NERDTreeShowHidden=1let g:NERDTreeIgnore=['\.rbc$', '\~$', '\.pyc$', '\.db$', '\.sqlite$', '__pycache__']"let g:NERDTreeSortOrder=['^__\.py$', '\/$', '*', '\.swp$', '\.bak$', '\~$']let g:NERDTreeShowBookmarks=1let g:nerdtree_tabs_focus_on_files=1let g:NERDTreeMapOpenInTabSilent = '<RightMouse>'let g:NERDTreeWinSize=30" NERDTree KeyMapping" Locate current file in file systemsnnoremap <silent> <Leader>l :NERDTreeFind<CR>noremap <F2> :NERDTreeToggle<CR>" Close NERDTree if no other window openautocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif" }" vim-commentray {" to support other file type" autocmd FileType apache setlocal commentstring=#\ %s" }" fugitive-git {" noremap <Leader>ga :Gwrite<CR>" noremap <Leader>gc :Gcommit<CR>" noremap <Leader>gsh :Gpush<CR>" noremap <Leader>gll :Gpull<CR>noremap <Leader>gs :Gstatus<CR>noremap <Leader>gb :Gblame<CR>noremap <Leader>gd :Gvdiff<CR>" noremap <Leader>gr :Gremove<CR>" }" Color-thems {colorscheme seoul256"colorscheme wal" }" Unite {call unite#filters#matcher_default#use(['matcher_fuzzy'])nnoremap <Leader>f :<C-u>Unite file_rec/neovim<CR>nnoremap <Leader>e :<C-u>Unite -no-split -buffer-name=mru file_mru<cr>nnoremap <Leader>b :<C-u>Unite -quick-match buffer<cr>nnoremap <Leader>r :<C-u>Unite -no-split -buffer-name=register register<CR>" Start insert.call unite#custom#profile('default', 'context', {\   'start_insert': 1\ })autocmd FileType unite call s:unite_my_settings()function! s:unite_my_settings()"{{{" Overwrite settings.imap <buffer> jj      <Plug>(unite_insert_leave)"imap <buffer> <C-w>     <Plug>(unite_delete_backward_path)imap <buffer><expr> j unite#smart_map('j', '')imap <buffer> <TAB>   <Plug>(unite_select_next_line)imap <buffer> <C-w>     <Plug>(unite_delete_backward_path)imap <buffer> '     <Plug>(unite_quick_match_default_action)nmap <buffer> '     <Plug>(unite_quick_match_default_action)imap <buffer><expr> x\ unite#smart_map('x', "\<Plug>(unite_quick_match_jump)")nmap <buffer> x     <Plug>(unite_quick_match_jump)nmap <buffer> <C-z>     <Plug>(unite_toggle_transpose_window)imap <buffer> <C-z>     <Plug>(unite_toggle_transpose_window)nmap <buffer> <C-j>     <Plug>(unite_toggle_auto_preview)nmap <buffer> <C-r>     <Plug>(unite_narrowing_input_history)imap <buffer> <C-r>     <Plug>(unite_narrowing_input_history)nnoremap <silent><buffer><expr> l\ unite#smart_map('l', unite#do_action('default'))let unite = unite#get_current_unite()if unite.profile_name ==# 'search'nnoremap <silent><buffer><expr> r     unite#do_action('replace')elsennoremap <silent><buffer><expr> r     unite#do_action('rename')endifnnoremap <silent><buffer><expr> cd     unite#do_action('lcd')nnoremap <buffer><expr> S      unite#mappings#set_current_sorters(\ empty(unite#mappings#get_current_sorters()) ?" Runs "split" action by <C-s>.imap <silent><buffer><expr> <C-s>     unite#do_action('split')endfunction"}}}" }" deoplete {let g:deoplete#enable_at_startup = 1"let g:deoplete#enable_smart_case = 1"deoplete tab-completeinoremap <expr><tab> pumvisible() ? "\<c-n>" :"\<tab>"" }"" }

vim\neovim美化 + 终端美化配置相关推荐

  1. 用vim写php,Vim/Neovim中配置PHP的代码调试

    使用了一段时间的Neovim(Vim的一个变种)之后,发现再也离不开了,目前已经把Neovim作为主力开发工具了.刚也把PHP的调试功能给配置上了,这里记录一下在Neovim中配置PHP调试的整个过程 ...

  2. 【Mac】MAC 终端美化教程(来个全套)

    [Mac]MAC 终端美化教程(来个全套) 废话不多,上才艺(最终效果图) 帅不帅!!! 你说帅 按照此教程咔咔一顿操作后,你将获得以下装逼成就: 1.清晰好看的文字提示格式 2.带有自己最靓照骗的背 ...

  3. Win10 / Win11、VScode内置终端美化教程(适用于 oh-my-posh 老版本 新版本请查看官网教程...)

    Win 10 或 Win 11系统 PowerShell 美化(超详细小白教程) 强调:我是新手小白,一路爬坑配置了好几个小时,查了很多教程才勉强配置成功!这里就简单整理一下配置流程和会遇到的一些问题 ...

  4. mac下安装powerline美化终端窗口

    介绍 powerline是一款终端美化插件,可以用在bash,zsh,vim,tmux等等上,用于美化终端显示效果 安装 1.安装powerline,如果没有pip可以通过brew安装,这里不再多说 ...

  5. proteus虚拟终端窗口不显示_Linux终端美化工具(ohmyzsh)

    先上一张自己终端的图片. https://ohmyz.sh/ 安装方法在最后 先明确几个概念 这些概念本身有着非常浓厚的历史气息,随着时代的发展,他们的含义也在发生改变,它们有些已经失去了最初的含义, ...

  6. centos7花里胡哨之终端美化

    centos7花里胡哨之终端美化 只想整天学习 2019-10-06 17:57:03  4872  收藏 27 分类专栏: RHEL7 文章标签: zsh主题设置 centos7终端美化 版权 很多 ...

  7. linux终端 美化 git,linux终端美化oh-my-zsh

    先上一张自己终端的图片. 首先这是我的个人网站,个人博客网站链接点我 这篇文章在我的网站中的网址是这个本篇文章网址在这里,点我.为了更好的阅读体验,最好从这里看,内容都是一样的. 说到正题,终端美化, ...

  8. linux终端界面美化,Ubuntu 18.04系统美化记录:Grub2\主题\登录界面\终端美化

    初装Ubuntu 18.04系统后想美化操作系统,该怎么做?以下为你介绍Ubuntu 18.04美化一体化:Grub2美化.主题美化.登录界面美化.终端美化.以下美化仅是初级介绍,如果需要更多请看Li ...

  9. Windows终端美化

    Windows终端美化教程 一.设置PowerShell默认启动Windows Terminal 从Microsoft Store下载并打开Windows Terminal 点击上方的下拉三角,点击设 ...

最新文章

  1. instance “error” 了怎么办?- 每天5分钟玩转 OpenStack(159)
  2. js 拖动层示例[转]
  3. ITK:从灰度图像计算直方图
  4. 使用CSS3线性渐变实现图片闪光划过效果
  5. greenplum gpfdist应用
  6. Excel VBA遍历文件
  7. 如何实现单链表交换任意两个元素(不包括头结点)
  8. python画彩色螺旋线_Python turtle 绘制彩色螺旋线
  9. visual studio 2013 快速安全ocx(ActiveX控件)开发
  10. r语言ggplot画两条曲线_如何用R语言绘制生存曲线?
  11. 详述查看 MySQL 数据文件存储位置的方法
  12. 再谈10000小时,三板斧破四困境
  13. 遍历某个文件夹中所有文件夹名和文件名
  14. Laya商业级3d实战-06用户输入_u3dApi集成
  15. C++ 面向对象 - 类的多态性与虚函数
  16. 腾讯云 对象存储Java文件上传 学习资料整理
  17. 4.Redis的内存维护策略
  18. 第8章 K8s基础篇-配置管理
  19. 自己总结的HTMLcss
  20. 计算机声卡型号价格,怎么查看电脑的声卡型号?查看声卡型号方法介绍

热门文章

  1. 2023年中国信创产业研究报告
  2. 计算机仿真专业学校,虚拟现实专业好的学校有什么
  3. 追MM和23中设计模式(来自网络)
  4. @RequiresPermissions 在controller上不起作用
  5. 监控宝Windows Phone 7客户端
  6. golang 消息忽略 signal.Ignore(syscall.SIGHUP) 示例
  7. NOIp模拟题 之 肮脏的牧师 (桶排序)
  8. 产品如何做Kubernetes一致性认证
  9. Linux学习-计算机基础
  10. 执行下列python语句将产生的结果是x=2y=2.0_执行下列Python语句将产生的结果是____________。...