gvim

Bash alias to open Vim at last cursor position mark

The mark " in Vim takes you to your last cursor position. I want to create an alias that will open my Vim instance and jump to that mark; something which is obviously extremely useful. This works from the command line: $ vim -c "'\"" File.cpp Now I want to make an alias for this: $ alias v='vim -c "'\""' Well that's not goin...

vim-latex config

Hello: I have installed vim-latex package using my ubuntu's synaptic package manager. I followed the instructions here to edit my .vimrc file. However, when I open up a .tex file in vim, nonw of the new menu options appear and I can't seem to compile documents using \ll. What did I do wrong? ...

Vim search in C/C++ code lines

Hello. Is there any way to search a string in a C/C++ source file while skipping commented lines? ...

Removing contiguous duplicate lines in vi without sorting

This question already addresses how to remove duplicate lines, but enforces that the list is sorted first. I would like to perform the remove contiguous duplicate lines step (i.e. uniq) without first sorting them. Example before: Foo Foo Bar Bar Example after: Foo Bar ...

samba windows gvim & "READ ERRORS"

I have a samba server on my embedded box. I was planning to use it to edit files easily. However when I open files on my windows machine, I get read errors. I have tried textpad, gvim and kate(andLinux). On gvim I first get "write error in swap file" and it is replaced by "[READ ERRORS]". If I access the same file through pyNeighborhoo...

Drag drop open file in Macvim split window?

Hello. I like to use the split window feature in Vim. However I cannot seem to drag drop new files into the different sections. Doing so will just open a new tab. I don't like using tabs as I still need to flick between them and not much different to using separate windows. Is there anyway I can change this behaviour? It works fine o...

Vim with split frame of buffers or file listing

Similar in appearance to Vim as a note taking platform (SO), I would like a pane with a list of open buffers that can be used as a jump to list. This is one feature in many IDEs and other advanced editors that is missing. Having a dozen buffers or so open becomes confusing as to which buffer is where. ...

How to show tab character while using expandtab setting in vim

In my .gvimrc I have following lines: set listchars=tab:\.\ ,trail:- set softtabstop=2 set shiftwidth=2 set tabstop=2 set expandtab When I change last line to set noexpandtab the indents can be seen and marked with . Is there a way to make vim treat expanded tabs like "normal" tab so that list option works as expected? ...

Is there a way to append a folder to the PATH environment variable in vimrc?

I'm running portable python and portable gvim. When I run gVimPortable, I want it to append python to the PATH environment variable. This is the command I would run in a command prompt: path=%path%;C:\portable\PortablePython_1.1_py2.5.4 Is there a way to automate this in the vimrc file or some other way? ...

What vimrc settings to speed up scrolling?

I use gvim pretty heavily at work, typically logged into a server farm. This works great while I'm directly on the corporate LAN, but when I VPN in from home and resume my sessions, gvim scrolls almost intolerably slow. Every time I page up or down, the scrolling does a lot of unnecessary screen refreshes before it gets to the final ...

(g)Vim with version control like Eclipse

I was an Eclipse user, now I have to use Vim in my machine. I used to "compare" a file I edited with a CVS repository to do merges an commit the files, using a context menu and my mouse. Is this possible in Vim? Opening a vimdiff for a file before commiting, and commit it from vim itself? And how is that supposed to work? I'm supposi...

How can I search for the dot character using the search command?

I'm trying to use the Search command in Vim: :Rs/F/T/X R = range F = text to find T = text to replace with X = options But, when I want to search for the "." (dot character) I'm getting some problems. The task: Replace all occurences of " ." (space dot) for ">" (greater-than) So, first I tried this: :%s/ ./>/g But this changed m...

Vim: How do I tell where a function is defined? (

I just installed macvim yesterday and I installed vim latex today. One of the menu items is calling a broken fuction (TeX-Suite -> view). When I click on the menu-time it makes this call: :silent! call Tex_ViewLatex() Question: Where can I find that function? Is there some way to figure out where it is defined? Just for cu...

Making gVim behave like Notepad++ in terms of HTML syntax highlighting

In Notepad++ when you work with HTML, when you move the cursor onto a tag it automatically highlights that tag and its opening/closing corresponding tag. That is really useful when you have lots of div inside each other. How do you turn this on in gVim? ...

Extract and use a part of string with a regex in GVIM

I've got a string: doCall(valA, val.valB); Using a regex in GVIM I would like to change this to: valA = doCall(valA, val.valB); How would I go about doing this? I use %s for basic regex search and replace in GVIM, but this a bit different from my normal usages. Thanks ...

What is the "un-tab" sequence in (g)Vim?

This is an annoyance I've had for a long time. (Nitpicky section: I prefer 4 space characters to tab characters. It's a lot easier to type "tab" instead of explaining that. When I say "tab", I mean "the action that happens when you press the tab key" which is probably more simply stated as "increase indentation".) I'm using smartinde...

How do I preserve folds in VIM when cutting and pasting?

In vim, you can create a fold with zf, so if is %, you can neatly fold a delimited block. is there a way to select some text in visual mode and automatically fold that? I've noticed that if I select a closed fold and use dd to delete it, then go somewhere else and use P to paste it, the fold will disappear and the fold will be expande...

Getting Omni complete to work on vim 7.2 on windows

Hi, I am trying to use the Omni complete feature with gVim 7.2 but on windows I keep getting an error that says Error: require vim compiled with +python E117: unknown function: pythoncomplete#complete seems like it might be because gvim 7.2 is compiled with 2.4 and I have 2.5 installed. I have downloaded the 2.5 compiled binaries from...

vim: save a list of open files and later open all files

I want to save a list of open files (:ls), quit gvim, start gvim, reopen all previously opened files. I don't want to use :mksession because it doesn't work correctly (probably due to some of the plugins I'm using) ...

E665 Error Starting gvim

Hi, I get the following error when I try to start gvim on Solaris 10: -bash-3.00$ gvim E665: Cannot start GUI, no valid font found Press ENTER or type command to continue Has anyone seen this error? Just thought someone might know of a workaround /j ...