Basic question, CTRL+Wh on Gvim, Win XP

2007-04-10 Thread Samuel Wright
Hi All, On my gvim 7 running on Win Xp none of the following work to move to another window (I'm actually using the project plugin, but I don't think that's relevant).. CTRL-W Left *CTRL-W_Left* CTRL-W CTRL-H *CTRL-W_CTRL-H*

Re: Basic question, CTRL+Wh on Gvim, Win XP

2007-04-10 Thread Samuel Wright
On 10/04/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: In general, the safest keys to use for the {lhs} (left-hand side) of mappings are the F keys. Almost everything else already has a function in Vim. Among Worth knowing. Thanks. What about when using a leader such as , or / ? Hit any key to

Re: Basic question, CTRL+Wh on Gvim, Win XP

2007-04-10 Thread Samuel Wright
On 10/04/07, Tim Chase [EMAIL PROTECTED] wrote: The comma does a reverse-search of the last thing you searched for using t/T/f/F which many folks don't use (so they use it for leader), but I use regularly. Yes, have seen , used as leader before. Will look at the other usage though, as it is

Folding away based on a seach

2007-01-11 Thread Samuel Wright
HI All, I have a todo list of single line entries. I'd like to fold everything away apart from a custom seach, say :customsearch urgent would fold away all lines that did not contain urgent. Has this been done already in some way? If not, can I search, get the line numbers with results on,

Call a vim function from the command line

2006-12-01 Thread Samuel Wright
Hi All, Is it possible to invoke a function in vim automatically? I'd like to process a text file automatically. I *could* write an onload for the specific file that calls a functions, saves and exists, but it does not strike me as very elegant. Is there anything like vim -auto -text_file

search and replace function in vimrc

2006-11-27 Thread Samuel Wright
Hi Guys, Working with vim 7 on win xp here. Trying to add this function to my vimrc Regex to find bad indexitem entries and replace them function FixJHIndex() silent! %s/\(indexitem text=\a*.*\)\_s*\/indexitem/\1/g endfunction to find stuff like this indexitem text=Conversions between

UTL plugin query

2006-11-07 Thread Samuel Wright
Hi All, I'm using the UTL plugin to navigate local files. I have a markdown formatted file (which should not affect things), and a list of files in a directory * file.txt * other.txt When the cursor is on one of the files, leadergu opens it, which is the desired effect. However sometimes it is

saving and loading views

2006-10-25 Thread Samuel Wright
Hi Guys, I used to have this in .vimrc autocmd BufWinLeave * mkview autocmd BufWinEnter * silent loadview to automatically save and load folds. I have recently added it again, but it does not seem to work in Vim 7 on Win XP. Have I missed anything obvious? Thanks Sam

auto mkview/loadview

2006-10-16 Thread Samuel Wright
Hi Guys, I used to have this in .vimrc autocmd BufWinLeave * mkview autocmd BufWinEnter * silent loadview to automatically save and load folds. I have recently added it again, but it does not seem to work in Vim 7 on Win XP. Have I missed anything obvious? Thanks Sam

Re: How does vim recognize file type?

2006-09-18 Thread Samuel Wright
In your vim folder you probably have a filetype.vim which has a couple of lines per file type to detect when an extension is opened or created, and set the filetype automatically. Sam On 18/09/06, Andrea Spadaccini [EMAIL PROTECTED] wrote: Hello, I am using tablatex.vim, ftplugin for LaTeX