about summary refs log tree commit diff stats
path: root/subx/vimrc.vim
Commit message (Expand)AuthorAgeFilesLines
* rerun most recent test if cursor not in a testKartik Agaram2019-06-111-0/+2
* fork vimrc for Mu and SubXKartik Agaram2019-06-111-1/+93
* 4020Kartik K. Agaram2017-10-111-0/+1
t.mu?h=main&id=ef7d834fdd826977cd8d43253052a7b8e1c5aa72'>^
01ce563d ^
4a48bedc ^
f24eeaab ^
978803c5 ^
f24eeaab ^


f24eeaab ^
e78ff7b0 ^
4a48bedc ^




f24eeaab ^

e78ff7b0 ^
f24eeaab ^
01ce563d ^
f24eeaab ^
01ce563d ^
f24eeaab ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

                                          

             
                         
                                                                                       
                         
                 
                                    


                                     
                 
                        




                                              

        
                                    
              
                                               
                           
                                


                           
# example program: reading a URL over HTTP

def main [
  local-scope
  $print [aaa] 10/newline
  google:&:source:char <- start-reading-from-network null/real-resources, [google.com/]
  $print [bbb] 10/newline
  n:num <- copy 0
  buf:&:buffer:char <- new-buffer 30
  {
    c:char, done?:bool <- read google
    break-if done?
    n <- add n, 1
    buf <- append buf, c
    {
      _, a:num <- divide-with-remainder n, 100
      break-if a
      $print n 10/newline
    }
    loop
  }
  result:text <- buffer-to-array buf
  open-console
  clear-screen null/screen  # non-scrolling app
  len:num <- length *result
  print null/real-screen, result
  wait-for-some-interaction
  close-console
]