Vim相关的问题
2022 linux一些 Vim 相关的问题。
you have suspended jobs
在 vim 的正常模式下不小心按到 Ctrl + Z 会暂停当前的作业。
查看当前的作业,使用内置的命令 jobs。
user@system:~$ jobs
[1] + suspended  ranger
使用 fg (foregound) 命令恢复暂停挂起的作业。
相关链接:https://unix.stackexchange.com/questions/116959/there-are-stopped-jobs-on-bash-exit
复制到剪切板
在 Windows 下可以参考 https://superuser.com/questions/1291425/windows-subsystem-linux-make-vim-use-the-clipboard
编辑对应的 .vimrc:
" WSL yank support
let s:clip = '/mnt/c/Windows/System32/clip.exe'  " change this path according to your mount point
if executable(s:clip)
    augroup WSLYank
        autocmd!
        autocmd TextYankPost * if v:event.operator ==# 'y' | call system(s:clip, @0) | endif
    augroup END
endif
其他的解决方案可以查看:https://mbinary.xyz/wsl-vim-clipboard.html
Linux 下好像可以通过 xclip 复制到系统剪切板,在 Konsole 终端下可以通过 Ctrl + Shift + C 与 Ctrl + Shift + V 来进行复制粘贴了。