Permalink
Browse files

add vromerc and few tweaks.

  • Loading branch information...
dakrone committed Apr 1, 2010
1 parent 7c0cda9 commit d8dfbef198fe289abc5208573fc7c0c783381a9a
Showing with 53 additions and 6 deletions.
  1. +31 −1 .vimrc
  2. +13 −0 .vromerc
  3. +8 −5 .zshrc
  4. +1 −0 gather
View
32 .vimrc
@@ -301,7 +301,7 @@ autocmd FileType php set omnifunc=phpcomplete#CompletePHP
autocmd FileType c set omnifunc=ccomplete#Complete
autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1 " Rails support
-autocmd FileType java set noexpandtab
+autocmd FileType java setlocal noexpandtab
" put these lines in ~/.vim/.compiler_info
"au FileType ruby let b:{g:ctk_ext_var} = 'rb'
"au FileType ruby SetCompilerInfo ruby title='Ruby 1.9.1 - Matz' cmd='ruby $flags $input' run='ruby $input' flags='-wc' debug_flags='-rdebug $flags'
@@ -324,6 +324,8 @@ function! YRRunAfterMaps()
endfunction
" toggle list mode
nmap <LocalLeader>tl :set list!<cr>
+" Use the same symbols as TextMate for tabstops and EOLs
+set listchars=tab:▸\ ,eol:¬,trail:-
" toggle paste mode
nmap <LocalLeader>pp :set paste!<cr>
" toggle wrapping
@@ -360,6 +362,34 @@ nmap F zf%
nmap <LocalLeader>sf :set foldcolumn=6 foldmethod=syntax<cr>
" ruby helpers
iab rbang #!/usr/bin/env ruby -w<cr> encoding: UTF-8<cr>
+" For mac users (using the 'apple' key)
+"map <D-S-]> gt " MacVim already does this
+"map <D-S-[> gT " MacVim already does this
+map <D-1> 1gt
+map <D-2> 2gt
+map <D-3> 3gt
+map <D-4> 4gt
+map <D-5> 5gt
+map <D-6> 6gt
+map <D-7> 7gt
+map <D-8> 8gt
+map <D-9> 9gt
+map <D-0> :tablast<CR>
+
+" for linux and windows users (using the control key)
+"map <C-S-]> gt
+"map <C-S-[> gT
+"map <C-1> 1gt
+"map <C-2> 2gt
+"map <C-3> 3gt
+"map <C-4> 4gt
+"map <C-5> 5gt
+"map <C-6> 6gt
+"map <C-7> 7gt
+"map <C-8> 8gt
+"map <C-9> 9gt
+"map <C-0> :tablast<CR>
+
" Remove the '# => ' lines that xmpfilter adds
function! RemoveRubyEval() range
View
@@ -0,0 +1,13 @@
+""" .vromerc example file
+
+map <C-e> j
+map <C-y> k
+map <C-j> j
+map <C-k> k
+
+set editor=gvim -f
+"" use it like vimperator, the first search engine is the default.
+set searchengines={ 'g':'https://ssl.scroogle.org/cgi-bin/nbbwssl.cgi?Gw={{keyword}}','gg':'http://www.google.com/search?q={{keyword}}', ,'wiki':'http://en.wikipedia.org/wiki/{{keyword}}''yubnub':'http://yubnub.org/parser/parse?command={{keyword}}'}
+
+" vim: set ft=vim
+
View
13 .zshrc
@@ -38,7 +38,14 @@ export EDITOR=vim
export PAGER=less
# CVS for HeX
-export CVSROOT=:ext:dakrone@cvsup.rawpacket.org:/home/project/rawpacket/cvs
+#export CVSROOT=:ext:dakrone@cvsup.rawpacket.org:/home/project/rawpacket/cvs
+
+# CVS for Avamar
+export CVSROOT=:ext:hinmam@cvs.avamar.com:/antimatter/home/codebase/repository
+export CVS_RSH=ssh
+export CVS_SERVER=/opt/sfw/bin/cvs
+export CVSEDITOR=vim
+
# RSPEC for autotest
export RSPEC=true
@@ -263,9 +270,5 @@ bindkey "^k" kill-line
bindkey ' ' magic-space # also do history expansion on space
bindkey '^I' complete-word # complete on tab, leave expansion to _expand
-
-
-source /Users/hinmanm/.profile
-
# Remove ctrl+y from the keybinds for delayed suspend
stty dsusp undef
View
1 gather
@@ -13,6 +13,7 @@ mkdir -p .zg
cp -f -v ~/.zg/zg.conf .zg/
cp -f -v ~/.nsmcrc .
cp -f -v ~/.vimperatorrc .
+cp -f -v ~/.vromerc .
mkdir -p .vimperator
cp -f -rv ~/.vimperator .
#cp -f -v ~/.gitconfig .

0 comments on commit d8dfbef

Please sign in to comment.