aboutsummaryrefslogtreecommitdiffhomepage
path: root/data/sisu/conf/editor-syntax-etc/vim/ftplugin/sisu.vim
diff options
context:
space:
mode:
Diffstat (limited to 'data/sisu/conf/editor-syntax-etc/vim/ftplugin/sisu.vim')
-rw-r--r--data/sisu/conf/editor-syntax-etc/vim/ftplugin/sisu.vim13
1 files changed, 10 insertions, 3 deletions
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..269530de 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 <silent> <C-m> :if &guioptions =~# 'm' <Bar>
+ \set guioptions-=m <Bar>
+ \set guioptions-=T <Bar>
+ \else <Bar>
+ \set guioptions+=m <Bar>
+ \set guioptions-=T <Bar>
+ \endif<CR>
:set paste
:set statusline=%f%m%r%h%w\ [type=%Y]\ [format=%{&ff}]\ [%v:%l/%L\ %p%%]
:set laststatus=2 " status line always on
@@ -70,9 +77,9 @@
"% colorscheme slate
:map <C-C> :syntax on <cr> :colorscheme slate<cr>
"% search and replace
-:map <C-S> :.,$s///c "search and replace down
+:map <C-?> :.,$s///c "search and replace down
:map <c-G> :%s///c "search and replace whole file
-:map <c-X> :rubyd gsub!(//, "")
+:map <c-X> :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()