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
7 views

Can I make Vim's fold indicators visually subtler?

Fold indicators in vim are prominent because they take up the entire window width: void foo() { +--- 10 lines: int x;----------------------------------------------------------- } which makes ...
0
votes
1answer
9 views

Strange Vim/terminal use from ssh via Mac OSX

I am using terminal from a Mac OSX (Yosemite) and ssh'ing into a fedora machine and am having a couple strange issues with the terminal: (1) When I :q from vim, the contents of the vim screen is ...
2
votes
1answer
15 views

Check if vim is compiled with +X11 in .vimrc

I have two copies of vim installed. One is installed with macvim and necessarily configured with -X11 (to work with Cocoa), while the other is configured to +X11 (used in terminal, to work with a ...
0
votes
1answer
19 views

How to autocomplete python class in vim

In sublime text 3, if I'm editing a file.py and I type class it will automatically create this for me class ClassName(object): """docstring for ClassName""" def __init__(self, arg): ...
0
votes
0answers
11 views

Is it possible to restart the internal python in Vim?

I'm running custom python code in my vimrc and If I often find myself in the position where I'm editing modules used by the vimrc, which causes script failures until I restart vim and its internal ...
0
votes
1answer
10 views

vim find buffer by absolute path

How can I find a buffer in vimscript when I have an absolute path, and as you know vim buffer names can be relative path? Is there a function for that?
9
votes
3answers
726 views

Why does the system have /etc/sudoers.d? How should I edit it?

Last time, I asked about the risk of these (in /etc/sudoers): user_name ALL=(ALL) /usr/bin/vim /etc/httpd/confs/httpd.conf %group_name ALL=(ALL) /usr/bin/vim /etc/httpd/confs/httpd.conf ...
1
vote
2answers
23 views

Open the output of a shell command in a split pane

I'm quite new to vim, so sorry, if the question is stupid. Consider any interpreted programming language. I can run the currently opened script using ! interpreter %, and use the return key to ...
1
vote
1answer
21 views

MacVim / Vim retain content of all buffers (like Sublime Text). Preserve swap?

TL;DR: Can Vim store its swap files, and loads the same set of swap files and buffers on load every time? I'm on a Mac (OS: Maverick), where a number of application keeps the data in some sort of ...
0
votes
1answer
35 views

How to permanently correct syntax highlighting after “?>”?

In Vim, I have a PHP script that contains a line similar to the following: $return = "<?xml attributes=\"values\" ?>"; Normally, the ?> characters will close an opening <?php tag, ...
0
votes
0answers
16 views

Can vim/gvim show “self” when editing a Ruby file?

When editing Ruby files in gvim, I'd like to be able to see which Ruby context the cursor is in. For example, if I have a file with several nested modules and classes, I want to be able to see what ...
0
votes
1answer
26 views

Confusing end of line characters in Vim

How to view in Vim if there is any end of line character at the end of the file? If file content is '1234' as by echo -n 1234 > file.txt Vim shows (with :set list option) '1234$'. If file content ...
0
votes
1answer
16 views

Case insensitive search with accents

How can I tell Vim to search for a certain pattern in a case insensitive way taking into account also characters with accents? For example I would like to have /ü match both the capital U in Über and ...
0
votes
1answer
20 views

Vim colorscheme not displaying properly

I realize that questions about Vim colorschemes have been asked quite frequently, but I believe I've tried the advice in all of them and I can't quite seem to get my colorschemes to work. That being ...
0
votes
1answer
32 views

Vim: Managing multiple wording alternatives

(After reading this, please suggest another wording for the question, because I couldn't come up with a better one) When writing and editing in Vim, whether texts for humans or texts for humans and ...
0
votes
2answers
44 views

Turn off vim's `filetype indent` for a specific filetype

In my .vimrc I have filetype indent on Now, the way it attempts to auto-indent yaml files is very confusing for me, so I want to turn filetype indent off, but only for yaml files, not for other ...
0
votes
1answer
54 views

The risk of vim -Z (rvim)

Last time I asked about the way to prevent risks caused by these configurations: user_name ALL=(ALL) /usr/bin/vim /etc/httpd/confs/httpd.conf or %group_name ALL=(ALL) /usr/bin/vim ...
0
votes
0answers
12 views

Why doesn't Ctrl+[ (control + left bracket) work in GVim on Windows 8?

I'm on a macbook pro with a bootcamp partition running Windows 8.1. This problem also occurs on my PC with Windows 8.1 as well. In GVim, pressing Ctrl + [ should be equivalent to Esc but it does not ...
-3
votes
1answer
38 views

Set nano as a default editor over Vim [duplicate]

Every time I login to ssh terminal to edit files I execute the command export EDITOR=nano How Could I set nano as default editor so I shouldn't execute this command anymore
0
votes
1answer
16 views

Scrolling through results of vim's silversearcher plug in

When I use :Ag "pattern" Let's say it finds 5 results and to scroll through them I use "cn" but it opens each one I scroll through in the buffer. Is there a way to open just the one I scroll to and ...
0
votes
0answers
17 views

Bind Unite to <C-p> in vim

I love vim, and I personally think that CtrlP's trick of binding to <C-p> only when I'm not using it to yank-pop is awesome. Is there any way I can do this my self with Unite? Specifically: ...
0
votes
0answers
22 views

tmux printing u'0x001b' and “]112” randomly

So I've lived with this problem for several weeks now, hoping that if I just let it happen enough, I would figure out the underlying trigger. No luck. tmux in bash in gnome-terminal in XMonad on ...
0
votes
1answer
24 views

How can i insert a tab after choosing a proposed completion in vim

I thought I knew the answer to this. I used to do <C-V> tab as suggested in "How to insert a real tab with Vim SuperTab plugin if completion fails" and many others. If i set list though, I can ...
2
votes
3answers
42 views

Vim copy/paste messing up indentaton

Whenever I copy something from another application and then go to paste it into vim, it messes up the indentation. For example, just now I tried to copy the manifest.json file from the hello-world ...
0
votes
2answers
36 views

How to run a grep in vim asynchronously?

I am using Vim in my development. Also using :vimgrep to search for text in files within Vim. But while vimgrep is searching, I can't do anything inside Vim until it finishes. A long time ago, I saw ...
3
votes
0answers
56 views

How to prevent security flows caused by sudo vim? [closed]

I learned doing sudo vim causes security problems. For example, user_name ALL=(ALL) /usr/bin/vim /etc/httpd/confs/httpd.conf or %group_name ALL=(ALL) /usr/bin/vim ...
1
vote
0answers
25 views

Console window needs to be resized before launching VIM in SSH session [closed]

So I installed git-scm and am using the bundled cygwin ssh (as far as I can tell) program that comes with it. The maximum height of my VIM window is limited to the height of my console window PRIOR to ...
0
votes
2answers
29 views

vim. ensure each buffer is mapped to 1 tab and always showing

So I want vim to behave like a "standard" text editor where whatever buffers are open will always map to a tab, and that tab only shows 1 buffer only. This is like say sublime text, where any open ...
0
votes
0answers
20 views

Theme problems with vim and terminal

everyone. Trying to figure out a weird problem I'm having with VIM, that's probably just me being a complete novice with the program. I started using it today, and was told to use Vundle to manage ...
1
vote
1answer
53 views

ConEmu: Open files in vim with ConEmu through File Explorer

Is it possible to open files by double clicking an associated file extension or through context menu with vim in a ConEmu tab?
-1
votes
1answer
36 views

VIM Vex select file to current split

When you use :Vex /dir It shows all the files. How do I open the file in the vertical split thats open for me? The answers here all assume vim is closed or demonstrate how to open the split view ...
0
votes
1answer
36 views

Vim quicklist entities at line containing tabs

I make a quick list in vim in my python plugin. It fails to position cursor in a proper place when there is tabs in a line in a very unpredictable way. For example, there is a line like this in a ...
1
vote
1answer
35 views

Vim visual mode search and replace

When you run a search and replace on visual-line selected text, it shows this :'<,'>s/foo/bar Is it possible to get it to show line numbers instead of <>?
2
votes
2answers
85 views

What does @ mean at the end of filenames in auto complete in OS X?

I had yadr installed on my laptop, and I decided to get rid of it by running rm -rf ~/.yadr as instructed by its author. However after I did that weirdness commenced: If I try to edit my vimrc and ...
0
votes
1answer
46 views

Unknown option argument: “--multiprocessing-fork”

I have an error on Windows vim version 7.4.417 (no problems on Linux): Unknown option argument: "--multiprocessing-fork" . It is related to using python multiprocessing. How can I fix that?
1
vote
0answers
49 views

How to use ctags and vim to jump to java methods

This used to work before I upgraded my Ubuntu system: ctags *.java vim -t fooFunc Which would then take me to e.g. Foo.fooFunc() But now, vim goes to the standard "tag not found" page. I now have ...
1
vote
1answer
29 views

How to change until the next character (vim), (with the next character can be a set of many)

With VIM you can change until an underscore for eg: ct_ But is there a way to select multiple characters? Say for example you may want to change until the first underscore or dash -. Is it possible ...
0
votes
1answer
31 views

OmniCppComplete vim plugin and SSD on Ubuntu

I want to develop some GTK+ stuff in C and I was in need of using some plugin for completions. I have personal reasons why I don't want to use YouCompleteMe plugin. I configured OmniCppComplete ...
0
votes
0answers
25 views

Colorschemes in vim using mac

I've trying for a while to implement the colors in vim and they does not appear. I have saved various colorschemes in the vim/colors folder and all that seem to be fine. Also, when I load the color ...
0
votes
1answer
63 views

In Vim, netrw mistakenly thinks file.py is a directory

Using netrw in Vim, I navigate to a Python script I want to edit (file.py), but most of the time it is listed as "file.py/" with a slash, indicating it is a directory. This is impossible to open. If I ...
0
votes
1answer
16 views

VIM Sendscreen and behind the scenes buffer

I'm currently using vim via cygwin in conjunction with screen and screen-vim. Screen-vim has SendScreen which takes the entire current buffer and sends it to the attached screen. While this is nice, ...
0
votes
1answer
21 views

Vim from terminal can locate package, GVim cannot

So I've been installing Syntastic and JSHint for some Vim JavaScript syntax checking. which jshint returns /home/myUser/local/bin/jshint which vim and which gvim return /usr/bin/vim and ...
0
votes
1answer
25 views

Is it possible to differentiate between a scratch buffer and a new [no name] buffer?

I would like to know if there is a command I can run in vim to tell whether a particular window that has focus is actually a Scratch buffer or an empty buffer (such as when creating a new buffer that ...
0
votes
2answers
34 views

Making Shift-Tab work in Vim when running inside ConEmu

I have these mappings in my initialization files for Vim: nnoremap <S-Tab> <LT><LT> vnoremap <S-Tab> <LT>gv the intention is to be able to unindent with SHIFT-TAB. ...
0
votes
1answer
23 views

How to choose the suggestion from suggestion list

I'm using neocomplete plugin for vim. I can't figure out how to choose the suggestion from the list. What is the meaning of letters [B] and [S]? How I can use them to select suggestion?
2
votes
2answers
212 views

Why does the 'vi' command open 'vim' editor?

I am using Ubuntu 12.04. Not that I am complaining as I like my vim and prefer its many features. However, I’m curious as to why it does it. It is not aliased in .bashrc or .bash_profile. I am not ...
0
votes
1answer
12 views

Latex: customising syntax highlighting in vim

I made some custom commands to make writing equation blocks easier: % Equation starters \newcommand{\eqn}[1]{\begin{equation} #1 \end{equation}} \newcommand{\eqns}[1]{\begin{equation*} #1 ...
1
vote
1answer
17 views

Editing gcode with vim regex

I need to edit gcode for a model in particular I have to substract number 87 from all Z coordinates. Here is sample of gcode: ;LAYER:435 G0 F9000 X-38.420 Y-26.887 Z87.300 ;TYPE:WALL-INNER G1 F1800 ...
2
votes
1answer
42 views

Vim: cannot remap <leader> to comma or space

I've tried let mapleader = '<space>' let mapleader = ' ' let mapleader = ',' None of them works. VIM doesn't even show coma in the status bar (bottom of the screen?), but it works perfectly ...
0
votes
1answer
23 views

Wordskip in vim [ssh from mac to linux]

Word skip (ctrl key and arrow keys) work fine with vim on my mac in terminal. But, when I ssh from my mac to my linux box, ctrl and arrow key do not work (wordskip) instead delete a bunch of lines ! ...