[feature] nvim+tmux will crash over ssh on ubuntu

This commit is contained in:
Klesh Wong 2020-06-11 14:57:01 +08:00
parent 77c5727537
commit baa8727f1f
4 changed files with 17 additions and 8 deletions

View File

@ -5,7 +5,7 @@ set DIR (dirname (dirname (readlink -f (status --current-filename))))
# cli basic tooling
pacman -S \
base-devel \
neovim \
vim neovim \
tmux bc \
unzip p7zip \
openssh \

View File

@ -47,7 +47,11 @@ argparse 'c/cli-only' -- $argv
link-dotfolder config
link-dotfolder pip
link-dotfile tmux.conf
link-dotfile vimrc
#link-dotfile vimrc
rm -rf ~/.vimrc ~/.vim/coc-settings.json
ln -s $DIR/config/nvim/init.vim ~/.vimrc
mkdir -p ~/.vim
ln -s $DIR/config/nvim/coc-settings.json ~/.vim/coc-settings.json
# install tpm
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

View File

@ -13,6 +13,7 @@ set nobackup
set hlsearch
set noswapfile
set ignorecase
set laststatus=2
set fillchars=vert:\ ,fold:-
filetype plugin indent on
syntax on
@ -40,6 +41,8 @@ noremap <C-b> <Left>
vnoremap <leader>p "_dP
nnoremap <leader>q :qall<CR>
nnoremap <leader>1 :b1
" trailing spaces
highlight ExtraWhitespace ctermbg=red guibg=red
@ -48,7 +51,11 @@ au Syntax * match ExtraWhitespace /\s\+$/
nnoremap <leader>es :%s/\s\+$//g<CR>
" auto install vim-plug
let vim_plug_path = expand("~/.config/nvim/autoload/plug.vim")
if has('nvim')
let vim_plug_path = expand("~/.config/nvim/autoload/plug.vim")
else
let vim_plug_path = expand("~/.vim/autoload/plug.vim")
endif
let vim_plug_just_installed = 0
if !filereadable(vim_plug_path)
echo "Installing vim-plug..."

View File

@ -2,10 +2,8 @@
set -e
#sudo add-apt-repository ppa:jonathonf/vim -y
#sudo apt update
#sudo apt install -y vim
sudo add-apt-repository ppa:jonathonf/vim -y
sudo add-apt-repository ppa:neovim-ppa/stable -y
sudo apt-get update
#sudo apt update
sudo apt install -y vim
sudo apt install -y neovim