mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
gvim/cygwin stuff
This commit is contained in:
parent
b570b9619c
commit
10baf7b10c
2 changed files with 18 additions and 15 deletions
24
home/vimrc
24
home/vimrc
|
@ -13,11 +13,6 @@ endif
|
||||||
|
|
||||||
" awful things
|
" awful things
|
||||||
if has("win32")
|
if has("win32")
|
||||||
let msys='/MinGW/msys/1.0/bin'
|
|
||||||
let &shell=msys.'/bash.exe'
|
|
||||||
set shellcmdflag=-c
|
|
||||||
set shellxquote=\"
|
|
||||||
set shellslash
|
|
||||||
" assume directory structure:
|
" assume directory structure:
|
||||||
" something/anything/.vimrc " this was passed to vim by the -u switch
|
" something/anything/.vimrc " this was passed to vim by the -u switch
|
||||||
" something/vim/
|
" something/vim/
|
||||||
|
@ -25,10 +20,20 @@ if has("win32")
|
||||||
let $MYVIMRC=expand('<sfile>')
|
let $MYVIMRC=expand('<sfile>')
|
||||||
let g:rcvim=expand('<sfile>:p:h:h').'/vim'
|
let g:rcvim=expand('<sfile>:p:h:h').'/vim'
|
||||||
|
|
||||||
|
let msys='/MinGW/msys/1.0/bin'
|
||||||
|
set shellcmdflag=-c
|
||||||
|
set shellxquote=\"
|
||||||
|
set shellslash
|
||||||
if !exists('win32_once')
|
if !exists('win32_once')
|
||||||
let win32_once=1
|
let win32_once=1
|
||||||
if exists('msys')
|
if exists('msys') " note: true for gvim as well
|
||||||
|
if isdirectory(msys)
|
||||||
let $PATH.=';'.msys
|
let $PATH.=';'.msys
|
||||||
|
let &shell=msys.'/bash.exe'
|
||||||
|
else
|
||||||
|
let $PATH='/usr/local/bin;/usr/bin;/bin;'.$PATH
|
||||||
|
let &shell='/cygwin/bin/zsh.exe'
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
let &runtimepath=g:rcvim.','.&runtimepath.','.g:rcvim.'/after'
|
let &runtimepath=g:rcvim.','.&runtimepath.','.g:rcvim.'/after'
|
||||||
endif
|
endif
|
||||||
|
@ -352,9 +357,13 @@ endtry
|
||||||
|
|
||||||
" airline {{{1
|
" airline {{{1
|
||||||
|
|
||||||
|
if has('gui_running')
|
||||||
|
" airline is broken in gvim (for me) for now
|
||||||
|
else
|
||||||
"if exists('g:airline_symbols')
|
"if exists('g:airline_symbols')
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
"endif
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
|
endif
|
||||||
|
|
||||||
let g:airline_mode_map = {
|
let g:airline_mode_map = {
|
||||||
\ 'c': 'COM',
|
\ 'c': 'COM',
|
||||||
|
@ -392,7 +401,6 @@ let g:airline#extensions#default#section_truncate_width = {
|
||||||
\ 'z': 45,
|
\ 'z': 45,
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
let g:airline#extensions#tabline#enabled = 1
|
|
||||||
let g:airline#extensions#tabline#show_tab_nr = 0
|
let g:airline#extensions#tabline#show_tab_nr = 0
|
||||||
let g:airline#extensions#tabline#show_tab_type = 0
|
let g:airline#extensions#tabline#show_tab_type = 0
|
||||||
let g:airline#extensions#tabline#fnametruncate = 20
|
let g:airline#extensions#tabline#fnametruncate = 20
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
" Property
|
" Property
|
||||||
" a vim color scheme by @notwa
|
" a vim color scheme by github.com/notwa
|
||||||
" loosely based on Clearance by Chris Seelus (@ceelus)
|
" loosely based on Clearance by Chris Seelus (@ceelus)
|
||||||
" built upon the Tomorrow scheme's functionality <http://chriskempson.com>
|
" built upon the Tomorrow scheme's functionality <http://chriskempson.com>
|
||||||
|
|
||||||
|
@ -7,11 +7,6 @@
|
||||||
" colorful
|
" colorful
|
||||||
" redblack
|
" redblack
|
||||||
|
|
||||||
" basically i split styling into:
|
|
||||||
" built-in things you'd pass arguments to
|
|
||||||
" built-in things you wouldn't that moreso construct the language (if, else)
|
|
||||||
" built-in things you shouldn't use as variable names
|
|
||||||
|
|
||||||
" hi \([A-Za-z]\+\) \+guifg=\([^ ]\+\) \+guibg=\([^ ]\+\) \+gui=\(\w\+\)
|
" hi \([A-Za-z]\+\) \+guifg=\([^ ]\+\) \+guibg=\([^ ]\+\) \+gui=\(\w\+\)
|
||||||
|
|
||||||
let s:foreground = "D6DBD5"
|
let s:foreground = "D6DBD5"
|
||||||
|
|
Loading…
Add table
Reference in a new issue