Re: Starting to write with Vim
On Thu, Apr 14, 2011 at 08:55:04AM -0400, Eric Weir wrote: I'm finding h, j, k, l; e, b; $, 0; and H, M, L a bit limited as ways to move around the screen. Is there a way to move up or down from what is displayed as one line on the screen when linebreak is set to another, i.e., within what Vim actually considers a line, i.e., text between two CRs? w/b move forward/backward by word W/B move forward/backward by word including punctuation (/) move backward/forward by sentence {/} move backward/forward by paragraph /,? search forward, backward These may be used with d, c or y to dw or db, c( or c), y{ or y}, or even d/search-term or y?search-term to perform an action on text covered by a search. One way to think about these various commands is as nouns and verbs. d, c, s etc. are the verb commands. w, W, b, B, (, ), {, }, /, ?, etc. are the nouns. Nouns and verbs may be combined freely. Vim's commands are like a mini-language. Additionally, you may use text objects from inside those objects. For example: iw, aw for 'inner word' and 'a word' may be used with d, c and y to daw/diw 'delete a word' or delete inner word' from inside of words. The same may be done with is and as for 'inner sentence' and 'a sentence' and with ip and ap for 'inner paragraph' and 'a paragraph'. The various combinations of these work with d, c and y to delete, change or yank these objects. -- Scott Bicknell -- 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: Any non-programmer users of Vim here?
On Thu, Apr 07, 2011 at 04:15:37PM -0400, Eric Weir wrote: Still, as I imagine many are, I'm a bit intimidated complexity of the commands and the steep learning curve. So, I'm wondering if there are any ordinary, nonprogrammer writers here who've gotten comfortable with Vim as a writer's editor -- or is that just ridiculous to think of? Not at all. I don't program other than writing occasional shell scripts. Most of my use of Vim is for writing prose. Using anything else for composition and editing is unthinkable. Whenever I try to use a word processor or other editor for writing, the document ends up with unwanted auto-formatting and tell-tail Vim commands in the text. Go through the vimtutor included with the program, but also read the user manual (:h usr_toc). It is based on the book Vi IMproved--Vim, which is an in-depth tutorial. The user manual is truly excellent. -- Scott Bicknell -- 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, NERDtree and remote files editing
caruso_g wrote: Is there a way to use directly Vim to edit remote files (like in modern IDE)? And, more, is there a way to also use NERDtree to do that? http://www.vim.org/scripts/script.php?script_id=1075 provides support for that. -- Have you tried Linux? -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
Re: HTML editing: treat tags as a unit
Dennis German wrote: What are your favorite scripts for editing HTML? Is there a script that treats HTML tags as units? Like maybe mapping gw and gb ? Maybe have a look at the xmledit plugin http://www.vim.org/scripts/script.php?script_id=301. Im not sure of its mappings. -- Have you tried Linux? -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php