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
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
33 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
35 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
28 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
24 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
17 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
83 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
51 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
30 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
19 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
50 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
41 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
26 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
38 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
36 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
152 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
32 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
45 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
16 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
17 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
54 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
38 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
57 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
33 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
24 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
32 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 ...
0
votes
2answers
23 views

Wordwrapping existing text

I've been googling around and discovered that I can word wrap in vim by first :set wrap linebreak nolist, then set tw=80. Text I now type will be word-wrapped. If I want to word-wrap the text already ...
1
vote
0answers
37 views

Vim insert mode changes the font defined in ~/.Xresources

Background I am running Arch Linux with the i3 WM. I am trying to customize the font in Xterm by editing ~/.Xresources as every online resource online has told me to. What i have done I add the ...
0
votes
0answers
15 views

How to set the default filetype when editing a text field in gVim with Pentadactyl?

When editing a text field in Pentadactyl (or Vimperator) pressing C-i will copy its contents to a temporary file, which is then opened in an external editor (that defaults to gVim). Since this file ...
0
votes
2answers
35 views

Why does Vim break lines when editing Windows files?

On Windows 8, I want to edit with Vim (v7.4), files that were originally created with Windows Notepad. However, when I begin to write, Vim/gVim spontaneously breaks lines into smaller ones by ...
0
votes
1answer
40 views

How to make vim syntax highlight quoted text in .tex file?

In emacs, the text quoted between `` and '' are highlighted as green. It comes in handy sometimes. I believe should be possible to also do it in latex. But I don't know how. I checked the tex.vim in $...
-1
votes
1answer
136 views

Vim E488 trailing characters but I don't see any trailing characters in file

Im opening the vimrc file with the following command vim ~/.bash_profile. Here's the error message and also the vim file contents. I actually get this error when ever I open any file with VIM. Error ...
0
votes
1answer
30 views

Null key mappings in console vim on OS X

Running in zsh on Mac OS X's Terminal.app. The following 2 keybindings do work in MacVim, but not console vim (7.4) inoremap <c-space> <c-x><c-o> inoremap <c-@> <c-space&...
0
votes
0answers
15 views

Vim hilight group for selected text in status bar

For example, if I type :cd ..\ then press TAB, the StatusLine will display my completion options. What vim highlight group does the currently-selected completion option fall under? Bonus: In C/C++, ...
2
votes
0answers
68 views

Can't import python module in .vimrc

So, I decided to try out powerline in vim, and for that reason I installed pypy using brew. I installed macvim as well and it is compiled with python support. Following powerline installation ...
1
vote
2answers
31 views

Import previous commands to edited command

I'm playing with zsh to change image modification time according to the 'Date/Time Original' exif attribute. For this I one command I do: PDATE=$(exiftool -p '$DateTimeOriginal' $PIC | sed 's/[: ]//...
11
votes
1answer
330 views

vimperator: Using external editor (e.g., vim) to edit Stack Overflow text

Utilities like vimperator allow editing content of HTML form fields in an external editor. With vimperator there is shortcut Ctrl+I which, when in an edit box, opens the text in an external editor. ...
1
vote
0answers
16 views

How do you add Python syntax highlighting to a markdown file in vim?

For Vim how do I add Python syntax highlighting to markdown files? Context I'm creating a markdown document to show how to use a project. Fairly simple thing if __name__ == "__main__": ...
0
votes
0answers
20 views

Better way to unexclude single folder in .gitignore

I have several files in my home directory under version control. My .gitignore looks like this: #gitignore * !.vimrc !*/ !.vim/* !.gitignore !.xinitrc !.bashrc to include .vim/* I had to include *...
1
vote
1answer
26 views

How can I unconditionally open any fold present, without errors, when invoking from the command-line?

So, this is similar to ‘execute command with range silently’; but that's in a mapping, and so the solution isn't applicable to what I'm trying to do. I'm using the Skim PDF-viewer with LaTeX Sync, ...