Skip to main content

Home/ VIM Editor/ Contents contributed and discussions participated by reckoner reckoner

Contents contributed and discussions participated by reckoner reckoner

reckoner reckoner

Tip #63 - Applying substitutes to a visual block : vim online - 0 views

  • Applying substitutes to a visual block  tip karma   Rating 155/45, Viewed by 8082  Read and edit this tip on the Vim tip wiki. The wiki may have a more recent version of this tip. created:   March 28, 2001 8:26      complexity:   intermediate author:   Chip Campbell      as of Vim:   5.7 If you'd like to apply a substitute, or even any ex command, to a visual-block selected text region (ctrl-v and move), then you'll want Stefan Roemer's http://www.erols.com/astronaut/vim/vimscript/vis.vim .  Just source it in, and then press ":B".  On the command line you'll see :'<,'>BCtrl-V Just continue with the substitute or whatever... :'<,'>B s/abc/ABC/g and the substitute will be applied to just that block of text
reckoner reckoner

Tip #814 - Use cygwin shell : vim online - 0 views

  • set shell=C:/cygwin/bin/bash set shellcmdflag=--login\ -c set shellxquote=\"
reckoner reckoner

vim : Message: RE: repeating action between marks - 1 views

  • RE: repeating action between marks >Say for example I'd like to indent the text between lines 10-20. I'd >like to use marks points to indicate the lines through which to >repeat the last action I performed on a single line (in this case an >indentation), how would I do that? >I know I could for example do some regex like this: >:'a,'bs/^/ / >and clearly I can do this with a visual selection. >but how could I repeat the last action I performed over two marks: >:'a,'b<something goes here to indicate 'repeat last action'> '&' is a good start. Eg, if I use a 's///' command on one line just to see if it works as expected, I can repeat it through the entire file with :g//& :.,$& :15,20& etc., and it'll redo the 's///' command on the rest of the file or whatever limits you impose. If you do a non-'s///' command, eg, ":10,30>" to indent lines instead, you can look for patterns, etc., and do things like :/beginpattern/,/endpattern/> too. Not quite sure if that's what you were asking about, but if not, just yell back...
reckoner reckoner

vimsh.tar.gz - terminal/shell buffer script for python enabled [g]vim : vim online - 0 views

  • A terminal/shell buffer script for python enabled [g]vim (+python).  Allows execution of shell commands in a vim buffer. It does not use r! <cmd>.   Some of it's features:       - It retains state because it's interactive.  For example, set an environment variable and it "stays" because the          shell process is the same through the whole session.       - It can run interactive line based programs like ftp/telnet/python/ssh/etc including masked password input (pty supported platform only).       - Since it's a vim buffer you can go into normal mode and move around the buffer, yank, paste, use word completion, etc       - Runs on Linux and Windows, primary development and testing is done on Linux.  Windows has limitations          ( no interactive programs ) due to lack of pty support.        Requirements: To use it you must have a python enabled [g]vim and run on a platform that supports pty ( i.e. Linux ), or pipes ( Windows, Linux, et all ). The pty version has much better formatted output than the pipes version and supports running interactive programs.  Please read vimsh.readme for other installation details.  Tested on vim 6.0 using Slackware and Gentoo Linux, FreeBSD, and Windows XP.   I'd also like to hear from users running other operating systems, i.e. QNX/Solaris/other BSDs. !!!!! WINDOWS USERS !!!!!, there is a zip file available at the above link. The version kept here on vimonline is a tarred, gzipped file ( tar.gz ). If you are going to use Winzip with the .tar.gz file be sure to turn off the "Tar file smart CR/LF handling". It doesn't work well. Please send me bug reports and suggestions if you use it.  I appreciate all the patches I've been getting lately!
reckoner reckoner

Mozilla Firefox - 0 views

  • Nevertheless, spawning a shell in a VIM window is something I desperately sought after since the first day I started working with VIM, and searching on Google reveals that I'm not the only person. Someone even hacked together a Python script so you can start a shell in a window, but it's no terminal emulator, so your possibilities with this "shell" are limited. I wanted to have a real, working shell in VIM, so I wouldn't have to switch around with screen, use half-hearty solutions like splitvt etc.
reckoner reckoner

VI and VIM editor: Tutorial and advanced features - 0 views

  • Hyper-Linking to include files: Place cursor over the file name (i.e. #include "fileABC.h") Enter the letter combination: gf (go to file) This will load file fileABC.h into vim. Use the following entry in your ~/.vimrc file to define file paths. Change path to something appropriate if necessary. "Recursively set the path of the project.set path=$PWD/**
reckoner reckoner

The Institute for Language, Speech and Hearing - 0 views

  •  
     thesaurus source for vim
reckoner reckoner

VimOutliner.org :: Work fast. Think well. - 0 views

  • Vim Outliner is a vim plugin that turns the powerful vim editor into a powerful outliner of the likes of GrandView, More and MaxThink. It is keyboarder friendly and very fast. If you can touchtype, you can outline as fast as you think.
reckoner reckoner

python_match.vim - Extend the % motion and define g%, [%, and ]% motions for Python fil... - 0 views

  •  
    This script redefines the % motion so that (in addition to its usual behavior) it cycles through if/elif/else, try/except/catch, for/continue/break, and while/continue/break structures. The script also defines g% to cycle in the opposite direction. Two ot
« First ‹ Previous 121 - 136 of 136
Showing 20 items per page