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
12 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
0answers
11 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
16 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
17 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
28 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
38 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 ...
-1
votes
0answers
21 views

Enable 256 colors in VMWare terminal

As part of my work I am creating a lot of virtual machines and often powering them down and starting back up. Since I work in QA, I often need to reset the virtual server to default configurations to ...
4
votes
1answer
49 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
24 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 ...
2
votes
0answers
29 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 ...
0
votes
0answers
33 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
0answers
18 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
34 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
33 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"
-1
votes
0answers
58 views

What is the order of the colors in a terminator palette?

The order I enter the colors into the terminator palette effects which element has which color in vim. So how do I know the order in which I have to enter the colors into the terminator palette so I ...
0
votes
1answer
23 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
37 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
22 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
8 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
22 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
26 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
24 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
10 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
34 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
15 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
25 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
26 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
86 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
54 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
71 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
46 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
44 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
24 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
49 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 ...
0
votes
0answers
25 views

cVim in Chrome Browser OSX

What are the very first steps for using cVim after enabling it in the Chrome Browser? I would expect that after entering ESC and : a command bar opens, but nothing happens. What is the basic ...
0
votes
0answers
15 views

sublime text 3 vim cursor in command mode same as sublime text 2

In sublime text 2 in preferences, even though it is not mentioned, you can set caret_style to wide and when in command mode it will only underline the character that you are currently on. In sublime ...
0
votes
0answers
12 views

Composite shortcut for vimium

I want to make a composite shortcut in vimium, it should go to bottom and page up two times. It looks like this map w scrollToBottom scrollPageUp scrollPageUp But Vimium's 'Custom key mappings' ...
0
votes
0answers
29 views

Remap `<C-n>` to `<Down>` when `<C-x><C-o>`'ing

In Vim, when using the omnifunc for completion, it's possible to browse through the completion results with <Down> and <Up> without the "selected" result actually being inserted before the ...
0
votes
1answer
30 views

How to control vim message display time

Is there a way to control display time of messages in vim? For example, when searching in vim and hitting the bottom, it will display: search hit BOTTOM, continuing at TOP Even if after several ...
0
votes
0answers
26 views

cygwin: git commit - vim Editor always in line 5 but not on file edit

I am using cygwin on windows and git from the shell. VIM is configured as my default commit message editor. When I am editing my commit message, ie $ git commit my cursor always resides to line 5 ...
0
votes
0answers
53 views

Vim 7.4 with syntax on will always Caught deadly signal SEGV

With syntax on inside .vimrc (that's the only line in my .vimrc file), opening a file with any sort of syntax highlighting will cause Vim: Caught deadly signal SEGV Vim: Finished. Segmentation ...
3
votes
1answer
220 views

iTerm 2 ZSH colors/themes not showed correctly

I have a clean installed mac, running OS X 10.11.4. I have installed iTerm 2, and set it up to use oh-my-zsh. I'm trying to set up a theme for my iTerm. I am trying to use the avit theme. It's ...
2
votes
2answers
46 views

How can I permanently map the vim command :W to :w?

Sometimes in vim I am holding shift when I save, and wind up doing :W. How can I set my vimrc to recognize :W as :w?
1
vote
1answer
54 views

How can I make a searchable shortcuts cheat sheet?

So, just like most people it happens that my memory for shortcuts and commands is kind of bad until it gets into muscle memory, but since it is just painful to have a fancy configuration in vim + tmux ...
6
votes
2answers
133 views

Vim Syntastic not jumping to the error

I'm using ESLint with Syntastic in Vim. Errors are found correctly in Syntastic, but when I navigate to the error in the Error Location Panel, and hit Enter, it drops me off in the same position I was ...
2
votes
1answer
56 views

How To find a word and replace with changing pattern

I have a text like the following: case "UID": if (!Convert.IsDBNull(objDataReader["XYZ"])) { objQualitativeAssessmentBiz.XYZ = objDataReader["XYZ"].ToString(); } break; case "GeneratedChaseId": ...
3
votes
2answers
1k views

Using sed within a vi buffer

In a long text file listing dups-23Mar16.listing I want to delete lines beginning, for example, with .local. Here are some lines in this file: Desktop/Reisen/Italien/VillaLaBandita/images-hpz-urlaub/...