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
2answers
110 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
70 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
82 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
48 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
18 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
26 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: ...
1
vote
1answer
105 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
38 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
4answers
114 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
93 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
104 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
34 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
34 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
69 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
116 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
67 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
40 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
37 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
114 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
88 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
208 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
31 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
43 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
87 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
35 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
56 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
127 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
37 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
3answers
281 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
38 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
39 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 ...
3
votes
1answer
183 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
24 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 ! ...
2
votes
2answers
142 views

How to recreate a file with VIM?

I have myfile.txt with some text. If I type vim myfile.txt it opens the file. Is there some parameter for vim to delete the old file and create an empty new one? For example vim -recreate myfile.txt ...
1
vote
1answer
20 views

How to bind a key to issue two commands in visual mode?

This question is more general than the problem I am currently faced with, and may not have a solution. But my real problem may have a solution if there is no general solution. What I want to do is if ...
0
votes
1answer
27 views

Can I make Vim filter entered ex commands?

I know that this is probably better to solve by not typing sloppily in the first place, but I just think it would be really nice to have. Since I've used Vim for a while, the ;w (I have mapped ...
1
vote
2answers
48 views

Write to two applications at the same time

Is it possible to type on your keyboard and have it write in two different applications at the same time? I would like to write in Vim and another application which gives me intellisense (smart ...
1
vote
1answer
57 views

difficulty opening a file(man page) with funny characters in gVIM

I did man ssh_config>a from cygwin I generated the file I want to print $ man ssh_config >a I then opened it in gvim as you see from the screenshot. I might join many of the lines (vim's J) ...
0
votes
1answer
60 views

Vim inserting white spaces after accentuations and other special characters on Mac

If I write the following text on vim: Tís teçxt contãins spécial charàctérs I will get: Tí s teç xt contã ins spé cial cha?| cté rs This wasn't happening before, when I had Mountain Lion. I've ...
1
vote
1answer
53 views

Apply a count to a mapped command

I want to join every four lines of a file into a single line. I can do this by typing: JJJj Since I am going to do that repeatedly, I mapped it to a key: map <F5> JJJj Now, I can hold down ...
1
vote
1answer
58 views

How do I define a vim function on a single line?

Since | is used to separate commands, I thought I could just do this: :function! SomeFunc() | return 0 | endfunction It works fine when I type it on separate lines (entering the first line causes ...
0
votes
0answers
41 views

Forward slash got mapped to Oo in vim

I dont know how but forward slash is mapped to Oo(behavior similar to Shift-o o in normal mode) in vim hence I cannot search. I tried to start vim with --noplugin but the problem still persists. The ...
1
vote
2answers
104 views

In VIM, how do you delete to end of line while in command mode :?

While in VIM, I have a leader shortcut for the following: :!git commit % -m 'updated '; git push; ...
0
votes
0answers
61 views

How to prevent terminal bell from going off when exiting vim from within a nested screen session

My vimrc file contains the following lines to set the window title start and end strings respectively. When I enter a vim session and my konsole terminal is either outside of screen or within a ...
2
votes
3answers
99 views

Notepad++/other editors: How to view same file in multiple columns with auto scrolling?

Is there any editor that allows me to have two columns, where the second column picks up after the last line of the first column? I don't mean cloning like in Notepad++ where I have two open copies of ...
3
votes
1answer
118 views

How to set Vim inside Tmux as default system editor? (Linux)

At all times I have Tmux running, with Vim inside it. I want text files to be by default opened in that Vim instance, and not a new one. I presume I need to somehow change the default text editor as ...
0
votes
1answer
44 views

How to separate Vim themes for LUI and GUI with same general configuration?

I like twilight theme for my Vim, but this theme has 2 major versions, twilight256.vim dedicated for terminals and twilight.vim designed for graphical interfaces. I just wondering how to separate ...
0
votes
1answer
30 views

Scripting a precompiled Vim with Python, Perl… — are the DLLs all I need?

Assume I download a precompiled Vim (all required settings are enabled) on Windows. Now, I want to script it using Python, Perl, and whatever else Vim supports. Are the DLLs all I'm going to need (for ...