Răsfoiți Sursa

make OS X detection for NERDTree arrows actually work

cinaeco 13 ani în urmă
părinte
comite
5a9eddf179
2 a modificat fișierele cu 14 adăugiri și 6 ștergeri
  1. 13 5
      vim/vimrc
  2. 1 1
      zsh/oh-my-zsh

+ 13 - 5
vim/vimrc

@@ -6,6 +6,17 @@ set nocompatible "Don't have to try to be compatible with old vi
 call pathogen#infect()
 
 
+""""""""
+"" Environment
+"""""""""""""""""""""""""""""""""""""""""""""""""""
+
+" Determine what kind of machine we're on e.g. Linux, Darwin, Win(?)
+if has("unix")
+  " remove the newline character from the uname command
+  let s:uname = substitute(system("uname"), "\n", "", "")
+endif
+
+
 """"""""
 "" General Behaviours
 """""""""""""""""""""""""""""""""""""""""""""""""""
@@ -261,11 +272,8 @@ nnoremap <silent> <expr> $ ScreenMovement("$")
 " let g:NERDTreeQuitOnOpen = 1
 
 " Having problems showing NERDTree arrows in OS X
-if has("unix")
-  let s:uname = system("uname")
-  if s:uname == "Darwin"
-    let g:NERDTreeDirArrows=0 
-  endif
+if s:uname == "Darwin"
+  let g:NERDTreeDirArrows=0 
 endif
 
 " let g:SuperTabDefaultCompletionType = 'context'

+ 1 - 1
zsh/oh-my-zsh

@@ -1 +1 @@
-Subproject commit 1120f973054836eeb53750f57d69fbec41a340dc
+Subproject commit 3fdaf26006e3f075e7ccefd2721295b8bc5172f9