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 equal....
5
votes
0answers
337 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 ...
5
votes
0answers
815 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
946 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
152 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
130 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 ...
3
votes
0answers
87 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
37 views

Print (cat) a vim encrypted file

I used -x option in vim to encrypt a file. I read this files much more times than I write to it, so I always use cat and then remember it is encrypted because of what it shows.. So then I have to ...
2
votes
0answers
66 views

Vim Airline - how to disable tabline filename?

When I use Airline's Tabline in Vim, I get the filename twice in my Tabline. Once on the left, and again on the right. I would like to use the extra space on the right for other filenames. Here is a ...
2
votes
0answers
85 views

Can't import python module in .vimrc

So, I decided to try out powerline in vim, and for that reason I installed pypy using brew. I installed macvim as well and it is compiled with python support. Following powerline installation ...
2
votes
0answers
83 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
142 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
39 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
195 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
641 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: ...
2
votes
0answers
237 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
1k 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
1k 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 == rxvt-...
2
votes
0answers
328 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
533 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 vi-...
2
votes
0answers
119 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
816 views

Why does git difftool not work with vimdiff?

I just set up git and set git mergetool to vimdiff and it works as expected. If I set git config --global diff.tool vimdiff it behaves strangely: git diff x y will open less and display the changes ...
2
votes
0answers
317 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
23 views

Vim got corrupted and print unsual lines, block number, how to fix from printing junk values?

I am getting these lines whenever I am trying to read/write any file or syslog. I am using vim. If I press any keys, it will print these lines, how to get rid-off to these junk lines: "/var/log/...
1
vote
0answers
32 views

Vim doesn't respect fileformat setting on windows share [Solved]

I have mounted several SMB shares (folders are located on windows server) on my linux machine gvfs-mount smb://user@domain@fileserver/sharedfolder I can access files and edit them in vim, but vim ...
1
vote
0answers
27 views

How to undo specific line in vim?

I have lots of modifications in a file, but I want to undo specific line to initial state which keep other lines at current state. Is there a way to do it in vim?
1
vote
0answers
113 views

Vim Plugins within Git Bash for Windows

In an effort to improve the terminal usability in Windows I have setup ConEmu to use Git Bash for Windows as the default terminal. I use Vim Plug to manage my Vim Plugins, and have already set up the ...
1
vote
0answers
48 views

Quickest way to copy text in a pdf

I'm looking for the most efficient way to copy text from a pdf using only my keyboard. I want to emulate what I do in Vim, which is to place my cursor at the point where I would like to begin my ...
1
vote
0answers
29 views

vim recent changes breaks vmap?

The same procedure works on my VIM 7.4 patch 1-1572 but not on my VIM 7.4 patch 1-1718, is there anything changed in between that affects this? Procedure: $ vim -u /dev/null some-file Then in vim ...
1
vote
0answers
31 views

Make part of php comment line bold in vim

I've a PHP script, and I would like to know if natively, I can make a part of a comment line BOLD. For example a comment : // it is released when you execute RELEASE_LOCK(), execute a new ...
1
vote
0answers
17 views

gvim flashing cursor at bottom of the window

I have experienced a similar problem as this question, except the cursor flashes at the bottom of the window when I move it, and I don't use vim-airline. (I made a video to illustrate what I mean.) I ...
1
vote
0answers
37 views

Vim insert mode changes the font defined in ~/.Xresources

Background I am running Arch Linux with the i3 WM. I am trying to customize the font in Xterm by editing ~/.Xresources as every online resource online has told me to. What i have done I add the ...
1
vote
0answers
16 views

How do you add Python syntax highlighting to a markdown file in vim?

For Vim how do I add Python syntax highlighting to markdown files? Context I'm creating a markdown document to show how to use a project. Fairly simple thing if __name__ == "__main__": ...
1
vote
0answers
140 views

How to setup in `~/.vimrc` a mapping for `colorscheme` to toggle `solarized` between `dark` and `light`?

How to setup in ~/.vimrc a mapping for colorscheme to toggle solarized between dark and light? Both background and colorscheme in ~/.vimrc are badly misbehaving! I have setup solarized to work on ...
1
vote
0answers
198 views

Sending F1 - F12 key with external keyboard with missing keys on an iPad Pro using SSH emulation software

I am using an iPad Pro with an external keyboard (Smart Keyboard) for connecting via SSH (via Serverauditor) to an Ubuntu remote server in which I have the tex distribution installed. I use VIM to ...
1
vote
0answers
75 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
18 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
154 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
67 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
135 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
173 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
76 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
388 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
553 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
78 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
52 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
141 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 terminal-...
1
vote
0answers
80 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
67 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
208 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 ...