Basic question, CTRL+Wh on Gvim, Win XP
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* CTRL-W BS *CTRL-W_BS* *CTRL-W_h* CTRL-W hMove cursor to Nth window left of current one. Uses the cursor position to select between alternatives. If this intended behaviour for Win Xp, or have I enabled this somewhere? I have behave mswin turned off. Thanks Sam
Re: Basic question, CTRL+Wh on Gvim, Win XP
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 continue is a lie. lol S
Re: Basic question, CTRL+Wh on Gvim, Win XP
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 not something I've encountered. The forward slash does searching...something used quite regularly. I meant backslash there, should be more careful. Cheers S
Folding away based on a seach
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, and do the math to fold away everything else? Ie, if lines 3 and 8 contain the term, mark 1-2, fold mark 4-7 fold mark 9-end fold Thanks for your help S
Call a vim function from the command line
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 -function That I can use for this? Sam
search and replace function in vimrc
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 pixel types /indexitem The regular expression works if I call it directly, but when I write :function FixJHIndex it just echoes the function definition. What am I missing? Thanks Sam
UTL plugin query
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 opened in the current window, and sometimes the window is split. I can't seem to find why this happens, but it seems file dependent. Any help? Sam
saving and loading views
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
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?
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 files, and I have a main latex file and several included .tex files. Well, vim loads the plugin (and the syntax file) when I'm editing the main file, while it doesn't when I'm editing the included files. How can I tell vim that I'm editing a .tex file? And how do I make vim recognize .tex files without me setting the filetype? TIA, -- [ Andrea Spadaccini - a.k.a. Lupino - from Catania - ICQ #: 91528290 ] [ GPG ID: 5D41ABF0 - key on keyservers - Gentoo GNU / Linux - 2.6.17 ] [ Linux Registered User 313388 - @: a.spadaccini(at)catania.linux.it ]