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

1
vote
0answers
16 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: ...
0
votes
0answers
34 views

Prevent RSI with Emacs [on hold]

I'm trying to prevent myself from RSI. My problem is that I want to learn Emacs but the keybindings seem to drive to RSI issues. For know I won't change of keyboards so I'm looking for another ...
0
votes
0answers
4 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
0answers
5 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
23 views

Vim doesn't respect fileformat setting on windows share

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
23 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 ...
0
votes
0answers
19 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
7 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
23 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
9 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
11 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
17 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
0answers
16 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
45 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
48 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
39 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
41 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
39 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
20 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
41 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
28 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
23 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
10 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
11 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
26 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
27 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
23 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
35 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
142 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
43 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
50 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 ...
4
votes
1answer
105 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
52 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
787 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: ...
0
votes
1answer
42 views

Open file in vertical split in Vim / netrw

If I open vim with vim . netrw provides me with a nice list of the files and directories in the current directory. If I open a file using v the file opens in a very narrow split down the left hand ...
0
votes
0answers
14 views

Automatic documentation of dotfiles/config files configuration options

Has there been any work done on the front of automatic config file documentation? For example it is a good practice to add a comment line above/next to your config option, such as (source links at ...
1
vote
2answers
28 views

How to open VIM on Ubuntu (not from the command line)

I have a fresh install of Ubuntu with XFCE as the desktop environment. But there isn't a shortcut for Vim even though it is installed. It does work fine from from the command line by typing in ...
1
vote
2answers
32 views

Windows gVim edit file from Command Line

I have a Windows batch file that I use to edit files using Notepad++ @echo off if [%1] == [] ( C:\PROG\Notepad++Portable\Notepad++Portable.exe ) else ( ...
0
votes
0answers
24 views

Vim: Execute Goyo plugin when opening Markdown file

So far I've got this: autocmd Filetype markdown call SetUpMk() function SetUpMk() colorscheme pencil execute 'Goyo' endfunction But that doesn't work. No errors or nothing, it just does ...
0
votes
0answers
20 views

MacVIM not displaying tab/buffer line in Fullscreen mode on OSX Captain

I used :Fullscreen command to send the MacVIM to full-screen mode. (This is a function in "vim-shell" written by xolox, available on Github through the author.) Everything worked fine (I started Vim ...
0
votes
0answers
15 views

Pentadactyl - How do I use extended hints to open multiple links?

When using ;F to open multiple hints, the help file only mentions that the hints are delimited with (carriage return/enter). It looks as though I can filter by links containing a partial match. How ...
1
vote
2answers
68 views

How can I make MacVim as “Application” on Mac;

I would like to use Snap (free) to assign a shortcut for Vim on Mac (installed as macvim through brew on command line). However, Snap only works when the application is literally "found as an ...
1
vote
0answers
40 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 ...
0
votes
0answers
15 views

In vim, is it possible to turn my bibliographic keys into links?

I write in pandoc markdown, which uses bibligraphic keys from biblatex that look like @smith_foo_1999, where "Smith" is the author name, "Foo" is the title, and 1999 is the year of publication. This ...
0
votes
0answers
27 views

elementary OS + Bash + VIM tab completion broken

When I type :q and press Tab, I get this output: :q^I Instead, it should complete it to: :quit My ~/.vimrc: " An example for a vimrc file. " " Maintainer: Bram Moolenaar <Bram@vim.org> ...
1
vote
0answers
26 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
1answer
13 views

Make Vim open every file read-only

I wish to make Vim open every file in read-only mode. My use case is that I use Vim as both my editor and a gdb frontend via the Pyclewn plugin. I typically have one instance of Vim open for editing ...
0
votes
0answers
18 views

Play video by vimium

I'm on web page and this page has a video. For example I can press 'gi' shortcut to start typing in a text field. How to play a video by vimium's shortcut?
0
votes
1answer
20 views

How to activate registers in vim?

So far if I installed vim-gtk on Ubuntu I could use the system clipboard register out of the box. After typing ["] that very symbol would appear in the bottom right part of vim. ...
0
votes
2answers
45 views

Get rid of vim sidebar and top bar

I just installed Amix' Vimrc and can't figure out how to get rid of the top bar with the file name and the gray bar on the right side of the window any help is much appreciated.