[feature] nvim+tmux will crash over ssh on ubuntu
This commit is contained in:
parent
77c5727537
commit
baa8727f1f
|
@ -5,7 +5,7 @@ set DIR (dirname (dirname (readlink -f (status --current-filename))))
|
||||||
# cli basic tooling
|
# cli basic tooling
|
||||||
pacman -S \
|
pacman -S \
|
||||||
base-devel \
|
base-devel \
|
||||||
neovim \
|
vim neovim \
|
||||||
tmux bc \
|
tmux bc \
|
||||||
unzip p7zip \
|
unzip p7zip \
|
||||||
openssh \
|
openssh \
|
||||||
|
|
|
@ -47,7 +47,11 @@ argparse 'c/cli-only' -- $argv
|
||||||
link-dotfolder config
|
link-dotfolder config
|
||||||
link-dotfolder pip
|
link-dotfolder pip
|
||||||
link-dotfile tmux.conf
|
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
|
# install tpm
|
||||||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ set nobackup
|
||||||
set hlsearch
|
set hlsearch
|
||||||
set noswapfile
|
set noswapfile
|
||||||
set ignorecase
|
set ignorecase
|
||||||
|
set laststatus=2
|
||||||
set fillchars=vert:\ ,fold:-
|
set fillchars=vert:\ ,fold:-
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
syntax on
|
syntax on
|
||||||
|
@ -40,6 +41,8 @@ noremap <C-b> <Left>
|
||||||
vnoremap <leader>p "_dP
|
vnoremap <leader>p "_dP
|
||||||
nnoremap <leader>q :qall<CR>
|
nnoremap <leader>q :qall<CR>
|
||||||
|
|
||||||
|
nnoremap <leader>1 :b1
|
||||||
|
|
||||||
|
|
||||||
" trailing spaces
|
" trailing spaces
|
||||||
highlight ExtraWhitespace ctermbg=red guibg=red
|
highlight ExtraWhitespace ctermbg=red guibg=red
|
||||||
|
@ -48,7 +51,11 @@ au Syntax * match ExtraWhitespace /\s\+$/
|
||||||
nnoremap <leader>es :%s/\s\+$//g<CR>
|
nnoremap <leader>es :%s/\s\+$//g<CR>
|
||||||
|
|
||||||
" auto install vim-plug
|
" 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
|
let vim_plug_just_installed = 0
|
||||||
if !filereadable(vim_plug_path)
|
if !filereadable(vim_plug_path)
|
||||||
echo "Installing vim-plug..."
|
echo "Installing vim-plug..."
|
||||||
|
|
|
@ -2,10 +2,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
#sudo add-apt-repository ppa:jonathonf/vim -y
|
sudo add-apt-repository ppa:jonathonf/vim -y
|
||||||
#sudo apt update
|
|
||||||
#sudo apt install -y vim
|
|
||||||
|
|
||||||
sudo add-apt-repository ppa:neovim-ppa/stable -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
|
sudo apt install -y neovim
|
||||||
|
|
Loading…
Reference in New Issue
Block a user