mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
console fixes
This commit is contained in:
parent
a686cc2319
commit
8609a4cccd
2 changed files with 13 additions and 8 deletions
15
home/vimrc
15
home/vimrc
|
@ -32,7 +32,7 @@ if has("win32")
|
||||||
let &runtimepath=g:rcvim.','.&runtimepath.','.g:rcvim.'/after'
|
let &runtimepath=g:rcvim.','.&runtimepath.','.g:rcvim.'/after'
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
let g:rcvim='~/.vim'
|
let g:rcvim=$HOME.'/.vim'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let &backupdir=g:rcvim.'/backup' " stash tilde files elsewhere
|
let &backupdir=g:rcvim.'/backup' " stash tilde files elsewhere
|
||||||
|
@ -67,7 +67,11 @@ if has('gui_running')
|
||||||
cd $HOME " might not be ideal...
|
cd $HOME " might not be ideal...
|
||||||
endif
|
endif
|
||||||
|
|
||||||
try | colorscheme Tomorrow-Night | catch /E185/ | endtry
|
try
|
||||||
|
colorscheme Tomorrow-Night
|
||||||
|
catch /E185/
|
||||||
|
colorscheme desert
|
||||||
|
endtry
|
||||||
|
|
||||||
if has('title') | set title | endif " terminal title
|
if has('title') | set title | endif " terminal title
|
||||||
set history=512 " command lines to remember
|
set history=512 " command lines to remember
|
||||||
|
@ -86,7 +90,7 @@ set smartcase " except when uppercase is used
|
||||||
set infercase " use existing case when ins-completing
|
set infercase " use existing case when ins-completing
|
||||||
set tabstop=8 shiftwidth=8 smarttab " 8 space tabs
|
set tabstop=8 shiftwidth=8 smarttab " 8 space tabs
|
||||||
set foldmethod=marker
|
set foldmethod=marker
|
||||||
set foldlevelstart=99 " start with everything unfolded
|
set foldlevelstart=99 " start with everything unfolded...?
|
||||||
let c_syntax_for_h=1 " use C highlighting for .h files
|
let c_syntax_for_h=1 " use C highlighting for .h files
|
||||||
set nowrap " word wrapping is pretty weak in vim
|
set nowrap " word wrapping is pretty weak in vim
|
||||||
set ffs=unix,dos " ffs indeed
|
set ffs=unix,dos " ffs indeed
|
||||||
|
@ -150,9 +154,9 @@ if has('autocmd')
|
||||||
au GUIEnter * set vb t_vb=
|
au GUIEnter * set vb t_vb=
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
augroup reload " this is a bit annoying on windows
|
augroup reload
|
||||||
au!
|
au!
|
||||||
au BufWritePost .vimrc,_vimrc,vimrc so $MYVIMRC
|
"au BufWritePost .vimrc,_vimrc,vimrc so $MYVIMRC
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
fu! ResCur() " attempt to preserve cursor position
|
fu! ResCur() " attempt to preserve cursor position
|
||||||
|
@ -232,6 +236,7 @@ set <s-Del>=[3;2~
|
||||||
Inn <s-Del> X
|
Inn <s-Del> X
|
||||||
|
|
||||||
" unfollow your leaders
|
" unfollow your leaders
|
||||||
|
let leader="\\"
|
||||||
"ino <c-\> <C-o><Leader> " this doesn't workkkkkkkkk
|
"ino <c-\> <C-o><Leader> " this doesn't workkkkkkkkk
|
||||||
nn <Leader>p "0p
|
nn <Leader>p "0p
|
||||||
nn <Leader>P "0P
|
nn <Leader>P "0P
|
||||||
|
|
|
@ -20,10 +20,10 @@ let s:window = "4d5057"
|
||||||
|
|
||||||
" Console 256 Colours
|
" Console 256 Colours
|
||||||
if !has("gui_running")
|
if !has("gui_running")
|
||||||
let s:background = "303030"
|
" let s:background = "303030"
|
||||||
let s:window = "5e5e5e"
|
" let s:window = "5e5e5e"
|
||||||
let s:line = "3a3a3a"
|
let s:line = "3a3a3a"
|
||||||
let s:selection = "585858"
|
" let s:selection = "585858"
|
||||||
end
|
end
|
||||||
|
|
||||||
hi clear
|
hi clear
|
||||||
|
|
Loading…
Add table
Reference in a new issue