Skip to content

Commit

Permalink
add tabbar
Browse files Browse the repository at this point in the history
  • Loading branch information
RJ committed Jul 26, 2011
1 parent 134acec commit 6e64343
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .gitmodules
Expand Up @@ -6,7 +6,7 @@
url = git://git.wincent.com/command-t.git
[submodule "bundle/vimerl"]
path = bundle/vimerl
url = https://github.com/oscarh/vimerl.git
url = https://github.com/jimenezrick/vimerl.git
[submodule "bundle/supertab"]
path = bundle/supertab
url = https://github.com/ervandew/supertab.git
Expand All @@ -19,3 +19,9 @@
[submodule "bundle/git"]
path = bundle/git
url = https://github.com/motemen/git-vim.git
[submodule "bundle/erlang-skel"]
path = bundle/erlang-skel
url = https://github.com/vim-scripts/vim-erlang-skeleteons.git
[submodule "bundle/tabbar"]
path = bundle/tabbar
url = https://github.com/vim-scripts/TabBar.git
1 change: 1 addition & 0 deletions bundle/erlang-skel
Submodule erlang-skel added at 4f86fc
1 change: 1 addition & 0 deletions bundle/tabbar
Submodule tabbar added at c5a9f4
29 changes: 25 additions & 4 deletions vimrc
Expand Up @@ -10,6 +10,9 @@ filetype plugin indent on
set nocompatible
set modelines=0

" Full screen on macvim should fully maxed out
set fuopt=maxvert,maxhorz

" Tabs/spaces
set tabstop=4
set shiftwidth=4
Expand Down Expand Up @@ -75,7 +78,7 @@ colorscheme delek

" NERD Tree
map <F2> :NERDTreeToggle<cr>
let NERDTreeIgnore=['.*\.beam$', '.*\.dump$', '.*~$', '\..*$']
let NERDTreeIgnore=['\.beam$', '\.dump$', '\~$', '^\.']

" Nazi-mode
"nnoremap <up> <nop>
Expand All @@ -93,6 +96,7 @@ map <A-up> gk
imap <A-down> <ESC>gji
imap <A-up> <ESC>gki

" Scroll-lock-to-centre toggle
map <leader>zz :let &scrolloff=999-&scrolloff<cr>
Expand All @@ -107,9 +111,11 @@ map <C-l> <C-w>l
map <leader>w <C-w>v<C-w>l
" tripple escape closes buffer
map <esc><esc><esc> :q<cr>
imap <esc><esc><esc> :q<cr>
map <esc><esc><esc> :bd<cr>
imap <esc><esc><esc> :bd<cr>
" toggle comments
map <leader>c V:!perl -nle 'if (/^\%\% /) { s/^\%\% (.*)/$1/g; print } else {print "\%\% ".$_}'<cr>
" Max/unmax splits
nnoremap <c -W>O :call MaximizeToggle ()<cr>
Expand All @@ -132,8 +138,19 @@ function! MaximizeToggle()
endif
endfunction

let g:erl_author="RJ"
let g:erl_company="IRCCloud Ltd."
let g:erl_replace_buffer=1
let g:erl_tpl_dir="/Users/rj/.vim/bundle/erlang-skel/plugin/templates/"

let g:erlangCompleteFile="~/.vim/bundle/vimerl/autoload/erlang_complete.erl"
let g:erlangCheckFile="~/.vim/bundle/vimerl/compiler/erlang_check.erl"
let g:erlangManPath="/usr/local/Cellar/erlang/R14B02/share/man/"



" Folding TODO: configure for erlang
set foldlevelstart=0
set foldlevelstart=1
nnoremap <Space> za
vnoremap <Space> za
au BufNewFile,BufRead *.html map <leader>ft Vatzf
Expand Down Expand Up @@ -194,6 +211,10 @@ map <leader>a :Ack
" Command-T plugin
map <leader>t :CommandT<cr>
let CommandTMaxHeight=0
"set CommandTMatchWindowAtTop=1
"set CommandTAcceptSelectionSplitMap='s'
"set CommandTAcceptSelectionVSplitMap='v'

" Yankring
nnoremap <silent> <F3> :YRShow<cr>
Expand Down

0 comments on commit 6e64343

Please sign in to comment.