插件下载
sudo pacman -S vim-plug
插件安装
mkdir -p ~/.config/nvim/autoload ~/.config/nvim/plugged
~/.config/nvim/init.vim
:PlugInstall 安装插件
:PlugStatus 查看插件安装状态
配置文件
call plug#begin('~/.config/nvim/plugged')
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
endif
"let g:deoplete#enable_at_startup = 1
"let g:slime_target = "tmux"
"let g:slime_default_config = {"socket_name": "default", "target_pane":":0.0"}
"let g:slime_dont_ask_default = 1
"let g:slime_paste_file = "$HOME/.slime_paste"
Plug 'dapplebeforedawn/vim-typing-practice'
Plug 'zchee/deoplete-jedi'
Plug 'jiangmiao/auto-pairs'
Plug 'vim-airline/vim-airline'
Plug 'mattn/webapi-vim'
Plug 'mattn/vim-gist'
Plug 'jpalardy/vim-slime'
Plug 'preservim/nerdtree'
Plug 'elixir-editors/vim-elixir'
Plug 'altercation/vim-colors-solarized'
Plug 'gleam-lang/gleam.vim'
call plug#end()
" 设置目标为tmux
let g:slime_target = "tmux"
" 为tmux设置默认配置,指定socket_name为tmux_scheme,目标窗格为当前窗口的第1个窗格
let g:slime_default_config = {"socket_name": "default","target_pane":":0.0"}
let g:slime_dont_ask_default = 1
let g:slime_paste_file = "$HOME/.slime_paste"
set number
" 设置默认进行大小写不敏感查找
set ignorecase
set smartcase
call plug#end()
"nnoremap <leader>n :NERDTreeFocus<CR>
"nnoremap <C-n> :NERDTree<CR>
"nnoremap <C-l> :NERDTreeClose<CR>
"nnoremap <C-t> :NERDTreeToggle<CR>
"nnoremap <C-f> :NERDTreeFind<CR>
"
"function! s:load_python_scripts(python_dir)
" if has('python3')
" exe 'python3 sys.path.insert(0, "' . escape(a:python_dir, '\"') . '")'
" python3 from extempore3 import *
" call s:define_extempore_commands('3')
" elseif has('python')
" exe 'python sys.path.insert(0, "' . escape(a:python_dir, '\"') . '")'
" python from extempore2 import *
" call s:define_extempore_commands('')
" endif
"endfunction
"
"function! s:define_extempore_commands(py_version)
" exe 'command! -nargs=* ExConn :python3 connect()'
" exe 'command! -nargs=* ExFileSend :python3 send_entire_file()'
" exe 'command! -nargs=* ExBlockSend :python3 send_commented_block()'
" exe 'command! -nargs=* ExLinesSend :python3 send_block()'
"
"endfunction
"
"call s:load_python_scripts('/home/cwq/tools/nvim_ex_execute/python/')
"
"let g:slime_no_mappings = 1
"
"noremap <unique> <script> <silent> <Plug>ExBlockSend :<c-u>ExBlockSend<cr>
"noremap <unique> <script> <silent> <Plug>ExFileSend :<c-u>ExFileSend<cr>
"noremap <unique> <script> <silent> <Plug>ExLinesSend :<c-u>ExLinesSend<cr>
"
"nmap <c-a><c-a> <Plug>ExBlockSend
"xmap <c-a><c-a> <Plug>ExSelectionSend
"nmap <c-a>v <Plug>ExBlockSend
"nmap <c-a>b <Plug>ExFileSend