Tagged Questions

From the Vim website: Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems. Vim is often called a "programmer's editor," and so useful for programming that many consider it an ...

learn more… | top users | synonyms

0
votes
0answers
31 views

How do I map the <compose> key to <esc> in vim?

I currently have my capslock key bound to [compose] using xmodmap. Compose is good when typing scientific stuff, as I can quickly write things like 275°K. But it's not useful when programming. When I ...
2
votes
1answer
23 views

Can I view gvim tabs in separate windows?

I'd like different tabs to be visible at once, managed as separate windows (window manager windows, not Vim windows). This is impossible, right? Just checking.
0
votes
0answers
17 views

vim mksession colorsheme issue

I can sees that when I use mksession it writes file to save session. The file looks ok and session is loading ok. But It change my colorsheme when I load the session whith so. After session is opened ...
0
votes
1answer
26 views

Can I use the `<cmd>` key in terminal Vim at all?

Following on from my other recent question: How do I map <cmd>-<shift>-f to run Ack plugin in Vim? Is is possible to use the <cmd> key in Vim at all? If Vim doesn't recognise the ...
0
votes
1answer
40 views

Oneliner for multiline regex s/,\n]/]/g?

Can someone provide a simple one-liner to remove certain linebreaks ? In vim I do :%s/,\n]/]/g this should be possible with a very simple one-liner IMHO, but how?
0
votes
2answers
37 views

Nano-like editor that support Ctrl+Backspace and Ctrl+Arrow keys

Does anybody know of a nano-like editor that support Ctrl+Backspace and Ctrl+Arrow keys? Like in Windows, where you can delete and navigate words. I have been trying to learn the basics of Vim for ...
1
vote
1answer
28 views

Strange characters in Vim

I'm have this really strange problem in Vim using the NERD tree plugin, where, as you can see in the picture, the characters are showing up very strange. Where there is the ahat, ~V 3/4 it should be ...
1
vote
1answer
39 views

How to select all in vim through putty

I'm PuTTYing into a Linux machine from a Windows computer. I'm opening up a large log file in vim and am having enormous difficulty trying to figure out how to select all the text and copy it into a ...
0
votes
1answer
32 views

vim linux mint bottom toolbar

ive been trying Vim/Gvim, in both windows and linux (mint), but something seems to be missing. Im missing the bottom "status" bar from the linux version, the one that indicates the key pressed. Am i ...
2
votes
1answer
30 views

How do I map <cmd>-<shift>-f to run Ack plugin in Vim?

I'm new to vim and I'm trying to map a key combo for running the Ack plugin found here: https://github.com/mileszs/ack.vim I want to map cmd-shift-f to run the Ack command :Ack. I've added the ...
0
votes
1answer
13 views

How can I check whether Vim has the -p (tabs) option or not?

I would like to figure out in my .bashrc (or one of the files it sources) whether Vim has the -p option available and if so create an alias. Now, that same .bashrc is used on numerous systems ...
1
vote
1answer
25 views

MacVim - keyboard shortcut to change tab left

What is the command for changing to the tab to the left? "gt" is changing to the right, but I can't find the command for going the other way. Thanks
0
votes
1answer
35 views

This line in .vimrc causes vim to open in “c” mode?

I cannot understand why having this line: nmap <C-[> :tabprevious<cr> ... causes vim to open up immediately in "c" (change?) mode. This is one half of a pair of mappings that I like to ...
1
vote
1answer
53 views

Making the active window in vim more obvious

My workspace is normally one very big xterm with vim, split into six or more buffers. It would be really helpful if it were more obvious which one was the active buffer. Right now I'm using the ...
1
vote
1answer
31 views

Redirecting output into existing (g)vim instance

Is it possible to redirect the output of a process (in bash) into an existing instance of (g)vim? Something like: cat myfile1.txt | awk 'print $1' | gvim - Then I might start a new window inside ...
1
vote
1answer
35 views

How to reclaim ^S in zsh?

I've found ^S mapped to be the fwd-search key for zsh (ohmyzsh) but I would like to use it in vim for various mappings as well - it seems like the zsh mapping is preventing me from using it now. Any ...
0
votes
0answers
15 views

vim NERD Commenter plugin gives errors while executing script

I've installed the NERD Commenter on my vim 7.3 and when I try to use it's mappings, say, \cc (since I have \ as my leader key), it gives errors like these: Error detected while processing function ...
0
votes
0answers
6 views

Debugging image uploading on VimRepress plugin of Vim

I installed VimRepress which is a great plugin that alllows the user to post to a Wordpress blog right from within Vim. But image uploading doesn't work with me properly. I give the following command: ...
2
votes
1answer
31 views

Auto-insert left bracket in Vim

I'm trying to code some Objective-C in Vim and one thing I'm missing from Xcode is the ability to auto insert the left matching bracket. Say if I have the following text: NSString *string = ...
1
vote
3answers
44 views

Save vim settings across launches?

My professor assigned an ssh account to every student in my programming class and mandated that we use VIM for text editing. I discovered :set nu and :set auto indent via Google. I noticed that those ...
0
votes
1answer
42 views

How do I uninstall ctags on MacOSX?

I was messing around with vim, and every now and again my CPU goes to 100% running ctags. It's getting annoying, I can't figure out how to uninstall it. I've tried 'sudo port uninstall ctags' but that ...
2
votes
3answers
107 views

Should I learn Vim without mapping keys?

I have been using vim for a few months its been a love/hate relationship. I love the concept of modal editing and never having the need to move you hands from the keyboard. The problem is that a lot ...
4
votes
4answers
92 views

How to explain VIM's modes to people?

I'm trying to explain VIM's NORMAL and INSERT modes. Is there a canonical metaphor that the Vi community has to explain the modes?
2
votes
2answers
98 views

how to do a vim search inverse search for all lines with out text

with grep I can do a grep -v "my search" to get all the lines with out "my search" with sed I can sed '/baz/!s/foo/bar/g' to find replace text on lines with out baz Is there a way to do the same ...
1
vote
1answer
25 views

nnoremap with vnoremap

with vim, I use object indent. and frequently I use this vii:!sort for sort a block with same indent. I try set this nnoremap nn <leader>ss vii:!sort<cr> but don't work, any ...
2
votes
1answer
34 views

vim: select the current indents lines

in vim, how I can selected the lines with the same indent, example if true: line 1 line 2 ... line n if the cursor is over line 2, how I can selected from line 1 to line n?
2
votes
2answers
30 views

How to fix vim textwidth during editing?

When editing files that I limit in my .vimrc to tw=80, when I come back to edit them later, the line-lengths end up all over the place. e.g. lets say for the sake of argument that this line hits 80 ...
0
votes
1answer
34 views

Turning on XML syntax highlighting in vim for a non-XML file

I'm using vim to browse through some log files (the file extension is .log) which contain a lot of XML. How can I turn on XML syntax highlighting after opening the file? Of course, I don't actually ...
1
vote
1answer
40 views

mac iTerm2 unbind command + / Find Cursor shortkey [closed]

Possible Duplicate: Is it possible to remove a built-in shortcut from an application in Mac OS X? I'm looking for some way to unbind command + / key by default binded to the View -> Find ...
3
votes
1answer
63 views

How to select the last inserted text in vim

How to select the last inserted text in vim? For example I want to be able to type a text, exit the insert mode, select what I have just inserted, and change it to uppercase. Note: I do not consider ...
0
votes
1answer
51 views

Building VIM with python support in Cygwin?

I'm trying to build VIM with Python/Perl support under Cygwin. Has anyone done this and can shed some light how this is achieved?
0
votes
1answer
59 views

vim : <c-a> occupied from tmux/screen

I use screen/tmux and vim. In vim, I can't use <c-a> for increment a number, <c-a> is occupied from screen/tmux. any suggestion for a simple map for increment a number ? I try with ...
0
votes
1answer
62 views

MacVim : Switch Tab Shortcut

Is there any shortcuts to switch the Tabs from one to another in MacVim ? Else, any tips to bind the shortcuts myself in .vimrc like ⌘ + 1 for Tab 1 and ⌘ + 2 for Tab 2 . For example, like ...
1
vote
1answer
42 views

VIM: Don't pause after `make`

How can I make it so that I don't have to press the RETURN key every time I run :make in VIM?
8
votes
1answer
90 views

colors and vim with css

I started to use vim on Ubuntu for web development. Now, I have a visual issue when I use media query CSS when I put resolutions As you can see the first media screen is working properly but not ...
0
votes
2answers
104 views

Don't let vim scroll below bottom line

How can I disable that vim lets me scroll past the end of a file?
2
votes
0answers
30 views

Why is my tcp window size going to zero when using VIM over VPN

I use a mac os laptop over a typical (i.e. crappy) wireless home network and connect to work over a VPN. I ssh into the linux (ubuntu) desktop I have in my office at work. (When I say, "I ssh": I ...
1
vote
1answer
33 views

How can I get the PHP linter output right in vim on Windows?

I'm using PHP linter to check syntax errors in PHP , right from vim with that command : :!PHP -l "%" when I do that, ( I'm on Windows ) , Windows open another CMD and the result of the parsing is ...
1
vote
3answers
46 views

Is it possible to page up/down in Vim without moving the cursor?

Is it possible to move to another page in gVim without moving the cursor from its present location? Splits don't count :)
1
vote
3answers
61 views

Alternate page-up in vim?

I just stumbled on shift+enter to page-down in vim. I'm wondering if there is something as useful (i.e. easier to reach than ctrl+B) for paging up. I'm looking for something that is already there, ...
0
votes
1answer
33 views

Getting man path through Vim

So, I've set up Vim as my default man viewer. I also have NERDTree starting up automatically - but I could really do without NERDTree showing the location the man pages every time I check man. I've ...
0
votes
0answers
40 views

VIM reverse wildignore

Is there a way to specify a reverse 'wildignore' parameter in vim? Basically, I want to ignore every folder except 'x', 'y', and 'z'. My use case requires me to be in a folder with many many ...
0
votes
1answer
53 views

Display characters on a square grid?

How can I display characters as if they are square in vim? The characters themselves don't need to be square, but if you were to draw a grid through all centre points of the characters it should make ...
2
votes
1answer
65 views

Replace hyphens with HTML entity for em dash in Vim

In Vim, I'm trying to run a substitution on this text: lorem ipsum -- dolor sit ...to get it to look like this: lorem ipsum&#8212;dolor sit I'm trying to do :%s/ -- /&#8212;/g, but it ...
2
votes
1answer
93 views

Looking for non-conflicting cross-platform keybinding consistency

I use Mac OS X and Arch Linux and occasionally log into FreeBSD and Debian servers by ssh. My favoured tools are zsh, ssh, tmux, git, vim and irssi. I use iTerm2 on Mac OS X and unicode-rxvt on Arch ...
0
votes
1answer
31 views

VimScripting NERDTree

Trying to force cursor to leave NERDTree window on MacVim startup (mvim .) so I could continue make new split-ups and open certain files in them. But it feels like cursor is stuck in the NERDTree and ...
3
votes
1answer
92 views

vim : open many tabs for many files

in vim, I can one file en a new tab with : :tabnew file If I have many files, example: util.h and util.cpp. how I can open the files in new tabs ? similar to :tabnew util.*
0
votes
1answer
69 views

No colors in Terminal.app

Somehow my colors in Terminal.app are completely borked. If I load up Vim with syntax on, there are no colors, but line numbers are underlined (and so are some other parts). It looks really really ...
1
vote
1answer
32 views

Opening files from Eclipse in gvim skips vimrc and gvimrc

When I try to open a file in an Eclipse project in gvim (using Eclipse's "open with -> other"), gvim seems to skip loading the global gvimrc and vimrc files and opens a bare white window with the ...
1
vote
1answer
27 views

Keep cursor in Netrw window when browsing files in VIM

I have a vertical split in VIM. On one side I open netrw (:E) to browse through some files/folders. Although as soon as I press 'Return' to enter a folder, folder opens and cursor is moved into other ...

1 2 3 4 5 22