git.fiddlerwoaroof.com
Browse code

move possibly failing commands to end of vimrc

fiddlerwoaroof authored on 09/06/2017 17:50:15
Showing 1 changed files
... ...
@@ -256,7 +256,7 @@ colorscheme solarized
256 256
 "autocmd BufEnter *.hs compiler ghc
257 257
 "au FocusLost * :wa
258 258
 
259
-function Checkft()
259
+function! Checkft()
260 260
   if &filetype==""
261 261
     filetype detect
262 262
   endif
... ...
@@ -318,16 +318,6 @@ nnoremap <C-k> <C-W><C-K>
318 318
 nnoremap <C-l> <C-W><C-L>
319 319
 nnoremap <F2> :set nonumber!<CR>:set foldcolumn=0<CR>
320 320
 
321
-python << EOF
322
-import os
323
-import sys
324
-import vim
325
-for p in sys.path:
326
-    if os.path.isdir(p):
327
-        vim.command(r"set path+=%s" % (p.replace(" ", r"\ ")))
328
-EOF
329
-
330
-
331 321
 func ListItem()
332 322
  let g:counter += 1
333 323
  return g:counter
... ...
@@ -431,3 +421,14 @@ autocmd BufRead,BufNewFile *.php setlocal breakindent breakindentopt=sbr,shift:7
431 421
 command -nargs=+ Gadd Git add <q-args>
432 422
 " set runtimepath+=/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/vim
433 423
 au BufNewFile,BufRead *.phn set filetype=clojure
424
+
425
+python << EOF
426
+import os
427
+import sys
428
+import vim
429
+for p in sys.path:
430
+    if os.path.isdir(p):
431
+        vim.command(r"set path+=%s" % (p.replace(" ", r"\ ")))
432
+EOF
433
+
434
+