Loading ...
Sorry, an error occurred while loading the content.
Advanced Search
Author
Subject
Message
Special notice only

Advanced Search
  • On Tue, Dec 24, 2013 at 06:14:27AM +0100, Luca Rocca wrote: > I would like to be able to intercept every syntax match event and > 1) Check to which group it belongs > 2) Get the related string to be highlighted > I'm checking src/syntax.c but no idea for now I'd recommend you visit http://www.vim.org and put 'syntax highlight groups' in the Google Custom Search box -- there are...
    tooth pik Dec 23, 2013
  • On Tue, Nov 26, 2013 at 08:34:07PM -0800, Bee wrote: > Making progress... > function! RPN() " Mac Linux with 'dc' > let @c= system("dc '-e2k " . getline(".") . " n'") . " " > put c > endfun > imap ,= :call RPN() A > comments? it'd be a little more robust if you preserved @cby putting a let save_c = @cat the beginning of your function, and a let @c= save_c at the end -- I don't know...
    tooth pik Nov 27, 2013
  • On Thu, Nov 21, 2013 at 02:04:55PM -0800, Ari wrote: > When I open a pre-existing file with gVim 7.4 (on Windows 8), gVim > complains about modeline issues, i.e. complaining that there are > special characters at the end of the file like: ^J or ^M. Does anyone > know how to resolve this? I added "set nocompatible" to the _vimrc > (.vimrc) file. > Moreover, the formatting of files...
    tooth pik Nov 21, 2013
  • Fetching Sponsored Content...
  • On Thu, Nov 21, 2013 at 10:24:16AM -0500, Konovalov, Vadim wrote: > I use following command to make menu appear: > set go+=m > and this one to make it disappear: > set go-=m > is there a way to toggle it? > Using a function?? Vadim: Did you not see Christian's reply to this same question yesterday? If not, it was: :com ToggleMenu if &go=~'m'|set go-=m|else|set go+=m|endif which...
    tooth pik Nov 21, 2013
  • On Fri, Nov 15, 2013 at 04:44:50PM +0100, Paolo Bolzoni wrote: > Dear list, > seldom I need to search specific part of text that are not simply the current > word (where * is handy). And I instinctively select the part visually, only to > notice I do not know how to search for it in the whole text. > Example, assuming the caret is on the beginning of the sequence I want to seek...
    tooth pik Nov 15, 2013
  • On Fri, Nov 08, 2013 at 01:40:59PM -0600, Tim Chase wrote: > To replicate: > 1) start a clean Vim: > vim -u NONE > 2) read in a directory listing with the side-effect of marking the > current buffer as modified > :r! ls " *nix > :r! dir /b " Win32 is setting 'bufhidden' to hide not an option here? > 3) position the cursor over a filename that can be identified by > 'isfname' > 4...
    tooth pik Nov 8, 2013
  • On Sat, Oct 26, 2013 at 06:23:22PM -0500, Tim Chase wrote: > On 2013-10-26 13:30, AlmostSurely wrote: > > I've been trying to capture a portion of output from a shell > > command. Suppose I need the first line of output from, > > > > :!g++ --version > > > > Is it possible for me to execute the above, storing only the first > > line of output in a string variable? > Depending on the...
    tooth pik Oct 26, 2013
  • On Thu, Oct 24, 2013 at 10:57:44PM -0700, Gary Johnson wrote: > On 2013-10-24, Aaron Pieper wrote: > > By default, GVim 7.4 word wraps text files to 78 characters. I > > thought I could disable this by appending "set tw=0" to my > > %HOME%\_vimrc, but this doesn't work. This doesn't work because > > the text wrap is buried in "C:\Program Files > > (x86)\Vim\vim74\vimrc_example.vim...
    tooth pik Oct 25, 2013
  • On Wed, Sep 25, 2013 at 02:22:09AM -0700, Jacek Czaja wrote: > Hi, > Thanks for all responses. I tried with "+ register but results are > still not good eg. When I close Vim (gVim) I loose information from > clipboard. > Actually so far I tried on my Fedora (gVim 7.4 Huge), Ubuntu 12.04 > (gVim 7.3 1-429 Huge) and Windows7 (gVim7.4) and it worked only on > windows. On windows I was...
    tooth pik Sep 25, 2013
  • On Tue, Aug 20, 2013 at 09:16:20AM -0700, tjg wrote: > I have written a small function which puts "WIP statistics" at the end of the > file (pure text, no code) I am working on. > It looks like this (ts = 7) > Date NbCar NbWords NbSent NbLines > 130813 21910 3640 310 180 > 130820 30310 5210 480 220 > (NB : Date in the ymd format, Nb=number, Car=Characters, Sent=Sentences...
    tooth pik Aug 20, 2013