I installed the vim plugin on many different ways. I try to start it with Ctrl-T but what I get is always that error:
E492: Not an editor command: FuzzyFinderTextMate
Hello.
VIM can be configured to highlight current line via :hi cursorline guibg=green and set cursorline commands. But if I enable tabs display via:
:hi specialkey guifg=grey guibg=grey
:set listchars="tab"
:set list
Cursor line highlight will corrupt tabs display:
Any hints how i can avoid corruption so may tabs are highlighted with one color and cursor line is highlighted with another color without any ^I displayed at intersection?
Problem:
I want my unicode characters to be stored on disk as (rather tan utf8/16 encoding)
\u####
However, I want them dispalyed as unicode characters when opened up in vim.
I think the easiest way to acheive this is some bufopen/bufwrite script that automatically:
on opening, convert \u#### to unicode character
on writing, convert unicode characters into \u####
However, I don't know what functions to call to make this happen. Can someone lend a hand?
Thanks!
I've a hard time understanding signs I see in my text editor vim. I see signs like ^@ and ^A and ^M and ^F. What does this mean? Is there any structured list of these signs and their meaning?
Trying to Google it is a dead end since Google will not search for "^@".
How do I get vim to place the cursor within the braces starting on a new line, ie with | denoting the cursor position :
class {
|
}
right now with my settings it only does this
class {
|}
I got this in my .vimrc file
set autoindent shiftwidth=2 tabstop=2 noexpandtab
Basically I just want how a normal IDE would indent it.
update:
I found how to do this with inoremap { {<CR>}<Esc>O
My entire source code base is < 20MB.
I want it all loaded in memory in the background. So that when I do vimgrep */.cpp */.cxx */.hpp , it doesn't ahve to do file IO since vim has loaded all the files into memory already.
How can I achieve this?
Thakns!
I'm having one doubt about the VIM ENCRYPTION key.
I having a text file, I encrypted that file using
:X
Now, where the encrypted key is stored.
If I open a the file it asked Encryption key.
How it compare my key with the original key?
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?
I'd like to know if there is a way to figure out if a key does something in vim. I know that I can use :map to see user-defined mappings, but is there something for the built-in stuff?
For example, I always had CTRL-W bound to close tab, because I thought that it was unused. After half a year, I found out that there are some sequences that use it, like CTRL-W CTRL-S to split the window, and it was a nightmare to retrain myself.
Is their any way to add background image in VIM.
like,
:set background=dark
I don't know is is possible or not. If you know any way to do this tell me.
Thanks.....
I have some text files previously formatted in vim using "gggqG". Now I need to convert them to one line per paragraph format. I saw a way(using :g command) to do that before, but I have forgot it. Anyone knows?
I'm SSH'ing in from my mac OSX (10.6.8) to a school server running centOS5 and when I attempt to use VIM, it won't stop flashing inside the mac terminal. Any idea's on how to fix this? Keep in my mind I do not have the authority to modify any /etc files or /bin files on the server, although I believe I can locally on my user. Also I would love to see anyone's really cool .vimrc config file they want to share.
Hi, in VIM sometimes when saving, I accidentally hit capital W instead of its lowercase brother. I am prompted for my system password, so I assume it is running a sudo command of some sort, but do you know what?
Thank you!
Is it possible to fold C preprocessor in VIM. For example:
#if defined(DEBUG)
//some block of code
myfunction();
#endif
I want to fold it so that it becomes:
+-- 4 lines: #if defined(DEBUG)---
Is their any way to add background image in VIM.
like, I don't know is is possible or not. If you know any way to do this tell me.
:set background=dark
Thanks.....
Hi everyone. I'd ideally like a vim answer to this:
I want to change
[*, 1, *, *] to [*, 2, *, *]
Here the stars refer to individual characters in the substring, which I would like to keep unchanged. For example
[0, 1, 0, 1] to [0, 2, 0, 1]
[1, 1, 1, 1] to [1, 2, 1, 1]
If people know how to do this in perl or python or whatever, that would be equally good.
Cheers
I like my vim to get itself into command mode as often as possible. I think losing focus would be a good event to make that happen. Everything I found is for saving on lost focus.
I'd like it to auto-return to cmd mode when switching tabs in macvim or when cmd+tabbing to another app.
Given the following line:
[aaaa bbbb cccc dddd] [decimal](18, 0) NULL,
How would you remove the space only between the first set of brackets in Vim? What would the /s command look like?
Suppose I have a file, whose entire contents is:
\u1234
and suppose 1234 is the code for \alpha
is there a way to, in vim, have the "\1234" show up as a single \alpha symbol (and be treated as an \alpha symbol) ?
Thanks!
[This problem arises since I want to to use unicode names in g++]
HI all!
I would like to insert a hash at the beginning of a selected block of text in VIM (ruby comment). I selected the lines in Visual Mode, but how do I perform the same operation to all lines?
Thank you in advance!
I've committed myself to diving into vim to become faster at writing code for ruby/python and I'm having a hard time navigating around files.
Mainly, I'm referring to switching between insert mode and navigation modes. Maybe I'm just not completely used to the editor yet but it feels very awkward to constantly be switching in and out of insert mode.
Is this something that will go away with time? Are there any tricks to getting quicker at moving in and out of insert mode?