Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor.

learn more… | top users | synonyms

6
votes
0answers
1k views

vimperator j/k different scroll?

Like Vim, vimperator use j/k to scroll up and down. It's too slow by default so I need to remap them. nnoremap k 5k nnoremap j 5j What surprises me is that the lines that are scrolled are not ...
4
votes
0answers
253 views

Mouse click only works once with iterm2/tmux/mosh

I'm trying to set up iTerm2 + mosh + tmux to do my remote work. I can get everything to connect up, but for some reason, the mouse response is funky. If I split my tmux window so I have two panes and ...
4
votes
0answers
602 views

I can't get XFCE terminal to display VIM's colorschemes

That's what I have in my .bashrc if [ -n "$DISPLAY" -a "$TERM" == "xterm" ]; then export TERM=xterm-256color fi In my .vimrc I have: set t_Co=256 echo $TERM prints xterm-256color tput ...
4
votes
0answers
894 views

Is MacVim copy-to-clipboard supposed to be working on OS X Mavericks?

I've recently found out that I can no longer copy text out of MacVim and paste into other Mac apps. I used to be able to do this on Mountain Lion. I have the usual configurations set, namely: set ...
4
votes
0answers
147 views

Multiple linked sessions/instances of Vim and R with Vim-r-plugin

OSX 10.8. MacVim + Vim-r-plugin = Vim sends commands to R. Awesome! (Note I'm here asking about using MacVim and R.app (i.e. w/ Gui), not either in a terminal, since for this purpose I need both to ...
3
votes
0answers
124 views

KeyRemap4Macbook Vim-emulation alternative for Linux

There is a really nifty tool for Mac OS X called KeyRemap4Macbook which allows you, among other things, to use Vim keybindings to edit text in all text fields, with a distinction between normal and ...
2
votes
0answers
46 views

Windows gVim, shell starts in HOME instead of working directory

I've recently have gotten sick of constantly switching between Windows and Linux and installed gVim and MSYS2 on Windows 7. After a couple hours of searching I have a .vimrc that makes !command, make, ...
2
votes
0answers
81 views

VIM: Characters not displayed correctly in GVIM 7.4 on Ubuntu 14.04 LTS

Using GVIM 7.4.52 on Ubuntu 14.04 LTS in a Virtualbox VM. Sometimes the characters are not displayed correctly as can be seen in the following image This totally renders GVIM unusable. The problem ...
2
votes
0answers
34 views

“Atomic” Multiple Substitution in Vim

I know how to do multiple substitutions at once in vim but this only behaves correctly if none of the substitutes match a subsequent item to be replaced. This can be worked around by using temporary ...
2
votes
0answers
58 views

Vim: is it possible to add a modeline for :syntax sync fromstart in a file?

I'm writing a really long page to document a compiler and I was thinking that it would be nice if the doxygen highlighting would stick around. Only if I do a search to further down the file, it loses ...
2
votes
0answers
160 views

Tmux 1.9a - variable #{pane_current_command} doesn't work as expected

I'm trying to get vim-tmux-navigator to work on my my Cygwin (Win7 x64) + Tmux 1.9a but it doesn't. The reason is the variable #{pane_current_command} always returns bash instead of vim, so the ...
2
votes
0answers
183 views

LC_LOCALE settings interactions between Mac OSX and LINUX via SSH

I have been struggling with the following problem for years now. I have never been able to solve it, and I adopted several workarounds to keep being able to work. However now I can't stand it anymore, ...
2
votes
0answers
978 views

Using vim / vimperator key bindings in Midori

I have recently been struggling to find a good lightweight browser with Vim keybindings that will run on Debian Linux (wheezy). Dwb crashes all the time, Luakit is very old, Chromium has memory ...
2
votes
0answers
275 views

AWS EC2: Compile vim with clipboard support

I'm using a free EC2 instance using Amazon Linux AMI 2013.09.2. I want to install the latest version of vim and include clipboard support. I've seen a few guides, but none seem to be too current. ...
2
votes
0answers
111 views

Escape key strangely captured by javascript webshell

I am using GateOne as a WebShell on my VPS (only way to SSH to it through the proxy of the place...), it uses javascript to emulate a shell by capturing keystrokes. Everything works well, yet it ...
2
votes
0answers
74 views

vim typing error statistics - faster typing

I use VIM to write code. I am not an experienced (yet) in touch typing so I would like to put more stress in learning the keys that I mistype the most, apart of daily practice and TT drills. Is there ...
2
votes
0answers
131 views

Vim noremap still causes old mappings to be active

This is my .vimrc set mouse=a set ttymouse=xterm2 set number set smartindent set tabstop=4 set shiftwidth=4 set expandtab inoremap { {}<Left> inoremap {<CR> {<CR>}<Esc>O ...
2
votes
0answers
308 views

Vim cursorshape in OS X Terminal

I compiled vim 7.3 with +cursorshape and added the following to my ~/.vimrc: set t_SI = "\<Esc>]12;purple\x7" set t_EI = "\<Esc>]12;blue\x7" but Terminal.app still displays the same ...
1
vote
0answers
14 views

How to keep Vim's visual mode selection while scrolling with Ctrl-F?

When I select text in Vim's visual mode, scrolling with Ctrl-F cancels the selection. How can I keep the selection while scrolling (with Ctrl-F)?
1
vote
0answers
35 views

Why does `zsh` insert a `~` when I press the delete key?

I have set my zsh to use vim style for editing command lines. However, when I use the Delete key, it inserts a ~ character. Have I misconfigured my zsh? How do I turn this off? Do I need to go ...
1
vote
0answers
36 views

.vimrc sourcing another leads to plugin errors

Since vim or vim-pymode does not seem to work with both python 2 and 3 at the same time I thought I make an alias for my newly compiled vim version specially for developing python 3. So I added this ...
1
vote
0answers
16 views

How do I get Dash Doc App to respect indentation on MacVim?

Couldn't do the same as the answer in the question below. How do I get Dash Doc App to respect indentation? Has someone run into the same problem with Vim? -- Edit: I can't reuse the question ...
1
vote
0answers
97 views

Vim / NeoVim: Map <CR> to <Esc> and <S-CR> to <CR>

I'd like to use enter to escape insert mode, and use Shift+Enter to insert a new line instead. The problem is my terminal emulator (Konsole running under Lubuntu) doesn't capture Shift+Enter (nor ...
1
vote
0answers
46 views

How to get par formatter to not mangle paragraphs with non-space character prefixes, suffixes?

I can't get the par formatter to do what I want, specifically with automated prefixes and suffixes. Details: My .vimrc excerpt: set formatprg=par\ -w72reqh map t gqip This example input-to-par ...
1
vote
0answers
86 views

Issues with GVim and permissions on Win7

I've installed GVim on my win7 machine but I'm having trouble with saving any files. I keep getting the e212: Can't open file for writing If I try to just quit with :q!, I get e138: Can't write ...
1
vote
0answers
115 views

How can I find out the encoding of this corrupted Chinese text, which an online tool fixes correctly?

I have a text in Simplified Chinese, which, when read as UTF-8 begins with ´ÓºÜ¾ÃÒÔÇ°¿ªÊ¼, which the online tool from MandarinTools (first search result for Repair Corrupted Chinese Email) fixes to ...
1
vote
0answers
61 views

Can vim be used to view a growing file?

I often use vim's view for viewing files. Is there a way to use it for a growing file so that I can see the progress as it's happening? Something similar to tail -f or less +F I have two use ...
1
vote
0answers
303 views

gvim (version 7.4.52 and 7.4.622) doesn't refresh properly on Ubuntu (14.04 LTS)

The problem is happening on Ubuntu 14.04 LTS running Unity desktop under vmware on Windows 7 host. My gvim is sometimes not refreshing its display unless I force it to using Ctrl+L. For example, when ...
1
vote
0answers
434 views

VIM paste error: E353 nothing in register “”

I just installed Ubuntu 14.04 and got my vim set up and I have run into a slight caveat and I am not sure why it is happening. When I try to paste something with the middle mouse button, I get: ...
1
vote
0answers
390 views

How to use ctags and vim to jump to java methods

This used to work before I upgraded my Ubuntu system: ctags *.java vim -t fooFunc Which would then take me to e.g. Foo.fooFunc() But now, vim goes to the standard "tag not found" page. I now have ...
1
vote
0answers
67 views

Vi scrolling in Firefox/Chrome

Is there a way to rebind j and k to scroll pages in Firefox or Chrome, or addons available just for vi-like scrolling that aren't entire emulators like vimperator and vimium? All I want to do is ...
1
vote
0answers
48 views

vim leaving empty display on exit

I'm on OSX using zsh and vim clears my screen on exit, unlike less or man and other applications. When I exit vim, the next command prompt is on the very bottom of the screen, leaving empty lines ...
1
vote
0answers
113 views

Neither less or less -X clear screen on exit. (Trust me, I googled…)

Neither less or less -X clear screen on exit. At the same time, vim does.... Env iTerm2, protocol mosh, server Centos + tmux + zsh iTerm2: report term as xterm-256color tmux: set -g ...
1
vote
0answers
64 views

Display soft hyphens in VIM

How do I get (G)VIM under Ubuntu 14.04 to display soft hyphens in a UTF-8 encoded text file? The encoding and the fileenconding settings are both set to utf-8, and characters like the German umlauts ...
1
vote
0answers
59 views

Vim with DBExt using FreeTDS on OS X

When I try to run a simple line of SQL like select 1 DBExt doesn't complain, the status bar says 'Executing SQL...` but nothing is showing up. Using homebrew I have installed unixODBC and FreeTDS ...
1
vote
0answers
151 views

Importing pygments' highlighting to vim

Usually, vim does very good job in highlighting, using the packaged syntax files. Unfortunately, it does bad job with MySQL. At first, I looked everywhere for a better MySQL vim syntax file, with no ...
1
vote
0answers
225 views

OSX Mavericks .zshrc cannot source

I am trying to source my zshrc. It sources fine when before I add this line: . ~/Dropbox/configs/aliases Then I get this: /Users/mkrell/.zshrc:.:13: too many open files: Dropbox/configs/aliases ...
1
vote
0answers
868 views

URxvt: vim and cursorColor [invisible cursor or invisible cursor text]

Introduction I've always used a light-background terminal and a dark-background editor (vim). On this I'm not willing to compromise. In any case, I've just switched from xterm to urxvt ($TERM == ...
1
vote
0answers
448 views

tmux in zsh with vi mode, toggle cursor shape between normal and insert mode

(note: I wrote this question on stackoverflow, but got flagged as offtopic, so I'm re-writing it here) Here's what I want: Consistent behavior (as much as possible) between Vim, MacVim, zsh with ...
1
vote
0answers
103 views

Prevent Vim from reformatting my line when I go to a new one

I like the smart auto-indenting that VIM does when I start a new line, but I hate what it reformats the line I left. I'm looking for a way to turn this off. Simple example. Say I have this HTML: ...
1
vote
0answers
51 views

Vim indentation and the prooftree package

I am using the fabulous vim-latex suite. I use (a lot) the prooftree package which has commands of the kind: \prooftree SOME-HYPOTHESIS-HERE \justifies SOME-CONCLUSION-HERE \using ...
1
vote
0answers
86 views

Vim: Custom Shortcut for Select all and Copy

I want to map a vim keyboard shortcut in .vimrc that copies all lines in a file to a shortcut key. I've tried various forms of let and map, but they don't recognize the actual copy command. I've ...
1
vote
0answers
353 views

Vimdiff functionality in Sublime Text 2

I wanted to know if it is possible to have a vimdiff like functionality to check for diff and have synchronized scrolling of two (or more) files in Sublime Text 2 just like vimdiff? Thanks
1
vote
0answers
81 views

Vim, how to avoid :set cuc side effect of setting column number

Possibly this is a bug, but I'm not sure. Through user fow in #vim on freenode, I've confirmed no side effect in 7.3.409, but there is a side effect in 7.3.547 (the version on my computer.) The ...
1
vote
0answers
641 views

Home and End keys doesn't work in vim inside tmux

I can't use home and end keys in vim, when in Tmux. I've got this strange stuff: H F H sample text my .tmux.conf: set-option -g mode-mouse on set-option -g mouse-select-pane on set-option -g ...
1
vote
0answers
477 views

backspace not working properly inside vim comEmu

When I start vim from inside conEmu, then backspace is not working properly. I know its not a conEmu issue. It's a vim problem with console. I tried all things like stty erase ^H, stty erase '^?', ...
1
vote
0answers
85 views

Is it possible to use Vim plugin CSExact with iTerm2?

I'm a bit anal about my color schemes, and in order to get really nice colors in Vim, I'm trying the CSExact plugin. I'm not sure if it's supposed to work at all in iTerm2 though? My terminal is set ...
1
vote
0answers
331 views

fix terminal vim colours (on focus lost)

When setting up Ubuntu 12.10 64bit (with gnome-terminal 3.6.0) I noticed that my vim colours mess up in the terminal as soon as the terminal loses focus. Everything is fine when using < C-z> and ...
1
vote
0answers
127 views

Vim PHP ctags for $['array'] C+]

So far I have this (Which is sufficient enough for me at the moment): ctags -R --languages=php --langmap=PHP:+.tpl --tag-relative=yes --PHP-kinds=+cf However, I still can't press "C-]" when I want ...
1
vote
0answers
267 views

Convert vim syntax highlighting for use with gedit

Is there an easy way to convert vim syntax highlighting definitions for use with GtkSourceView/gedit?