about summary refs log blame commit diff stats
path: root/arc/vimrc.vim
blob: d2a651463abc929863dcbbe205b4fc8f1e02b1e4 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                   
syntax sync minlines=999

function! HighlightMuInArc()
  set ft=mu
  syntax keyword muHack begin | highlight link muHack CommentedCode
  syntax match muHack "[()]" | highlight link muHack CommentedCode
endfunction
autocmd BufRead,BufNewFile *.mu call HighlightMuInArc()
>from __future__ import (absolute_import, division, print_function) import ranger.api HOOK_INIT_OLD = ranger.api.hook_init def hook_init(fm): try: # Create a FIFO. import os ipc_fifo = "/tmp/ranger-ipc." + str(os.getpid()) os.mkfifo(ipc_fifo) # Start the reader thread. try: import thread except ImportError: import _thread as thread def ipc_reader(filepath): while True: with open(filepath, 'r') as fifo: line = fifo.read() fm.execute_console(line.strip()) thread.start_new_thread(ipc_reader, (ipc_fifo,)) # Remove the FIFO on ranger exit. def ipc_cleanup(filepath): try: os.unlink(filepath) except IOError: pass import atexit atexit.register(ipc_cleanup, ipc_fifo) except IOError: # IPC support disabled pass finally: HOOK_INIT_OLD(fm) ranger.api.hook_init = hook_init