I've a file that was exported from Word and it replaced all quotes with strange unicode characters which aren't correctly displayed in vim.
So now I want those characters to be replaced with quotes, but I don't know how to enter this character in
:%s/???/'/g
The characters look like this: ~U ~R. But of course I can't just mark them...
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 ...
I'm starting to use Linux and Vim at work. I'm started reading vims documentation and creating my own .vimrc file and such.
I'm a web developer working with HTML, XML, CSS, JS, Python, PHP, ZPT, DTML and SQL.
I would like to have an indent feature like this one: for each language/set, a corresponding indent solution.
So, in js, writin...
I'm currently trying to switch from Coda (a Mac IDE) to Vim. One thing I loved about Coda and my knowledge of Vim cannot replace were the so-called "clips". Basically, you type, say, "new", press TAB, and the text is replaced with a basic XHTML page. And you can add as many keyword/clips combinations as you want.
The most I could get w...
I'm trying to get vim to display my tabs as ⇥ so they cannot be mistaken for actual characters. I'd hoped the following would work:
if has("multi_byte")
set lcs=tab:⇥
else
set lcs=tab:>-
endif
However, this gives me
E474: Invalid argument: lcs=tab:⇥
The file is UTF-8 encoded and includes a BOM.
Googling "vim encoding" or ...
I have defined my own file types using vim. For example I have:
.classNotes
.reportJotNotes
.homework
These file types are defined in .vim files:
~/.vim/syntax/homework.vim
~/.vim/syntax/reportJotNotes.vim
~/.vim/syntax/homework.vim
Many of these things have several of the same code in them. Ie they all have this for titles:
sy...
When I use :e in vim, it will tab-complete .class files before the .java files. As I never want to edit .class files, how do I prevent vim from showing .class files in the tab-completion?
...
Hi. how can I clear the .viminfo file.
I want to clear the Command Line History,File marks, Jumplist etc.,
other then Search String History
Is there any way to do this.
...
Hi,
I might have done something wrong in the set up but is OmniCppComplete supposed to provide the members/functions of classes when doing this?
vectorofpointers[0]->
At the moment all I get when trying that are things relating to the vector class itself, which obviously isn't very useful. I think it might have been working before I ...
I know a lot of nice dark schemes for Vim which makes coding more readable and pleasant such as ir_black, wombat, zenburn. Its weird but I haven't seen so many popular light themes (white background).
Does anyone knows a light Vim scheme which makes code more readable and pleasant to see?
(that makes code less confusing to distinguish, ...
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...
The bar where the line numbers are is gray in the following scheme: louver.vim
I would like to change its color but can't figure out the name.
" Normal
hi Normal guifg=black guibg=white gui=none
hi Normal ctermfg=black ctermbg=white cterm=none
hi NonText guifg=darkgray guibg=white ...
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...
In my environment, I share vim configuration with other developers (and have my own configuration additions as well) in various .vimrc files. Some places in the environment, I edit a file in vim and automagically a copy of that file with a trailing tilde suffix appears. What vim options control this? I'd like to turn the feature off, a...
I am using colorscheme desert256.
It is quite nice except for an annoying detail:
I cannot really tell where the cursor is sometimes.
How can I change just the cursor style, (say make it red)?
Thanks
...
I want to set up separate ctags databases for various libraries in /usr/include/ for use with OmniCppComplete.
The idea is to be able to pull in only the libraries needed for a particular project in the target language - C or C++.
For example, I'd like to have one database for the standard C libraries, one for system libraries that m...
I'm running Ubuntu 8.04 and I ran the command:
$ ctags -R --c++-kinds=+p --fields=+iaS --extra=+q -f ~/.vim/tags/stdlibcpp /usr/include/c++/4.2.4/
to generate a ctags database for the standard C++ library and STL ( libstdc++ ) on my system for use with the OmniCppComplete vim script. This gave me a very reasonable 4MB tags file which...
I was just looking at this post which describes how to wrap entire words in vim. The accepted solution was this:
:set formatoptions=l
:set lbr
Which takes this text (tabs are shown as \t):
*Inside of window *Outside of window
|---------------------------------------|
|\t\tthis is a like of text that will ...
I have vimx installed, so I can copy in vimx to the x clipboard by using "+y and the like, which works well as long as I can keep the current vimx running.
However, I also love to be able to switch to the current running shell with ctrl-z and be able to paste what I copied from vim into the shell. Does anyone know how to do this, becau...