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

0
votes
1answer
16 views

Vim plugin manual installation guide

I recently installed my very first linux distro (arch linux) and at the moment I'm trying to set up Vim plugins. I'm a total noob and I can't manage to find a step by step detailed guide on how to ...
0
votes
2answers
22 views

How do I reverse the order of log entries in this file? (Vim for preference)

I've got a set of files that contain notes written in reverse order: ###### 27/07/2016-15:04:20 GMT+1: Really? More? ###### 27/07/2016-15:04:18 GMT+1: It happened again! ###### 27/07/2016-15:04:...
0
votes
1answer
11 views

Can a vim mapping trigger an Autohotkey macro?

I would like to trigger an Autohotkey macro using a vim mapping, is this possible? For example, to create a normal mode vim mapping in vim to enter CTRL-J, then use that to trigger Autohotkey. In ...
0
votes
0answers
6 views

autocmd behaviour not as expected

I'm trying to set hlsearch on by default when I enter a buffer in vim. Running :set hls manually upon entering a buffer performs the action I expect. However, when I add autocmd BufEnter * set hls to ...
2
votes
0answers
16 views

Apply window commands to a subset of all windows?

Suppose I wanted to move the top two windows (A and B) to a new column, like so: +--------+ A +--------+ B +--------+ C +--------+ D +--------+ E +--------+ F +--------+ +---+---+ |A |C | ...
0
votes
0answers
22 views

How can I open a new empty tmux pane when I am working in Vim?

Let's say I am working on an .html (or any text-based) file in vim. Next, I need to open a new pane in the same window to work on the terminal. How can I achieve that? I know how to use tmux to open ...
0
votes
1answer
21 views

vimrc set tabstop overridden by pathogen

Here is my vimrc configuration: set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab execute pathogen#infect() syntax on filetype plugin indent on colorscheme spacegray The pathogen plugin ...
0
votes
0answers
7 views

Vim: Error message on sourcing, but not on start up

I'm pretty new to Vim/gVim and am probably doing something wrong. What I want to do is completely reload my configuration (like a restart), but while gVim is running (keep the current session). Here ...
0
votes
0answers
22 views

Make Shift+Insert work in Insert Mode with “set paste” active

I have a Windows client with gvim for Windows 7.4. I want Shift+Insert to work as "Paste", so I added the following settings to ~/_vimrc: nnoremap <S-Insert> "+gP inoremap <S-Insert> <...
0
votes
1answer
7 views

How do I set {argslist} programmatically in vim?

I know I can set the list of files like this: :args file1.txt file2.txt file3.txt I would like to set args based on a command. I also know, if I used a fresh vim, I could do this: vim $(some-...
1
vote
1answer
22 views

Vim: How can I remap a key, but only when I combined it with a number?

I want to center the view after I move up/down multiple lines (e.g. 7j), but not when I only move once (e.g. j but I don't care about 1j). Here's what I have: :noremap j jzz How can I make this ...
0
votes
0answers
33 views

Midnight Commander VS Vim

A couple of months ago I started to learn how to use Vim (specifically, it's Vim 7.3 on Linux). Needless to say, I realized it's a powerful tool, and I seem to learn something new everyday with it. ...
0
votes
1answer
27 views

Vim isn't recognizing my vimrc file

I'm attempting to copy over my local vimrc configuration to a new linux server I've just set up: scp -rp .vim/ nagios:~ scp .vimrc nagios:~ Then, with ls -hoal on the remote machine in my ~ ...
0
votes
0answers
31 views

How to install gvim.exe on Windows with Python support? (Solved by the author for this post)

Problem description: For all the executable installers for Vim that are listed below, the tags +python/dyn and +python3/dyn are unanimous when installed. However, for all my local installations using ...
4
votes
1answer
230 views

brew upgrade broke Vim on OS X (dyld: Library not loaded)

I've not run brew update && brew upgrade for a long time. I just did a massive upgrade which turned out to broke my Vim. This is what I got after running vim: dyld: Library not loaded: /...
1
vote
1answer
17 views

Vim - Is there a way to 'overlap' pages? (Getting visually lost when switching pages with Ctrl+f/b)

When I press Ctrl-f or Ctrl-b, it takes a few seconds for me to read some text to figure out where I am in the file. Is there some way I can make myself not get lost so easily? For example, is it ...
0
votes
1answer
29 views

Syntastic not working on Ubuntu

I hate to post an "I can't work syntastic" question, but this has me stumped. Standard dotfiles setup - same config on OSX, Debian & now Ubuntu. Syntastic is not showing any errors in a broken ...
0
votes
2answers
26 views

VIM: How to set default color on search based syntax highlighting

Currently my /etc/vimrc file is set to the following: ( if &t_Co > 2 || has("gui_running") syntax on set hlsearch endif filetype plugin on if &term=="xterm" set t_Co=8 set t_Sb=^[[4%...
-1
votes
0answers
19 views

ctrlp does not search any more in wild mode

I updated ctrlp today, and it does not search any more. For example, I have a list like this after I press ctrl+p > a/b/c/d.js > a/b/c/e.js > a/b/c/f.js then i entered af, it gave me ...
0
votes
1answer
32 views

VIM save-execute-reload file

While I am editing a file I occasionally want to save it, execute a command that may modify the file, then reload it. I.e. First :w, then :!something %, and later :e Can I somehow automate this so I ...
0
votes
0answers
61 views

Why does vim-common conflict with vim-minimal on fedora23 and centos?

I generally need both vim-common and vim-minimal to have a usable system. I need vim-minimal because package sudo unconditionally depends on it (and I need sudo). vim-common in turn is a dependency of ...
5
votes
1answer
54 views

Why does sudo depend on vi?

the package sudo-1.8.15-2.fc23.x86_64 in fedora 23 depends on vi, as attested by: $ rpm -qR sudo | grep vi /usr/bin/vi Why? Is it a mistake on the side of the package maintainer? This dependency ...
0
votes
1answer
28 views

vim how to unmap [[

The :map [ shows following n [[ *@m':call search('^\s*fu\%[nction]\>', "bW")<CR> n [c <Plug>GitGutterPrevHunk n [ * :w<CR> :unmap [c ...
3
votes
1answer
61 views
+50

Print (decrypt) a vim encrypted file

I use the -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 ...
0
votes
0answers
36 views

Mac command button working in the MacVim GUI but not when I run MacVim in the terminal?

I am running MacVim in my terminal (iTerm2) using alias vim='mvim -v' (mentioned in this thread: http://stackoverflow.com/questions/2056137/how-to-run-mvim-macvim-from-terminal). In my ~/.vimrc file ...
0
votes
1answer
28 views

VIM syntax highlighting works in MacVim but not vi in terminal?

When I edit a file with mvim (Installed via MacVim) I see syntax highlighting in colour on a large range of files. However, when I edit with the built in vi there is never syntax highlighting. Is ...
0
votes
2answers
35 views

Keybinding to make End go one character past the last character on the line

By default the End key takes me to the last character on the line in Vim. However, I have set virtualedit=onemore in my vimrc, and I actually want End to take me one character past the last character. ...
2
votes
1answer
34 views

In vim, is there a way to delete all current line except the given text object?

For example, if I have this line printf("something\n"); // any comment Doing da" gives me : printf(); // any comment But I what I would like : "something\n"
0
votes
1answer
29 views

Vim: unexpected behavior of c-n in insert mode

When I press Ctrln in insert mode to insert the next matching word, my cursor jumps to the next blank line instead. This happens only to a .markdown file as far as I can tell. I didn't map c-n to ...
1
vote
1answer
40 views

Delete a buffer and all traces of it in vim

Is there vim command (or plugin) to delete a buffer and all traces of that buffer? Including, for example, .swp files, undo files, backup files, and so on?
1
vote
0answers
24 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/...
0
votes
0answers
10 views

neovim not schemecolor on tmux multiplexor

I dont know why I dont have schemecolor when I use tmux on my neovim, here something of data of my console: gnome-terminal tmux 1.9 neovim this look so: I try a lot of this possible solutions but ...
0
votes
1answer
32 views

Is it possible to have vim use different colors than the iTerm profile?

My vim currently uses the colors defined by my current iTerm profile. Is it possible to have vim use a separate set of defined colors? This way I could have one look for my terminal and a different ...
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 ...
3
votes
1answer
29 views

Not able to set up key maps involving <Tab> in Vim in a terminal

I'm a Vim noob who liked the instructions in this wiki to set up key mapping for quickly cycling through several files. The only problem: I can't get it to work! My ~/.vimrc contains these lines (...
1
vote
0answers
28 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?
0
votes
0answers
11 views

Is it possible to prioritize file order in vim's CtrlP?

I have a django project "myproject", and when I launch ctrlp to open "myproject/users/models.py", the first suggestion is "test/users/models.py". Is it possible to configure CtrlP so that it would ...
1
vote
1answer
41 views

vim seems not loading .vimrc on OSX sometimes

In .vimrc there is a line set expandtab, but sometimes this doesn't work. The problem is When I press tab key a new tab is inserted and it is not expanded to space. I can see the 'tab' is there with ...
0
votes
0answers
13 views

Vim solarized seems to mixup color

My vim: This is how my looks, look at the change in color from line 38 onwards. Any solution for this?
0
votes
0answers
18 views

MINGW64 (downloaded from www.git-scm.com) - How can I set it to use my system version of vim, rather than the build in version?

I'm trying to set up vim as a GO IDE. I also use the version of MINGW64 that git ships with as my terminal. Everything works as expected. I can run gvim from the terminal no problem, but when I try ...
0
votes
1answer
35 views

Vim python code formatting

I'm using the plugin auto-pairs to help auto close brackets. In vim when defining dicts or lists it'll auto formatting like this | is the cursor position a_dict = { | # the indent is 8 ...
0
votes
1answer
28 views

Prevent Vim from selecting less than 2 characters?

I use Vim more and more, and I installed the plugin ideaVim in my IDE from JetBrains (pyCharm, phpStorm). I still use the mouse a lot to navigate and select text, and sometimes when I click in the ...
1
vote
0answers
118 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 ...
0
votes
3answers
58 views

How can I remove the dependency of having a `vimfiles` folder in windows?

On linux I can put my colors/syntax/bundle folder right into .vim which doesnt seem to work on windows, it forces me to put them into a subdirectory called vimfiles. Ill try to visualize what I want ...
0
votes
0answers
116 views

YouCompleteMe Error: Tern server is not running(crashed)

I updated YCM few days ago then I found js completion is missing. I've recompiled it by ./install.py --tern-completer, and YcmDebugInfo command shows Tern server is not running(crashed). This is ...
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 ...
0
votes
0answers
46 views

vim comment issue with GNU screen and solarized

I just installed solarized. I am using the Xresources and vim color file. All works fine when not inside GNU screen. When running vim from inside GNU screen, the comments look different - they are not ...
0
votes
0answers
33 views

OSX - Remapping Capslock without admin privileges

What I really want is to use Capslock as a escape key inside Vim (which is being run inside iTerm2). The solution I'm looking for could, for instance, remap Capslock not necessarily to Esc but to ...
0
votes
0answers
58 views

change the font style only for attributes in MacVim

I have the font called Operator Mono Light and I am using it in Macvim. My question is in Vim, can I get the font changed to the italic version of Operator Mono ONLY for attributes like in this ...
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 ...