Re: convert markdown to html in new tab

2014-02-01 Thread David Sanson
Something like this is close to perfect: :tabnew | read !pandoc # But, just as '%' runs into trouble with escapes, so does '#'. So this is better: :tabnew | exe "read !pandoc " . shellescape(@#, 1) And if you want to map it, you'll need to escape the '|', so: nmap h :tabnew \| exe "read !pando

Linux shell command line editing/movement

2013-05-21 Thread David Sanson
It is called "vi mode". Assuming you are using bash, https://www.google.com/search?q=+vi+mode+bash -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php ---

Re: Vim on the iPad

2013-03-10 Thread David Sanson
I assume he means that he has modified the iOS version of Vim that is on GitHub. If you pay the $99 to be a member of the iOS Developer Program, you can build and install apps to your own device for testing purposes, but you can't distribute the built app except through the App Store. So he can'

Re: Vim on the iPad

2013-03-07 Thread David Sanson
I recently gave in and jailbroke my iPad2, and was able to install cli versions of vim, git, etc, without too much trouble. The binaries available in the default cydia repos are outdated, but the binaries in [radare's repo] are fairly recent (the vim build doesn't include python or ruby support)

Re: ios vim and plugins

2013-02-20 Thread David Sanson
On Wednesday, February 20, 2013 1:43:06 PM UTC-6, Eric Weir wrote: > > When I try to delete a folder in the vim app I get a several line error > message, the first line of which is "cannot fork." Does this mean you can > create folders in vim on the ipad but you can't delete them? Looks that wa

Re: ios vim and plugins

2013-02-19 Thread David Sanson
Netrw isn't going to work for browsing remote services: it relies on external helper apps for that. There is still development going on at the project's github page. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying t

Re: ios vim and plugins

2013-02-16 Thread David Sanson
You can make new folders on iOS from within Vim without jailbreaking. Try 'e .' to browse the "home" directory using netrw, and then, in normal mode, 'd' to create a new directory. This allows for a tedious way to install plugins by hand. But vimballs also work, since vimball uses netrw to make

Re: ios vim and plugins

2013-02-09 Thread David Sanson
Oh! That's a neat idea: just use vimball to pack the whole structure of your .vim folder into a single text file, and use it again to unpack on the iPad. Does it work? I can't see why it wouldn't. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply be

Re: Vim on the iPad

2013-01-03 Thread David Sanson
I've made no progress on this, for what it is worth. SSH-ing into a server from Prompt.app and using an Apple Bluetooth keyboard works fine---including support for the ESC key. But, at least on the server I have easy access to, it is laggy, so I don't do it. I still haven't tried the jailbreak/l

Re: Full screen writing, a la Omm Writer in vim

2012-12-09 Thread David Sanson
If you are just looking to replicate the experience of writeroom and its many clones in vim, poke around on github and you'll find several options. For example: https://github.com/dsanson/writer.vim https://github.com/honza/writer.vim https://github.com/laktek/distraction-free-writing-vim No r

Re: Alternatives to codepad.vim

2012-11-10 Thread David Sanson
If you launch the gvim binary using an alias named 'vim', as was suggested, it will run as a console app, not as a GUI app. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.or

Re: Vim for iPad

2012-09-17 Thread David Sanson
For me, the Vim for iOS app never got beyond a novelty for two reasons: (1) no reasonable method for getting files in and out of Vim; (2) no support for the ESC key on the bluetooth keyboard. For (1), Dropbox support would be great. Git and SSH would be better! At a minimum, just being able to

Re: Dr Chip

2012-03-02 Thread David Sanson
Can't answer your question, but you can still grab stuff from http://web.archive.org/web/20110514062220/http://mysite.verizon.net/astronaut/vim/ -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, vi

Re: Vim for LaTeX

2012-02-29 Thread David Sanson
Take a look at https://github.com/vim-pandoc/vim-pandoc and https://github.com/juhasz/mmd_vim. You might also be interested in https://launchpad.net/vim-latex-box, an alternative to vim-latex. -David -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply be

Re: How to use vertical window as table of content

2012-02-23 Thread David Sanson
I use [VOoM] for this. It generates the outline by looking at fold markers, or, if you specify a format (like org-mode or rst or markdown or html), it generates an outline based on headers. David [VOoM]: http://vim-voom.webs.com/ -- You received this message from the "vim_use" maillist. Do no

Re: Prefix lines with a counter

2012-01-21 Thread David Sanson
Another solution is to make them all start with "1. " and then use pandoc to tidy them up. Adding the "1. " is easy: `:s/^/1. /`. I have set equalprg=pandoc -t markdown So if I have something like 1. item 1 1. item 2 1. item 3 and select them all in visual mode (`vip` works for th

Re: vim and tmux

2011-09-20 Thread David Sanson
When I first started using tmux instead of screen, I set the prefix to C-a instead of C-b, since that was what my fingers already knew. It does mean that I have to hit C-a twice sometimes to get a literal C-a, but I'm already used to that. As it happens, I don't use C-a in vim to increment numbe

Re: Installing on OSX 10.4.7

2011-09-01 Thread David Sanson
Three thoughts: 1. You might try asking on vim_mac to see if anyone there has advice. 2. Install [XCode 2.5][]. That should include a CLI-only vim binary, as well as things like basename, python, perl, etc. (You will need a free apple developer account to download.) On OS X, you need to