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

-2
votes
0answers
13 views

vimlike tools list - request [on hold]

I love vim, but it has made me hate everything else! I would like a vimlike desktop and vimlike browser. With that in mind, please give me a list of vimlike tools, regardless of their purpose, so that ...
0
votes
1answer
8 views

Highlighting the current line in vim via the sign ('gutter') column

When using vim in a terminal, set cursorline results in the current line being underlined. I find this visually clunky and would prefer to only change the background (or foreground) color of the ...
2
votes
3answers
18 views

Command to “go to end of last line that has content, in insert mode”

With plaintext files, when I reopen them in Vim to add content, I want to go to the end of the last line of content and get to insert mode. In ideal circumstances, a simple GA after opening the file ...
0
votes
1answer
24 views

How do I fix vim colors in OS X Yosemite?

I've been trying to fix this for weeks, to no avail, and it's been really frustrating. Here is the issue: Fed up with the wrong colors and general plugin mess, I decided to wipe my .vim and ...
0
votes
1answer
29 views

How to disable the leader key in vim insert mode

I mapped the leader key in vim to <Space> and I set timeoutlen to 250 to have time to use shortcuts with the leader key. But, this is annoying in insert mode, because when I hit space, there is ...
1
vote
1answer
21 views

Add additional paths to VIM on Windows

I want to add additional $paths to vim74 under windows. I use $VIM/vimfiles and $VIM/vimfiles/myfunctions a lot and wanted to add them as paths, i.e. $VIMFILES. I had worked out how to do it in ...
2
votes
1answer
22 views

What does this vim cmd mean? :%y+

I found a command to select all text in Vi/Vim file. :%y+ Could someone explain the line, please?
0
votes
0answers
19 views

setup vim script to execute python file

I searched SO extensively and I can't get to fix this: I'm trying to code a pathogen friendly python plugin in windows. The setup would be: In \vimfiles\bundle\plugin I have a myscript.vim with: ...
0
votes
1answer
24 views

Why does my vim colorscheme stay after I close vim?

I recently used vundle to install the solarized theme for vim on my Arch Linux machine. Whenever I open vim, the theme is applied, but it stays applied to my terminal window after I close it. I can ...
0
votes
0answers
12 views

Vim: change guicursor to empty rectangle shape?

The only cursor shape options I found were ver, hor and block. But what I actually want is this: It appears for a couple of milliseconds when I unfocus gVim and give focus to another window (e.g. ...
0
votes
1answer
21 views

Swap Left Alt and Right Alt on Kinesis Keyboard (or Any Keyboard)

Let me back up my problem a little bit for context. I am trying to use the same modifier-key-plus-letter combination between both vim and tmux so that, if I have a vim pane/whatever on one side and a ...
0
votes
1answer
18 views

Editor with dictionary word completion [closed]

Is there an linux editor which can autocomplete words from a dictionary? I don't ask for autocompletion of already written words in a document (like gedit does). Also I am not looking for (personally ...
1
vote
2answers
24 views

How to autocomplete single-double quotes, parentheses, etc in VIM editor?

I need that everytime a write a single or double quote, parentheses, curly braces, square braces... automatically vim should create the closing one and put the cursor inside in order to continue ...
0
votes
1answer
18 views

cmd-f freezes the program and has unexpected inputs in mac os X

I have a mac os X. After certain point, cmd-f is taking a very long time in every programs. The program freezes so that I have to eventually force quit the program I tried cmd-f. Another cue is that I ...
0
votes
0answers
15 views

Tmux + Vim split screen artefacts

I recently switched my whole workflow to tmux + vim and so far it was awesome; However I have on very frequent problem: There are artefacts after scrolling around in a file. Note that on the right ...
1
vote
1answer
26 views

I can't replace line breaks in vim and iterm

In Vim in iTerm, I frequently encounter issues surrounding line breaks. For example, if I have a file containing the dreaded ^M most online tutorials will say that to perform a replacement I use a ...
0
votes
1answer
18 views

vim-commentary clears line instead of commenting

I have vim-commentary installed through vim-plug (you can see my full dotfiles here with my .vimrc here). When I use the gcc command and then hit the down key (a range selection) on any line, vim ...
0
votes
1answer
11 views

vim delete to tab character key

In vim I can delete from current cursor position up to a certain character, say g, using dtg. How do I delete up to the next tab char though? Is there a key to represent a tab in that situation?
0
votes
0answers
16 views

Vim on windows 8.1 backspace is half-working

I'm using vim 7.4 on windows 8.1 64bit. I have set the path variables and it should be working 100% perfect, however when it comes to backspace the letters won't get erased 'visually'. What I mean ...
0
votes
1answer
49 views

Vim very annoying and slow behavior with Conemu

my problem description gif image - link to imgur My executin environment -Windows7 SP1 -Vim74 (windows verson) -ConEmu latest version x64 version -My .vimrc file link to codepad Settings ...
0
votes
2answers
30 views

The dot “.” isn't repeating last command

Somehow the dot "." command isn't repeating the last command for me. I'm searching a file for the string "xml" by issuing :/xml and vi, as expected, takes me to the next find. But now when I press "." ...
0
votes
0answers
21 views

How to get Vim to interpret only printable ASCII characters?

What I want is pretty simple, so hopefully the fix is pretty simple. I want whatever file I open in VIM to treat each byte as a low-ASCII character. I want the character to be displayed normally if ...
0
votes
2answers
43 views

How to disable Pentadactyl per site?

Is there a more definitive way to disable Pentadactyl on a url basis that is not -- PASS THROUGH -- ? When I try to use codepen.io I cannot edit any text fields, with or without pass-through enabled. ...
0
votes
1answer
33 views

Scroll up command history in Vim without using function key

I recently bought HHKB (Happy Hacking KeyBoard), and it doesn't have direction keys -- it's through Fn + ;'[/ to achieve direction key. Therefore, I'm trying to avoid using direction key as much as ...
1
vote
1answer
35 views

How does one append to the clipboard register in vim?

I already know that you can copy something the a register using: (plus a yank, delete, etc. command) "a I also understand that you can append to the a register using: "A In addition I understand ...
0
votes
0answers
30 views

Place pagebreaks in vim

How would I place pagebreaks in vim (equivalent to match printing specifications to a white xerox paper of 8.5 x 11 in size)? This is so that I don't have to manually adjust the lines to match how ...
2
votes
2answers
29 views

Get rid of null character in vim variable?

I'm trying to fix vim's Backspace behavior on one of the platforms I use. I got the name of this platform (call it bad_platform) from the system's get_platform command. Following the advice in :help ...
0
votes
1answer
14 views

opening NERDTree to point to my file but with full directory tree

I'm using vim, cscope and NERDTree and I cannot find how to open NERDTree to be pointing to specific file (one that is an active buffer) but to have root directory equal to directory from which I ...
1
vote
1answer
30 views

Did I accidentally corrupt the filesystem using VIM and Netrw?

I am using Mac OS X. I accidentally did the following: vim /path/to/directory I meant to open a file, but instead I opened a directory. VIM was excessively helpful, so it opened Netrw. I did not ...
0
votes
1answer
18 views

When vim-ing a folder, how do I make a new file?

I looked around a bit and couldn't find anything on this, but here's the scenario: I vim a folder, to see what's up. I navigate to another folder via j/k/arrow keys/whatever and hit enter I realize ...
1
vote
0answers
20 views

Vim: is it possible to add a modeline for :syntax sync fromstart in a file?

I'm writing a really long page to document a compiler and I was thinking that it would be nice if the doxygen highlighting would stick around. Only if I do a search to further down the file, it loses ...
0
votes
2answers
34 views

Move cursor from the beginning of a highlight to end of highlight

I have the following sentence: I want to add api restriction to MsrestHandler and RESTHandler. ~ (~ indicates the cursor position) I want to change MsrestHandler to MsRESTHandler. Because ...
0
votes
2answers
20 views

How to efficiently delete the first N characters in each line in a paragraph without using visual mode in Vim?

In vim, is it possible to delete the first N characters in each line in a paragraph without using visual mode or using dot command multiple times? Convert www.some_website.com www.some_webiste2.com ...
0
votes
0answers
24 views

vim syntax highlight export to HTML ignores highlighted search results

I would like to export highlighted code from vim to HTML including highlighted search results. Using :TOhtml works fine, however it omits the search highlights. So, how can I export the highlighted ...
0
votes
0answers
44 views

Scrolling with trackpad/mouse in screen on OS X Terminal

I use screen command on Terminal on OS X. When I want to scroll up I change the mode to Copy Mode by pressing Ctrl A Esc. Then I use my trackpad to scroll up/down. It works. However, sometimes ...
0
votes
0answers
22 views

How to install vim-pandoc plugin on Windows (s:python.cmd . import vim_pandoc.bib.vim_completer)

I installed vim-pandoc into a recent install of Vim on Windows 8.1. When I open a Pandoc markdown file (that I made with Sublime Text 3) I get the following messages. This occurs whether or not I ...
0
votes
0answers
32 views

Vim: use tab key for autocompletion with Autocomplpop plugin

I'm using basic autocompletion in Vim along with the Autocomplpop plugin, which automatically shows available completions when I start typing. Once I've typed enough to narrow down the list to the ...
0
votes
1answer
43 views

Kompozer and bootstrap

I am hoping to write my first webpage in bootstrap and, in the past, I have done this using only commandline (vim) and then seeing how it looked in a browser, but I know this is rather archaic and I ...
0
votes
0answers
10 views

vim: virtual edit doesn't extend past last line in file

I have the following in my vimrc set ve=all. When I want to move my cursor past the last line of the file, I cannot. Virtual edit seems to disallow motion past the last line. Is this just a ...
0
votes
0answers
18 views

Links browser and Vim together

I've been reading bloomberg.com/whatiscode and its a long webpage. I also recently started using Vim. At the moment, to take notes, I copy paste some parts of the webpage onto a text file. I would ...
0
votes
1answer
27 views

Extend vim's syntax highlighting for only *some* files?

Our software has many .xml configuration files. Vim colors these files, using e.g. /usr/share/vim/vim74/syntax/xml.vim. But can we customize the coloring for just these files, and not for all .xml ...
0
votes
2answers
31 views

vim/gvim command line switches?

I've just spent 1/2 hour trying to find a list of command line switches for vim. Since vim is a "command line editor" a search on "vim command line ..." is not very useful. I got curious trying to ...
0
votes
1answer
20 views

Vim disable the display of accents in latex file

I have a problem when writing with vim in a .tex file. When I type, for example : \`e I automatically get : è Which I would like to disable, because it is really annoying when writing, the ...
0
votes
1answer
7 views

Vim let cursor sit on newline

Is there a way to let the cursor sit on a newline in Vim, similarly to the default behavior of Emacs? When you delete a character in the middle of a line, the character gets removed and the cursor ...
0
votes
1answer
29 views

Tear off tabs in GVIM just like chrome or firefox

Is there a way to move tabs to a different instance of GVIM? I'm looking for something similar to how most web browsers function. When you drag a tab out of its current window, it either creates a new ...
1
vote
1answer
42 views

Vim prompting file has changed after git pull

My work flow involves editing many files in vim, and occasionally I will do a git pull --rebase, which may or may not actually change the files I am editing. However, after such a rebase, vim will ...
0
votes
0answers
12 views

Scroll when vim displays too much text

If you enter :function in vim, a bunch of text scrolls past the screen. Is there any way to look through it? I don't care about the specific output of :function.
0
votes
1answer
11 views

How do I go to top window in NERDTree for Macvim?

I've googled around a lot but I can't seem to find the solution for this. I want to switch to upper or bottom window using shortcut. Currently, I'm using Ctrl+w w but the command is switching around ...
0
votes
2answers
49 views

Apply full vim colorization for bash scripts that have no shebang line

So in my project there are many bash script files that are sourced, but never run directly, so they get no shebang line and no execute bit set. Vim colors them a little bit, but doesn't use the full ...
2
votes
1answer
31 views

How to give count to a Vim command line command (like :insert, :normal, etc)

In Vim as probably all of you know it is possible to give a count to commands in "normal mode" by preceding them with a number. Like for example 4dd that will delete 4 lines. I am wondering if there ...