Fixed for Linux/Mac

This commit is contained in:
Andrea Mistrali 2014-02-01 11:40:37 +00:00
parent b5024d4b9e
commit 96b18bce32
3 changed files with 54 additions and 23 deletions

View File

@ -4,10 +4,10 @@
" $Id$
"
set guifont=Monaco:h13
set guifont=Monaco\ 11
set anti
set lines=50
set columns=132
set columns=120
set mousefocus
set errorbells
set visualbell
@ -16,13 +16,17 @@ set guicursor=a:block-blinkon0
set showtabline=2
set guitablabel=%!GuiTabLabel()
set guitabtooltip=%!GuiTabToolTip()
if has('mac') || has('macunix')
set guifont=Monaco:h11
set fuoptions=maxvert,maxhorz
set transparency=4
endif
set guioptions-=T
set guioptions+=a
if &background == "dark"
hi normal guibg=black
set transparency=4
endif
" colorscheme railscasts

View File

@ -2,7 +2,9 @@
" General Setup
"
" $Id$
"
" First of all determine the OS we are on
" Can be Linux or Darwin
set nocompatible " Use Vim defaults (much better!)
set backspace=indent,eol,start " allow backspacing over everything
set textwidth=0 " Textwidth 0 usually, we set it to 79 later
@ -13,7 +15,7 @@ set nohlsearch
set nostartofline
" set paste
set autochdir
" set clipboard=unnamed
set clipboard+=unnamed
" Let's go to 256 colors
set t_Co=256
@ -43,7 +45,7 @@ set background=dark
set title
set browsedir=buffer
" set autochdir
set autochdir
set cpoptions=aAcF$
set modeline
set modelines=1
@ -58,12 +60,18 @@ set showmatch " Show matching brackets.
set incsearch " Incremental search
set autowrite " Automatically save before commands like :next and :make
" set statusline=%<%f\ %H%m%r%=%-14.(%l,%c%)\ %P\ Buf.%n
set showtabline=1
" set showtabline=2
set backupcopy=yes
set fileformats=unix,mac,dos
set fileformat=unix
set mouse=a
set printfont=Monaco:h14
if has('mac') || has('macunix')
set printfont=Monaco:h12
else
set printfont=Monaco\ 12
endif
" colorscheme wombat256
colorscheme railscasts
@ -193,6 +201,7 @@ let g:ConqueTerm_CloseOnEnd = 1
let g:ConqueTerm_SendVisKey = ',tp'
" Tab selection by number
if has('mac') || has('macunix')
nnoremap <silent> <D-1> 1gt
nnoremap <silent> <D-2> 2gt
nnoremap <silent> <D-3> 3gt
@ -203,6 +212,24 @@ nnoremap <silent> <D-7> 7gt
nnoremap <silent> <D-8> 8gt
nnoremap <silent> <D-9> 9gt
nnoremap <silent> <D-0> 10gt
else
nnoremap <silent> <M-1> 1gt
nnoremap <silent> <M-2> 2gt
nnoremap <silent> <M-3> 3gt
nnoremap <silent> <M-4> 4gt
nnoremap <silent> <M-5> 5gt
nnoremap <silent> <M-6> 6gt
nnoremap <silent> <M-7> 7gt
nnoremap <silent> <M-8> 8gt
nnoremap <silent> <M-9> 9gt
nnoremap <silent> <M-0> 10gt
endif
" Map Ctrl-T to new tab and Ctrl-W to close tab
if !(has('mac') || has('macunix'))
nnoremap <silent> <C-T> :tabnew<CR>
nnoremap <silent> <C-W> :tabclose<CR>
endif
" <Leader>hh opens my help file
nnoremap <silent> <Leader>hh :help akmap<CR>