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
1answer
41 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
255 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
25 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
91 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
46 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
101 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
18 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
39 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 ...
1
vote
1answer
474 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
43 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
49 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 ...
2
votes
2answers
305 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
50 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
79 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
43 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
75 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
42 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
52 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
33 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 ...
3
votes
1answer
85 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
42 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
46 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
35 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
83 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
68 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
1answer
137 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
343 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
17 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
25 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
85 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
259 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 ...
1
vote
1answer
62 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 ...
1
vote
1answer
17 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
49 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
76 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
15 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
17 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
155 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
82 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 ...
0
votes
1answer
204 views

Vim in xterm : Mouse cursor not changing based on mouse mode

When I use vim with gnome-terminal or yakuake, and I have mouse on ( set mouse+=a ), then I see an arrow as mouse pointer, and when I have mouse off, then the "insert" sign as mouse pointer. However, ...
0
votes
1answer
91 views

Can I “properly” run a vimscript in the background?

I'd like to run a peice of vim script in the background (preferably on windows, although if it only works on *nix, that's ok too) The idea would be the following: User calls vimscript function ...
1
vote
0answers
58 views

How to get par formatter to not mangle paragraphs with non-space character prefixes, suffixes?

I can't get the par formatter to do what I want, specifically with automated prefixes and suffixes. Details: My .vimrc excerpt: set formatprg=par\ -w72reqh map t gqip This example input-to-par ...
0
votes
0answers
141 views

Special characters are not displayed in terminal and vim

I'm using redhat release 5.6 (Tikanga). Recently I installed a patched font that support some special characters. I'll describe what I did. Installed the font in the ~/.fonts directory Run fc-cache ...
1
vote
1answer
132 views

Get vim to ignore conversion errors when reading file

I have a UTF-16 file with a BOM. I've set fileencodings to: set fencs=ucs-bom,utf-16le,utf-8,default,latin1 However because of one character on one line, vim does not auto-detect UTF-16 and ...
2
votes
1answer
140 views

Display trailing spaces in vim

I would like to have a nice and sweet display of trailing white-space in my terminal vim. This would allow me to remove them before closing the file. I am aware that this question is quite popular ...
1
vote
1answer
32 views

vim Repeatable Motion that Distinguishes Vertical and Horizontal

I've been looking for a plugin like repmo that can repeat my previous horizontal movement and previous vertical movement separately, and reverse the direction of the motion. (e.g. 5j could be repeated ...
1
vote
1answer
174 views

Vim NERDTree | Remap '<cr>' to 'go' | open file but remain in NerdTree window

I'm trying to remap Nerdtree keys so that <cr> opens a file but the cursor stays in the nerdtree window. Nerdtree has this capability by default and can be triggered with the g + o key mapping. ...
1
vote
1answer
52 views

How can I add a fixed amount of time to all “hh:mm” strings in a document?

I have a document that's a transcription of a video interview. The video itself has embedded SMPTE timecode as well as burnt-in timecode (BITC). The SMPTE timecode and BITC correspond to the time of ...
0
votes
1answer
128 views

How would I write this VIM command for `sed`?

I have a .csv with special characters that are wrecking an import I need to do. In VIM, I discovered away to remove the special characters with : :%s/\r//g This removes ^M from some of my broken ...
1
vote
2answers
70 views

Vimserver on Cygwin

Following to this question, I discovered that I can use --servername <name> and --remote on my console vim executable under Cygwin. So I installed vim-common vim and gvim and I do not have ...