Remove submodules
parent
a45ae1ff60
commit
bd200bea18
@ -1,51 +0,0 @@
|
||||
[submodule "vim/bundle/wombat"]
|
||||
path = vim/bundle/wombat
|
||||
url = https://github.com/vim-scripts/Wombat.git
|
||||
[submodule "vim/bundle/csapprox"]
|
||||
path = vim/bundle/csapprox
|
||||
url = https://github.com/vim-scripts/CSApprox.git
|
||||
[submodule "vim/bundle/nerdtree"]
|
||||
path = vim/bundle/nerdtree
|
||||
url = https://github.com/scrooloose/nerdtree.git
|
||||
[submodule "vim/bundle/fugitive"]
|
||||
path = vim/bundle/fugitive
|
||||
url = https://github.com/tpope/vim-fugitive.git
|
||||
[submodule "vim/bundle/checksyntax"]
|
||||
path = vim/bundle/checksyntax
|
||||
url = git://github.com/tomtom/checksyntax_vim.git
|
||||
[submodule "vim/bundle/auto-compl-pop"]
|
||||
path = vim/bundle/auto-compl-pop
|
||||
url = https://github.com/vim-scripts/AutoComplPop.git
|
||||
[submodule "vim/bundle/mustache"]
|
||||
path = vim/bundle/mustache
|
||||
url = https://github.com/juvenn/mustache.vim.git
|
||||
[submodule "vim/bundle/surround"]
|
||||
path = vim/bundle/surround
|
||||
url = https://github.com/tpope/vim-surround.git
|
||||
[submodule "vim/bundle/html5"]
|
||||
path = vim/bundle/html5
|
||||
url = https://github.com/othree/html5.vim.git
|
||||
[submodule "vim/bundle/coffee-script"]
|
||||
path = vim/bundle/coffee-script
|
||||
url = https://github.com/kchmck/vim-coffee-script.git
|
||||
[submodule "vim/bundle/instant-markdown"]
|
||||
path = vim/bundle/instant-markdown
|
||||
url = https://github.com/suan/vim-instant-markdown.git
|
||||
[submodule "vim/bundle/stylus"]
|
||||
path = vim/bundle/stylus
|
||||
url = https://github.com/wavded/vim-stylus.git
|
||||
[submodule "vim/bundle/jade"]
|
||||
path = vim/bundle/jade
|
||||
url = https://github.com/digitaltoad/vim-jade.git
|
||||
[submodule "vim/bundle/desert/colors"]
|
||||
path = vim/bundle/desert/colors
|
||||
url = https://github.com/fugalh/desert.vim
|
||||
[submodule "vim/bundle/taglist"]
|
||||
path = vim/bundle/taglist
|
||||
url = https://github.com/vim-scripts/taglist.vim.git
|
||||
[submodule "vim/bundle/cute-python"]
|
||||
path = vim/bundle/cute-python
|
||||
url = https://github.com/ehamberg/vim-cute-python.git
|
||||
[submodule "vim/bundle/scss-syntax"]
|
||||
path = vim/bundle/scss-syntax
|
||||
url = https://github.com/cakebaker/scss-syntax.vim.git
|
@ -1 +0,0 @@
|
||||
Subproject commit 0b075cf5e6ef05584ef6377e116e8d0fe1f8f788
|
@ -1 +0,0 @@
|
||||
Subproject commit 26ff38d469fb4e3c304002c6cf9bad3abd57fdac
|
@ -1 +0,0 @@
|
||||
Subproject commit 18c68524ab8a043a566bbe227ea8f81ab922d092
|
@ -1 +0,0 @@
|
||||
Subproject commit a2958096696f9132ef0ece44b3fab93dac6df8d0
|
@ -1 +0,0 @@
|
||||
Subproject commit 313a810d858b0e1b8e20e7435bb5f728fb042dd8
|
@ -1 +0,0 @@
|
||||
Subproject commit 99eff93edbe98e25bd98a626e1d604d02c249e8c
|
@ -1 +0,0 @@
|
||||
Subproject commit 34e2d2538a634a0a820a56994333ffa1fec1bc58
|
@ -1 +0,0 @@
|
||||
Subproject commit 53f6c95974f2f612e3ed677334af735d3727833f
|
@ -1,36 +0,0 @@
|
||||
### 0.0.2 (03-27-2012)
|
||||
All changes for this release were made in the backend. Do `[sudo] npm -g update instant-markdown-d` to get them.
|
||||
|
||||
- Updated to the latest github styles!
|
||||
- Performance should be slightly better as CSS is no longer generated at every update.
|
||||
|
||||
### 0.0.3 (04-26-2012)
|
||||
Some changes for this release were made in the backend. Do `[sudo] npm -g update instant-markdown-d` to get them.
|
||||
|
||||
- Delay starting the `instant-markdown-d` server. This fixed the plugin for a few people who were getting empty browser windows.
|
||||
- Display a message with configuration instructions when the preview window can't be closed due to Firefox restrictions.
|
||||
|
||||
### 0.0.4 (12-05-2012)
|
||||
All these changes courtesy of @chreekat, THANKS!
|
||||
|
||||
- Is now an `after/ftplugin` plugin. Markdown filetype detection is left to Vim itself, or other plugins.
|
||||
- Behavior when multiple markdown files are open has been improved
|
||||
- No more weird characters taking over the status/command bar while editing
|
||||
- Internals have been completely rewritten and are much more cleaner and adhere to vim script best practices
|
||||
|
||||
### 0.0.5 (12-05-2012)
|
||||
These changes are _also_ courtesy of @chreekat!
|
||||
|
||||
- Plugin no longer breaks vim mouse scrolling
|
||||
- No longer errors upon opening an empty markdown file
|
||||
- `instant_markdown_slow` option to update preview less frequently
|
||||
|
||||
### 0.0.6 (03-02-2013)
|
||||
All changes for this release were made in the backend. Do `[sudo] npm -g update instant-markdown-d` to get them.
|
||||
|
||||
- Fix for systems (such as Ubuntu, Debian) which use the `nodejs` executable instead of `node`.
|
||||
|
||||
### 0.0.7 (10-31-2013)
|
||||
thanks to @terryma!
|
||||
|
||||
- Added option to only start previewing markdown on demand
|
@ -1,75 +0,0 @@
|
||||
vim-instant-markdown
|
||||
====================
|
||||
Want to instantly preview finnicky markdown files, but don't want to leave your favorite editor, or have to do it in some crappy browser textarea? **vim-instant-markdown** is your friend! When you open a markdown file in vim, a browser window will open which shows the compiled markdown in real-time, and closes once you close the file in vim.
|
||||
|
||||
As a bonus, [github-flavored-markdown][gfm] is supported, and styles used while previewing are the same as those github uses!
|
||||
|
||||
[![Screenshot][ss]][ssbig]
|
||||
|
||||
Installation
|
||||
------------
|
||||
You first need to have Ruby with RubyGems, and node.js with npm installed. (In the future there might be a version which won't require node.js at all, making installation easier)
|
||||
|
||||
- `[sudo] gem install pygments.rb`
|
||||
- If you're using Ruby 1.9.2 or later, `[sudo] gem install redcarpet`. Otherwise, `[sudo] gem install redcarpet -v 2.3.0`
|
||||
- `[sudo] npm -g install instant-markdown-d`
|
||||
- If you're on Linux, the `xdg-utils` package needs to be installed (is installed by default on Ubuntu).
|
||||
- Copy the `after/ftplugin/markdown/instant-markdown.vim` file from this repo into your `~/.vim/after/ftplugin/markdown/` (creating directories as necessary), or use pathogen.
|
||||
- Ensure you have the line `filetype plugin on` in your `.vimrc`
|
||||
- Open a markdown file in vim and enjoy!
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
### g:instant_markdown_slow
|
||||
|
||||
By default, vim-instant-markdown will update the display in realtime. If that taxes your system too much, you can specify
|
||||
|
||||
```
|
||||
let g:instant_markdown_slow = 1
|
||||
```
|
||||
|
||||
before loading the plugin (for example place that in your `~/.vimrc`). This will cause vim-instant-markdown to only refresh on the following events:
|
||||
|
||||
- No keys have been pressed for a while
|
||||
- A while after you leave insert mode
|
||||
- You save the file being edited
|
||||
|
||||
### g:instant_markdown_autostart
|
||||
By default, vim-instant-markdown will automatically launch the preview window when you open a markdown file. If you want to manually control this behavior, you can specify
|
||||
|
||||
```
|
||||
let g:instant_markdown_autostart = 0
|
||||
```
|
||||
|
||||
in your .vimrc. You can then manually trigger preview via the command ```:InstantMarkdownPreview```. This command is only available inside markdown buffers and when the autostart option is turned off.
|
||||
|
||||
Supported Platforms
|
||||
-------------------
|
||||
OSX and Unix/Linuxes*.
|
||||
|
||||
<sub>*: One annoyance in Linux is that there's no way to reliably open a browser page in the background, so you'll likely have to manually refocus your vim session everytime you open a Markdown file. If you have ideas on how to address this I'd love to know!</sub>
|
||||
|
||||
FAQ
|
||||
---
|
||||
> Why don't my `<bla>.md` files trigger this plugin?
|
||||
|
||||
By default, vim (7.3 and above) only recognizes files ending with `.markdown`, `.mdown`, and `README.md` as markdown files. If you want `<anything>.md` to be recognized, I recommend installing one of many markdown plugins available, such as [this one][tpope-markdown].
|
||||
|
||||
> It's not working!
|
||||
|
||||
- Make sure all the dependencies are installed...
|
||||
- Make sure `instant-markdown-d` was installed as a global module (e.g. using `npm -g install`)
|
||||
- Make sure the ruby gems were installed under your default Ruby (i.e. if you're using RVM, use `gem install` and NOT `sudo gem install` as that might cause the gems to be installed under a non-RVM Ruby)
|
||||
- If you're on OSX, and are using zsh and rbenv/rvm...
|
||||
- Make sure that Vim is using the correct version of ruby. From vim, if ```:!which ruby``` returns an unexpected ruby, then see here for a solution: https://github.com/dotphiles/dotzsh#mac-os-x.
|
||||
- Another thing to try would be to add `set shell=bash\ -i` in your `.vimrc` to set interactive bash as the default vim shell. (See [this issue](http://github.com/suan/vim-instant-markdown/issues/41))
|
||||
|
||||
etc.
|
||||
---
|
||||
If you're curious, the code for the mini-server component for this plugin can be found at http://github.com/suan/instant-markdown-d. A plugin can easily be written for any editor to interface with the server to get the same functionality found here.
|
||||
|
||||
|
||||
[ss]: http://dl.dropbox.com/u/28956267/instant-markdown-demo_thumb.gif "Click for bigger preview"
|
||||
[ssbig]: http://dl.dropbox.com/u/28956267/instant-markdown-demo.gif
|
||||
[gfm]: http://github.github.com/github-flavored-markdown/
|
||||
[tpope-markdown]: https://github.com/tpope/vim-markdown
|
@ -1,135 +0,0 @@
|
||||
" # Configuration
|
||||
if !exists('g:instant_markdown_slow')
|
||||
let g:instant_markdown_slow = 0
|
||||
endif
|
||||
|
||||
if !exists('g:instant_markdown_autostart')
|
||||
let g:instant_markdown_autostart = 1
|
||||
endif
|
||||
|
||||
" # Utility Functions
|
||||
" Simple system wrapper that ignores empty second args
|
||||
function! s:system(cmd, stdin)
|
||||
if strlen(a:stdin) == 0
|
||||
call system(a:cmd)
|
||||
else
|
||||
call system(a:cmd, a:stdin)
|
||||
endif
|
||||
endfu
|
||||
|
||||
function! s:refreshView()
|
||||
let bufnr = expand('<bufnr>')
|
||||
call s:system("curl -X PUT -T - http://localhost:8090/ &>/dev/null &",
|
||||
\ s:bufGetContents(bufnr))
|
||||
endfu
|
||||
|
||||
function! s:startDaemon(initialMD)
|
||||
call s:system("instant-markdown-d &>/dev/null &", a:initialMD)
|
||||
endfu
|
||||
|
||||
function! s:initDict()
|
||||
if !exists('s:buffers')
|
||||
let s:buffers = {}
|
||||
endif
|
||||
endfu
|
||||
|
||||
function! s:pushBuffer(bufnr)
|
||||
call s:initDict()
|
||||
let s:buffers[a:bufnr] = 1
|
||||
endfu
|
||||
|
||||
function! s:popBuffer(bufnr)
|
||||
call s:initDict()
|
||||
call remove(s:buffers, a:bufnr)
|
||||
endfu
|
||||
|
||||
function! s:killDaemon()
|
||||
call system("curl -s -X DELETE http://localhost:8090/ &>/dev/null &")
|
||||
endfu
|
||||
|
||||
function! s:bufGetContents(bufnr)
|
||||
return join(getbufline(a:bufnr, 1, "$"), "\n")
|
||||
endfu
|
||||
|
||||
" I really, really hope there's a better way to do this.
|
||||
fu! s:myBufNr()
|
||||
return str2nr(expand('<abuf>'))
|
||||
endfu
|
||||
|
||||
" # Functions called by autocmds
|
||||
"
|
||||
" ## push a new Markdown buffer into the system.
|
||||
"
|
||||
" 1. Track it so we know when to garbage collect the daemon
|
||||
" 2. Start daemon if we're on the first MD buffer.
|
||||
" 3. Initialize changedtickLast, possibly needlessly(?)
|
||||
fu! s:pushMarkdown()
|
||||
let bufnr = s:myBufNr()
|
||||
call s:initDict()
|
||||
if len(s:buffers) == 0
|
||||
call s:startDaemon(s:bufGetContents(bufnr))
|
||||
endif
|
||||
call s:pushBuffer(bufnr)
|
||||
let b:changedtickLast = b:changedtick
|
||||
endfu
|
||||
|
||||
" ## pop a Markdown buffer
|
||||
"
|
||||
" 1. Pop the buffer reference
|
||||
" 2. Garbage collection
|
||||
" * daemon
|
||||
" * autocmds
|
||||
fu! s:popMarkdown()
|
||||
let bufnr = s:myBufNr()
|
||||
silent au! instant-markdown * <buffer=abuf>
|
||||
call s:popBuffer(bufnr)
|
||||
if len(s:buffers) == 0
|
||||
call s:killDaemon()
|
||||
endif
|
||||
endfu
|
||||
|
||||
" ## Refresh if there's something new worth showing
|
||||
"
|
||||
" 'All things in moderation'
|
||||
fu! s:temperedRefresh()
|
||||
if !exists('b:changedtickLast')
|
||||
let b:changedtickLast = b:changedtick
|
||||
elseif b:changedtickLast != b:changedtick
|
||||
let b:changedtickLast = b:changedtick
|
||||
call s:refreshView()
|
||||
endif
|
||||
endfu
|
||||
|
||||
fu! s:previewMarkdown()
|
||||
call s:startDaemon(join(getline(1, '$'), "\n"))
|
||||
aug instant-markdown
|
||||
if g:instant_markdown_slow
|
||||
au CursorHold,BufWrite,InsertLeave <buffer> call s:temperedRefresh()
|
||||
else
|
||||
au CursorHold,CursorHoldI,CursorMoved,CursorMovedI <buffer> call s:temperedRefresh()
|
||||
endif
|
||||
au BufWinLeave <buffer> call s:cleanUp()
|
||||
aug END
|
||||
endfu
|
||||
|
||||
fu! s:cleanUp()
|
||||
call s:killDaemon()
|
||||
au! instant-markdown * <buffer>
|
||||
endfu
|
||||
|
||||
if g:instant_markdown_autostart
|
||||
" # Define the autocmds "
|
||||
aug instant-markdown
|
||||
au! * <buffer>
|
||||
au BufEnter <buffer> call s:refreshView()
|
||||
if g:instant_markdown_slow
|
||||
au CursorHold,BufWrite,InsertLeave <buffer> call s:temperedRefresh()
|
||||
else
|
||||
au CursorHold,CursorHoldI,CursorMoved,CursorMovedI <buffer> call s:temperedRefresh()
|
||||
endif
|
||||
au BufWinLeave <buffer> call s:popMarkdown()
|
||||
au BufwinEnter <buffer> call s:pushMarkdown()
|
||||
aug END
|
||||
else
|
||||
command! -buffer InstantMarkdownPreview call s:previewMarkdown()
|
||||
endif
|
@ -1 +0,0 @@
|
||||
Subproject commit fb29347a334758c47fb297a6fa1958f6480c15b3
|
@ -1 +0,0 @@
|
||||
Subproject commit 0c3900b42a81ec79885cf984ad33b2280697c7c9
|
@ -1 +0,0 @@
|
||||
Subproject commit b0bb781fc73ef40365e4c996a16f04368d64fc9d
|
@ -1 +0,0 @@
|
||||
Subproject commit 07a8b78a644d5f2abab7726a96c27180d330abcc
|
@ -1 +0,0 @@
|
||||
Subproject commit 046ccf1d695029cb4aa3aa5cf6c67e56e4a644aa
|
@ -1 +0,0 @@
|
||||
Subproject commit 42e9b46e7a20a2f394664874c7bbd9d6f6c39e8a
|
@ -1 +0,0 @@
|
||||
Subproject commit 53041fbc45398a9af631a20657e109707a455339
|
@ -1 +0,0 @@
|
||||
Subproject commit 600a27a126a32a1c7fd5d46727c2bb488d8e7465
|
Loading…
Reference in New Issue