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
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
16 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
35 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
32 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
63 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
288 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
52 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
55 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
148 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
58 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/...
0
votes
1answer
86 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
15 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
36 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 "vim."...
1
vote
2answers
42 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 ( C:\PROG\Notepad++Portable\Notepad++...
0
votes
0answers
31 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
35 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
21 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
96 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 ...
2
votes
0answers
67 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
16 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
33 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
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
1answer
14 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
20 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
22 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. http://askubuntu.com/...
0
votes
2answers
58 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.
1
vote
1answer
43 views

how can I set relative line numbers upon entering nerdtree on vim?

I'm trying this snippet, but nothing happens. The nerdtree buffer still has no line numbering whatsoever. autocmd BufEnter nerd* set rnu
0
votes
0answers
27 views

Vim syntax highlighting for template formats?

A lot of the time I use jinja2 or erb templates for things other than HTML (for example, pretty much every configuration management / automation tool in existence uses templating to make working with ...
0
votes
1answer
44 views

linux terminal remove colours and syntax highlighting

My question: How do I use terminal with white text on a black background that doesn't use bold, italics, underscores? Info: I'm currently setting up my linux terminal (ubuntu, bash). I found ...
0
votes
2answers
39 views

Create a binding to save with `shift S S` in vim

Recently someone recommended I save in vim using shift Z Z. This is working great for me! How can I create a shortcut so that shift S S maps to :w?
5
votes
1answer
164 views

OS X copy paste into Terminal adds fdbf bfb9 b083 to beginning and end of selection

For the life of me, I can't figure this out. When using a browser (doesnt matter which), if I select text, then paste in Vim or Neovim or Nano, I see characters added to the beginning and end of my ...
0
votes
1answer
35 views

Copy/Paste in gvim broken after creating personal vimrc

I'm using gvim on win 7. If I use the default installation copy/paste with Ctrl+c/Ctrl+v works fine. As soon I create a personal _vimrc file in my home folder I have to use the menu to paste something ...
0
votes
2answers
50 views

is it possible to display vim spellcheck options in the quick fix window?

I am currently midway through a simple vim spell check plugin. i have had difficulty finding help on how i can display the options for corrections in the quick fix window. Is it possible vim ...
0
votes
0answers
27 views

How do i identify visual-block-mode and visual block-insert-mode

I am trying to identify Visual Block Mode, and visual block insert, for a highlight group. I have shown two working examples of a match but i'm struggling to find v_b and v_b_i modes to match against? ...
0
votes
1answer
23 views

How to get vim p command to copy from the x session clipboard too?

Hi I'm trying to paste into vim something I copied in my firefox web browser but unfortunately I have to enter insert mode and use ctrl-v, is there a way to get vim to use the global clipboard when I ...
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 ...
0
votes
1answer
20 views

How to swap the numbers row on azerty keyboards in vim only while being in normal mode?

Hi I'm learning Vim and it looks like the shortcuts have been designed for qwerty keyboards. In normal mode you often need to type number motion to get around. How would one do to configure vim so it ...
0
votes
0answers
22 views

vim regex pattern freezes search?

I need this pattern to find any () and anything inside, whether it be one word or a paragraph over multiple lines. but when the pattern hits the bottom if freezes? I have never encountered this before,...
3
votes
1answer
61 views

Why is GNU screen interfering with Vim's Ctrl-Pageup to switch tabs?

I normally use Ctrl+PageUp and Ctrl+PageDown to switch tabs in Vim. But when running Vim inside GNU screen, they don't switch tabs and instead have the effect of switching case. I am running the ...
0
votes
1answer
17 views

Can I set Vim to not maintain a .swp file when there are no unsaved edits?

I run Vim inside a screen session. When that session terminates, it kills processes running inside it, causing Vim to leave behind .swp files. This is a good thing if the .swp files contain ...
0
votes
0answers
16 views

vim writing prose, looping through indented lines

I am trying to extend vim to write prose, this is a small function i can call to centre and capitalise titles, finishing by moving down two lines ready for dialogue or center dialogue and move to the ...
1
vote
1answer
43 views

Multiline Search and Replace in Linux

Tried this with vim, but open to other ideas/suggestions. Would like to perform a search and replace in a file with 12000 lines. Specifically, if an occurrence of "^ SetFontSize 28" exists ...
0
votes
1answer
61 views

Match a single word only, on a line, using regex pattern

I am trying to write a very simple function that would match a single word at the start of a line, for writing prose. It would then center and move down a line +1. But I've having problems with the ...
0
votes
0answers
34 views

php end tag in strings breaks vim syntax highlighting

I have the following line a long PHP file: preg_match_all("/<.*?>/", $rows[2],$tmp); and after the ?> in this line the syntax highlighting in vim is gone for the rest of the file. How can I ...
0
votes
1answer
18 views

Multi display: how to restore last gVim display?

I have 2 displays. I start gVim. It window always opens on display 1. I move it to dislpay 2 then close it. After this I start gVim again. It opens on display 1 again but I want it to open on display ...
0
votes
1answer
25 views

problems with vim re-evaluating augroup

Vim7.4, mac. This is a small function to set some settings, based on file type to write prose. If i start by opening for example my vimrc everything is fine, this works as expected, but if from my ...
0
votes
0answers
39 views

Systemwide vim mode for OSX

Is there a systemwide vim mode for OSX? If you are familiar with IdeaVim plugin for JetBrains you can relate to how I feel. Such a system wide vim mode will should make all the text box cursor ...