Add fixes for Linux
This commit is contained in:
parent
2f4cfb319c
commit
e05e73d0f5
@ -1,31 +1,13 @@
|
|||||||
" // Startup ///////////////////////////////////////////////////////////////////
|
" // Startup ///////////////////////////////////////////////////////////////////
|
||||||
" Windows/Linux differences
|
" Windows/Linux differences
|
||||||
|
|
||||||
let s:running_windows = has("win16") || has("win32") || has("win64")
|
let s:running_windows = has("win16") || has("win32") || has("win64")
|
||||||
let g:myvimdir ="~/.vim"
|
|
||||||
|
|
||||||
if s:running_windows
|
if s:running_windows
|
||||||
let g:myvimdir ="~/vimfiles"
|
let g:myvimdir ="~/vimfiles"
|
||||||
<<<<<<< HEAD:.vimrc
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Use Vim settings over Vi settings
|
|
||||||
set nocompatible
|
|
||||||
|
|
||||||
" Enables filetype detection, ftplugins, and indent files
|
|
||||||
filetype plugin indent on
|
|
||||||
|
|
||||||
" // Vim Plugin Manager ////////////////////////////////////////////////////////
|
|
||||||
if s:running_windows
|
|
||||||
call plug#begin('~/vimfiles/plugged')
|
|
||||||
else
|
|
||||||
call plug#begin('~/.vim/plugged')
|
|
||||||
=======
|
|
||||||
silent! call plug#begin('~/vimfiles/plugged')
|
silent! call plug#begin('~/vimfiles/plugged')
|
||||||
else
|
else
|
||||||
let g:myvimdir ="~/.vim"
|
let g:myvimdir ="~/.vim"
|
||||||
silent! call plug#begin('~/.vim/plugged')
|
silent! call plug#begin('~/.vim/plugged')
|
||||||
>>>>>>> d28479c... Update development environment:Installer/_vimrc
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" {on} Means to lazy-load when that command is invoked
|
" {on} Means to lazy-load when that command is invoked
|
||||||
@ -142,7 +124,6 @@ if has("gui_running")
|
|||||||
au InsertLeave * :set listchars+=trail:■
|
au InsertLeave * :set listchars+=trail:■
|
||||||
augroup END
|
augroup END
|
||||||
else
|
else
|
||||||
set term=xterm
|
|
||||||
set t_Co=256 " 256 colors
|
set t_Co=256 " 256 colors
|
||||||
let &t_AB="\e[48;5;%dm" " vodoo magic for CONEMU
|
let &t_AB="\e[48;5;%dm" " vodoo magic for CONEMU
|
||||||
let &t_AF="\e[38;5;%dm" " vodoo magic for CONEMU
|
let &t_AF="\e[38;5;%dm" " vodoo magic for CONEMU
|
||||||
@ -247,9 +228,9 @@ if s:running_windows
|
|||||||
nnoremap <A-r> :!start cmd /c run<CR>
|
nnoremap <A-r> :!start cmd /c run<CR>
|
||||||
nnoremap <A-b> :Make<CR>
|
nnoremap <A-b> :Make<CR>
|
||||||
else
|
else
|
||||||
execute "set <A-b>=\eb"
|
" Set vim terminal to enter normal mode using escape like normal vim behaviour
|
||||||
execute "set <A-n>=\en"
|
tnoremap <Esc> <C-\><C-n>
|
||||||
execute "set <A-p>=\ep"
|
|
||||||
set makeprg=./build.sh
|
set makeprg=./build.sh
|
||||||
nnoremap <f5> :Make<cr>
|
nnoremap <f5> :Make<cr>
|
||||||
endif
|
endif
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
wget --directory-prefix=../.vim/autoload https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
if [[ ! -f "${HOME}/.vim/autoload/plug.vim" ]]; then
|
||||||
cp -f .vimrc ~/.vimrc
|
wget --directory-prefix=../.vim/autoload https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
|
fi
|
||||||
|
|
||||||
<<<<<<< HEAD:linux_setup.sh
|
|
||||||
sudo apt install tmux
|
|
||||||
=======
|
|
||||||
if [[ ! -f "${HOME}/.vim/clang-format.py" ]]; then
|
if [[ ! -f "${HOME}/.vim/clang-format.py" ]]; then
|
||||||
wget --directory-prefix=${HOME}/.vim https://raw.githubusercontent.com/llvm-mirror/clang/master/tools/clang-format/clang-format.py
|
wget --directory-prefix=${HOME}/.vim https://raw.githubusercontent.com/llvm-mirror/clang/master/tools/clang-format/clang-format.py
|
||||||
fi
|
fi
|
||||||
@ -11,7 +9,6 @@ fi
|
|||||||
cp -f Installer/_vimrc ~/.vimrc
|
cp -f Installer/_vimrc ~/.vimrc
|
||||||
|
|
||||||
sudo apt install silversearcher-ag tmux exuberant-ctags neovim clang-format
|
sudo apt install silversearcher-ag tmux exuberant-ctags neovim clang-format
|
||||||
>>>>>>> d28479c... Update development environment:linux_install.sh
|
|
||||||
|
|
||||||
cat > ~/.tmux.conf <<EOF
|
cat > ~/.tmux.conf <<EOF
|
||||||
set-option -g mouse on
|
set-option -g mouse on
|
||||||
|
Loading…
Reference in New Issue
Block a user