Duplicate: http://stackoverflow.com/questions/785389/using-vim-as-a-logfile-viewer/785412
I want to use gvim to view a log file which is being updated continuously, such that I always see the last updated line, much like tail command in unix. Is it possible?
...
Does anyone have any idea how to change the thickness of the text pointer in gVim in insert mode? I'm using it on Windows, so maybe there's a Windows trick that may do the job.
Right now it's about 3px wide, whereas I want it 1px wide.
...
When I start gvim from withing a terminal, I can access my all environment variables.
But if I launch gvim from a menu or from the "Run application" launcher, all my environment variables are not accessible.
How can I access the environment variables defined in my bashrc if gvim is not launched from a terminal ?
These variables are de...
While editing .scm files it would be great if VIM would automatically put the ending brace ")" as soon as I start "(". How do I do this?
...
I have put some aliases in my .bashrc to open a group of project files in gvim, each in their own tab:
gvim -p <list of file names using absolute paths>
This is all well and good, except there are several groups of files I might want to move between at any given time (my current project uses Ruby on Rails, so that explains that). Wha...
I want to perform rubyf action in VIM when I press F5 if the file is of .rb extension.
Right now I just have
map <F5> :rubyf % <CR>.
But I also want to interpret scheme files if its .scm or compile tex etc using the same F5. How do I check the file extension and perform the correct binding? How do you guys compile different files in ...
I'm using VIM with pythoncomplete. When I'm making a completion, the current window is splitted and calltips are shown in the upper pane. I hate that! Is there a way to prevent that behavior or at least limit the size of the upper pane automaticly?
...
I want to know if there is any way by which I can paste yanked text to the command window. For eg. if I have yanked a word and I want to grep it in some location I cant simply paste the word using 'p'. However if I copy it to clipboard, Shift-Insert will paste the same thing.
Is there any tweak available which would allow me to paste y...
Ctrl+w Ctrl+i and :stj is nice, but how do I jump to a tag (under the cursor) in a new tab in GVim/Vim?
...
Assuming the current buffer is a file open for edit, so :e does not display E32: No file name.
I would like to yank one or all of:
The file name exactly as show on the status line, e.g. ~\myfile.txt
A full path to the file, e.g. c:\foo\bar\myfile.txt
Just the file name, e.g. myfile.txt
...
Is there a way to let gVim only run a single instance, so that when a new file is opened with it it's automatically opened in a new tab in the currently running instance?
I know you can do that by passing --remote-tab-silent but I want to configure gvim so that this becomes the default behavior. i.e. I want to type gvim filename and mak...
I'm confused about these in VIM. Some things need set and others let.
And, how can I check for a certain option. I know it's an option because I use set to change it.
For example, how do I check if current filetype option is java?
...
The following in command mode (gvim)
:.,G!sort
results in
E464: Ambiguous use of user defined-command
:help E464
Ambiguous use of user-defined command
There are two user-defined commands with a common name prefix, and you used
Command-line completion to execute one of them. |user-cmd-ambiguous|
Example: >
:command MyComma...
I have a problem with MacVim. Whenever I try to change word inside a class attribute of an xhtml element, MacVim show up with error as shown below:
image
This is really anoying. I guess the error is come from omni-complete.
Plugins I'm using: autocomplpop, F6_comment, matchit, snipMate, NERDTree, fuzzyfinder_textmate
This problem is ...
Say I have the following style of lines in a text file:
"12" "34" "some text "
"56" "78" "some more text"
.
.
.
etc.
I want to be able to remove the quotes surrounding the first two columns. What is the best way to do this with VIM (I'm currently using gVim)?
I figured out how to at least delete the beginning quote of each line b...
Hi, does any know syntax of Vimgrep to search in multiple file, i am trying to use this command to search into current directory.
map <F3> :execute "vimgrep /" . expand("<cword>") . "/j **/*.c* *.txt" <Bar> cw<CR>
while using this command it search only for *.c*.
Any Idea about searching into multiple file type?
...
When i yank a whole line and press p in creates a new line to put the yanked text. Because of the newline characters.
But if I yank part of a line is there a way to put that yanked text in a new line.
I currently do o-esc-p. Is this the only way?
...
I'm having the problem that ctags takes me to a forward declaration allot of times instead of to the actual definition of the function.
Any way to get around that?
...
When I am trying to change background in vimrc or directly in vim using
set background=dark
it doesn't affect my background at all, same with light option, however it looks okay when I run gvim.
Is there a way to change background in vim without changing my Konsole settings?
Thanks.
UPD: Okay there is a difference between guifg/guibg an...
Vim customization --
I have added these lines in my .vimrc
inoremap /* /**/< Left >
what i intend is, when in press open comments /* -- it should automically print the closing comment.
when in comments, what do i add to .vimrc, so that when in comments block at each enter, an "*" is printed at the next line.
/ *
*
* ...