Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

There were some immediate problems trying to get this thing working o…

…n my mac. Generally you would do this with a hostname or something, rather than has('mac') but life is all about doing what works
  • Loading branch information...
commit 5c8178b689b515d77c13467a200dc6b874faebb2 1 parent 98a5621
Derek Wyatt authored July 05, 2011
2  after/plugin/solarized.vim
... ...
@@ -1 +1 @@
1  
-call togglebg#map("<c-F5>")
  1
+call togglebg#map("<c-w>t")
28  bundle/from_github.md
Source Rendered
... ...
@@ -1,16 +1,16 @@
1 1
 # Stuff pulled from GitHub
2 2
 
3  
-* **Fugitive**:     `https://github.com/tpope/vim-fugitive.git`
4  
-* **FSwitch**:      `https://github.com/ewiplayer/vim-fswitch.git`
5  
-* **FuzzyFinder**:  `https://github.com/vim-scripts/FuzzyFinder.git`
6  
-* **GNUPG**:        `https://github.com/vim-scripts/gnupg.vim.git`
7  
-* **Surround**:     `https://github.com/tpope/vim-surround.git`
8  
-* **Unimpaired**:   `https://github.com/tpope/vim-unimpaired.git`
9  
-* **Protodef**:     `https://github.com/ewiplayer/vim-protodef.git`
10  
-* **Solarized**:    `https://github.com/altercation/vim-colors-solarized.git`
11  
-* **L9**:           `https://github.com/vim-scripts/L9.git`
12  
-* **Scala**:        `https://github.com/ewiplayer/vim-scala.git`
13  
-* **XPTemplate**:   `https://github.com/drmingdrmer/xptemplate.git`
14  
-* **EasyMotion**:   `https://github.com/vim-scripts/EasyMotion.git`
15  
-* **NERDTree**:     `https://github.com/scrooloose/nerdtree.git`
16  
-* **TwitVim**:      `https://github.com/vim-scripts/TwitVim.git`
  3
+* **Fugitive**:     `git clone https://github.com/tpope/vim-fugitive.git vim-fugitive`
  4
+* **FSwitch**:      `git clone https://github.com/ewiplayer/vim-fswitch.git vim-fswitch`
  5
+* **FuzzyFinder**:  `git clone https://github.com/vim-scripts/FuzzyFinder.git vim-fuzzyfinder`
  6
+* **GNUPG**:        `git clone https://github.com/vim-scripts/gnupg.vim.git vim-gnupg`
  7
+* **Surround**:     `git clone https://github.com/tpope/vim-surround.git vim-surround`
  8
+* **Unimpaired**:   `git clone https://github.com/tpope/vim-unimpaired.git vim-unimpaired`
  9
+* **Protodef**:     `git clone https://github.com/ewiplayer/vim-protodef.git vim-protodef`
  10
+* **Solarized**:    `git clone https://github.com/altercation/vim-colors-solarized.git vim-solarized`
  11
+* **L9**:           `git clone https://github.com/vim-scripts/L9.git vim-l9`
  12
+* **Scala**:        `git clone https://github.com/ewiplayer/vim-scala.git vim-scala`
  13
+* **XPTemplate**:   `git clone https://github.com/drmingdrmer/xptemplate.git vim-xptemplate`
  14
+* **EasyMotion**:   `git clone https://github.com/vim-scripts/EasyMotion.git vim-easymotion`
  15
+* **NERDTree**:     `git clone https://github.com/scrooloose/nerdtree.git vim-nerdtree`
  16
+* **TwitVim**:      `git clone https://github.com/vim-scripts/TwitVim.git vim-twitvim`
15  vimrc
@@ -287,6 +287,14 @@ let loaded_matchparen = 1
287 287
 set nocursorline
288 288
 set nocursorcolumn
289 289
 
  290
+if has("mac")
  291
+  let g:main_font = "Menlo\\ Regular:h11"
  292
+  let g:small_font = "Menlo\\ Regular:h2"
  293
+else
  294
+  let g:main_font = "Monospace\\ 9"
  295
+  let g:small_font = "Monospace\\ 2"
  296
+endif
  297
+
290 298
 "-----------------------------------------------------------------------------
291 299
 " Perforce Stuff
292 300
 "-----------------------------------------------------------------------------
@@ -538,7 +546,7 @@ function! ToggleMinimap()
538 546
         let s:lastLine = line("w$")
539 547
 
540 548
         " make font small
541  
-        set guifont=Monospace\ 2
  549
+        exe "set guifont=" . g:small_font
542 550
         " highlight lines which were visible
543 551
         let s:lines = ""
544 552
         for i in range(s:firstLine, s:lastLine)
@@ -554,7 +562,7 @@ function! ToggleMinimap()
554 562
         nmap <s-j> 10j
555 563
         nmap <s-k> 10k
556 564
     else
557  
-        set guifont=Monospace\ 9
  565
+        exe "set guifont=" . g:main_font
558 566
         hi clear Visible
559 567
         nunmap <s-j>
560 568
         nunmap <s-k>
@@ -644,7 +652,8 @@ iab Fone      Phone
644 652
 " Set up the window colors and size
645 653
 "-----------------------------------------------------------------------------
646 654
 if has("gui_running")
647  
-  set guifont=Monospace\ 9
  655
+  exe "set guifont=" . g:main_font
  656
+  set background=dark
648 657
   colorscheme solarized
649 658
   if !exists("g:vimrcloaded")
650 659
       winpos 0 0

0 notes on commit 5c8178b

Please sign in to comment.
Something went wrong with that request. Please try again.