From 60ac91832098884b494c1223e0b881696ef8133c Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 3 Dec 2007 18:35:40 +0000 Subject: vim ftplugin/sisu and colors/slate ftplugin, added toggle for menu slate, added cursor line and column color black ... may not provide enough contrast for some, this way i use it though --- data/sisu/conf/editor-syntax-etc/vim/colors/slate.vim | 3 +++ data/sisu/conf/editor-syntax-etc/vim/ftplugin/sisu.vim | 11 +++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'data/sisu/conf') diff --git a/data/sisu/conf/editor-syntax-etc/vim/colors/slate.vim b/data/sisu/conf/editor-syntax-etc/vim/colors/slate.vim index c13a821a..64ae0ff1 100644 --- a/data/sisu/conf/editor-syntax-etc/vim/colors/slate.vim +++ b/data/sisu/conf/editor-syntax-etc/vim/colors/slate.vim @@ -54,3 +54,6 @@ endif :hi Underlined cterm=underline ctermfg=5 :hi Error guifg=White guibg=Red cterm=bold ctermfg=7 ctermbg=1 :hi SpellErrors guifg=White guibg=Red cterm=bold ctermfg=7 ctermbg=1 +:hi CursorLine guibg=black ctermbg=black +:hi CursorColumn guibg=black ctermbg=black + diff --git a/data/sisu/conf/editor-syntax-etc/vim/ftplugin/sisu.vim b/data/sisu/conf/editor-syntax-etc/vim/ftplugin/sisu.vim index 7cd6fdcc..bbb98bf3 100644 --- a/data/sisu/conf/editor-syntax-etc/vim/ftplugin/sisu.vim +++ b/data/sisu/conf/editor-syntax-etc/vim/ftplugin/sisu.vim @@ -25,7 +25,14 @@ :set incsearch :set hlsearch :set gdefault -:set guioptions=agmr +:set guioptions=agr " add 'm' for menu +:map :if &guioptions =~# 'm' + \set guioptions-=m + \set guioptions-=T + \else + \set guioptions+=m + \set guioptions-=T + \endif :set paste :set statusline=%f%m%r%h%w\ [type=%Y]\ [format=%{&ff}]\ [%v:%l/%L\ %p%%] :set laststatus=2 " status line always on @@ -72,7 +79,7 @@ "% search and replace :map :.,$s///c "search and replace down :map :%s///c "search and replace whole file -:map :rubyd gsub!(//, "") +:map :rubyd gsub!(//,"") "% pwd t64 working directory set to that of the file you're editing "changes pwd to directory of file in current buffer :function! CHANGE_CURR_DIR() -- cgit v1.2.3