Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added short vim howto

  • Loading branch information...
commit 72261c4ed76a6590dc4bce9229bbe719172dbf75 1 parent 9f74693
Marc Weber MarcWeber authored nominolo committed
Showing with 29 additions and 0 deletions.
  1. +29 −0 README.markdown
29 README.markdown
View
@@ -166,6 +166,35 @@ convenient to start the server from within Emacs:
M-x scion
+Vim:
+ ensure :echo has('python')
+ returns 1
+
+ add to your ~/.vimrc (TODO make this lazy so that python is only loaded when required!):
+
+ py scionConnectionSetting = ('socket', ("localhost",4005))
+ set runtimepath+=<path to scion repo/vim_runtime_path/>
+
+ :e some_hs_file.hs
+ :OpenCabalProject
+
+ :LoadComponent library
+ or
+ :LoadComponent executable:cabal_executable_name
+
+ At this point you should already get some compilation errors.
+
+ use
+ :BackgroundTypecheckFile
+
+ before
+ :ThingAtPoint
+ You should see something like:
+ {'Just': 'print :: [Char] -> IO ()'}
+
+ Have a look at vim_runtime_path/ftplugin/haskell.vim to see a list of all
+ commands which are implemented yet.
+
Bug Reports
===========
Please sign in to comment.
Something went wrong with that request. Please try again.