deal with vims without terminal. add .screenrc
This commit is contained in:
5
.screenrc
Normal file
5
.screenrc
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
term screen-256color
|
||||||
|
hardstatus alwayslastline
|
||||||
|
hardstatus string '%w'
|
||||||
|
startup_message off
|
||||||
|
vbell off
|
||||||
@@ -5,7 +5,7 @@ syntax enable
|
|||||||
syntax sync maxlines=100
|
syntax sync maxlines=100
|
||||||
set synmaxcol=200
|
set synmaxcol=200
|
||||||
|
|
||||||
augroup customft
|
augroup customvimft
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufNewFile,BufRead *.vim* set filetype=vim
|
autocmd BufNewFile,BufRead *.vim* set filetype=vim
|
||||||
augroup END
|
augroup END
|
||||||
@@ -129,10 +129,13 @@ augroup END
|
|||||||
|
|
||||||
" For Terminal
|
" For Terminal
|
||||||
" {{{
|
" {{{
|
||||||
augroup terminalsettings
|
|
||||||
autocmd!
|
if has('terminal')
|
||||||
autocmd TerminalOpen * setlocal nonu
|
augroup terminalsettings
|
||||||
augroup END
|
autocmd!
|
||||||
|
autocmd TerminalOpen * setlocal nonu
|
||||||
|
augroup END
|
||||||
|
endif
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Mappings
|
" Mappings
|
||||||
|
|||||||
10
setup.sh
10
setup.sh
@@ -12,6 +12,16 @@ WARNING: if you do, the existing ~/.vimrc will be deleted!
|
|||||||
echo "Created ~/.vimrc from template"; } \
|
echo "Created ~/.vimrc from template"; } \
|
||||||
|| echo "Not creating ~/.vimrc from template"
|
|| echo "Not creating ~/.vimrc from template"
|
||||||
|
|
||||||
|
read -p "
|
||||||
|
Would you like to also use the .screenrc from this repo?
|
||||||
|
WARNING: if you do, the existing ~/.screenrc will be deleted!
|
||||||
|
[y/n]: " responce
|
||||||
|
|
||||||
|
[[ "$responce" = "y" ]] \
|
||||||
|
&& { ln -sf "$repo/.screenrc" "$HOME/.screenrc"; \
|
||||||
|
echo "Created a .screenrc"; } \
|
||||||
|
|| echo "Not using .screenrc from this repo."
|
||||||
|
|
||||||
[ -d "$HOME/.vim" ] || { mkdir "$HOME/.vim"; \
|
[ -d "$HOME/.vim" ] || { mkdir "$HOME/.vim"; \
|
||||||
echo "Created .vim directory in your HOME"; }
|
echo "Created .vim directory in your HOME"; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user