Prechádzať zdrojové kódy

Use cleaner line breaking

Marco Hinz 11 rokov pred
rodič
commit
d3d01a45ff
2 zmenil súbory, kde vykonal 12 pridanie a 12 odobranie
  1. 5 5
      doc/startify.txt
  2. 7 7
      plugin/startify.vim

+ 5 - 5
doc/startify.txt

@@ -598,11 +598,11 @@ How do I get both NERDTree and Startify working at startup?~
 Put this in your vimrc:
 >
     autocmd VimEnter *
-                \ if !argc() |
-                \   Startify |
-                \   NERDTree |
-                \   execute "normal \<c-w>w" |
-                \ endif
+                \   if !argc()
+                \ |   Startify
+                \ |   NERDTree
+                \ |   wincmd w
+                \ | endif
 <
 ------------------------------------------------------------------------------
                                                                *startify-faq-08*

+ 7 - 7
plugin/startify.vim

@@ -13,17 +13,17 @@ let g:loaded_startify = 1
 augroup startify
   if !get(g:, 'startify_disable_at_vimenter')
     autocmd VimEnter *
-          \ if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[gmnq]\=vim\=x\=\%[\.exe]$') |
-          \   call startify#insane_in_the_membrane(0) |
-          \ endif |
-          \ autocmd! startify VimEnter
+          \   if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[gmnq]\=vim\=x\=\%[\.exe]$')
+          \ |   call startify#insane_in_the_membrane(0)
+          \ | endif
+          \ | autocmd! startify VimEnter
   endif
 
   if get(g:, 'startify_session_persistence')
     autocmd startify VimLeave *
-          \ if exists('v:this_session') && filewritable(v:this_session) |
-          \   call startify#session_write(fnameescape(v:this_session)) |
-          \ endif
+          \   if exists('v:this_session') && filewritable(v:this_session)
+          \ |   call startify#session_write(fnameescape(v:this_session))
+          \ | endif
   endif
 augroup END