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

4
votes
0answers
98 views

Tmux copy mode: stay in copy mode after selection

When using tmux, I often find a need to copy multiple items from one pane or window into another. When those items are located close to each other in a long scrollback buffer, my current workflow ...
3
votes
0answers
750 views

Is there a Vim 7.3 or 7.4 package available somewhere for CentOS 6.5

I'm running CentOS 6.5 and the only Vim packages available from yum are for Vim 7.2, even though Vim 7.4 is now out. A lot of the Vim plugins I typically use are only compatible with Vim 7.3 and ...
3
votes
0answers
645 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 ...
3
votes
0answers
115 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 ...
2
votes
0answers
69 views

Autoformat for Perl in Vim

I got a piece of code about perl: if ($a==1){ &err_report("$a"); while($b!=1){ &err_ok(); } } And, I want to format it in vim. After using command: gg=G, the code ...
2
votes
0answers
108 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
312 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
174 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 ...
2
votes
0answers
162 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
100 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
123 views

How can I tell what command is running on the remote end of an ssh connection?

Tl;dr - how do I find the name of the command (eg $BASH_COMMAND) running on the remote end of an ssh connection? ... My example setup is two tmux vertical panes, LH pane runs a local vim session ...
2
votes
0answers
88 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
61 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
172 views

How to disable alternate buffer in GNU screen itself but not for vim, less inside it?

What I would like to accomplish is mouse wheel scrolling behavior that I'm used to in a regular ssh session. In bash prompt mouse wheel should scroll my terminal output, and inside less/vim - the ...
2
votes
0answers
124 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
277 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
64 views

NERDTree: open file in current window?

When I open a file in a NERDTree buffer that was created by opening a directory, when I press <CR>, it opens the selected file in the current window unless the file is open in another window, in ...
1
vote
0answers
50 views

Full Keyboard Navigation PDF Reader With Highlight Function on Windows

After being addicted to VIM, I feel I hate to move my hand out the keyboard to reach the mouse. I'm currently using Acrobat, sometimes I want to highlight some text. I have to select the highlight ...
1
vote
0answers
45 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
40 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
103 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
402 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
256 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
83 views

“Part of menu-item path is not sub-menu” error in vim config

I recently started getting this error when I opened vim, and I have no idea why. Error detected while processing /usr/share/vim/vim73/menu.vim: line 352: E327: Part of menu-item path is not ...
1
vote
0answers
86 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
38 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
76 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
222 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
65 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
557 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 ...
1
vote
0answers
398 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
225 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
56 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
214 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
111 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
178 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?
1
vote
0answers
679 views

Encoding over SSH Issues

I have a Linux machine and a Windows machine, both using Vim with the Powerline plugin. They both work great with patched fonts. Next, I want to SSH onto an OSX 10.6 machine and also use the Powerline ...
1
vote
0answers
453 views

bash vi key bindings: Can I map keys? Display mode (insert vs command)?

I am a long time vi(m) user and recently made the switch to using vi key binding in bash. I can already tell that this will be an improvement, but I would like to customize a few things to really ...
1
vote
0answers
68 views

Vim creates strange output when navigating up or down in Amazon EC2 Ubuntu

When navigating up or down in Vim whilst ssh-ed into an Amazon EC2 Ubuntu instance, strange output appears at the bottom of the screen. -I think the right-most info (e.g. 2,0-) is indicating cursor ...
1
vote
0answers
147 views

MacVim does not open new windows

This happened right after I removed some folders on my system ruby, the more I have reinstalled the xcode. But even so, it opens new windows, only the icon appears and the toolbar of the software. I ...
1
vote
0answers
552 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 ...
1
vote
0answers
128 views

Vim syntax files - Ignore line prefix

I have files containing code within a prefix-based structure, such as: perl: sub abc { perl: return "def"; perl: } I'd like to be able to highlight the perl as normal. i.e. ignore the perl: ...
1
vote
0answers
94 views

GNU screen session dies when I open vim or vi

Sometimes it dies in the moment a file is opened. Sometimes it allows me to browse the same file and dies on tenth PageDown, for example. I set "term xterm" in .screenrc.
1
vote
0answers
321 views

Is anyone using pysmell for vim with luck?

I'm trying to get pysmell (https://github.com/orestis/pysmell) to work - looks like a nice code completion tool for django development in vim. I'm on Mac OS X 1.7.1 (Lion) with MacVim 7.3 (snapshot ...
1
vote
0answers
595 views

vim does not preserve symlink over sshfs

I'm having some trouble with symlinks and sshfs. I use the '-o follow_symlinks' option to follow symlinks on the server side, but whenever I edit a symlinked file on the client side with vim, a copy ...
1
vote
0answers
390 views

Vim mapping acts different when switching between Mac OS X/Linux

I've been working with Vim on two different machines, one running Ubuntu 10.04 (gVim) and the other Snow Leopard (MacVim). I copied my .vimrc file and .vim folder to both, and noticed a few minor ...
0
votes
0answers
7 views

Latex: customising syntax highlighting in vim

I made some custom commands to make writing equation blocks easier: % Equation starters \newcommand{\eqn}[1]{\begin{equation} #1 \end{equation}} \newcommand{\eqns}[1]{\begin{equation*} #1 ...
0
votes
0answers
28 views

Forward slash got mapped to Oo in vim

I dont know how but forward slash is mapped to Oo(behavior similar to Shift-o o in normal mode) in vim hence I cannot search. I tried to start vim with --noplugin but the problem still persists. The ...
0
votes
0answers
36 views

How to prevent terminal bell from going off when exiting vim from within a nested screen session

My vimrc file contains the following lines to set the window title start and end strings respectively. When I enter a vim session and my konsole terminal is either outside of screen or within a ...
0
votes
0answers
27 views

in vim, making files added to quickfix menu with cexpr command navigable

I'd like to be able to show all of the files from a Git commit in a vim quickfix menu. I can do this with this command: :cexpr system('git diff-tree --no-commit-id --name-only -r a44fcf896') (The ...