All Questions

966 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
342 views

Disable paste mode entirely

I get what paste mode does for you, but I have never found it particularly useful. I would like to completely deactivate it. I don't see an option to do so when looking at :help paste. However, I ...
0
votes
0answers
51 views

How to create man-pages and link them like in vim help system?

I would like to create documentation just like vim-help system . Multiple .txt files with links and cross references and where I can jump foreward CTRL+] and back using CTRL+T. How is it done?
0
votes
1answer
136 views

neocomplete error when using latest spf13-vim

I have been using spf13-vim for a while now. Recently I have upgraded by pulling down master from GitHub repo. After the updates I see that spf13-vim has neocomplete enabled by default. One of the ...
0
votes
1answer
110 views

How do you fix the Home and End keys producing 'H' and 'F'?

I recently was doing some Vim editing and noticed the behavior was very different for two important keys. The only difference I made was I started bash using: env -i bash --init-script ~/.bashrc....
0
votes
0answers
22 views

YouCompleteMe: How to define special keyword?

For example, I need to type (others => '0') many times. Can I define (others => '0') as a keyword. If I type something like other then (others => '0') will show in the selection menu.
0
votes
0answers
119 views

Errors/warnings from :make are not shown correctly

So far I've been compiling projects from within Vim by suspending it with Esc and Ctrl + Z, running make (btw, I'm using the gfortran compiler and, should it be important, using the mpifort wrapper, ...
0
votes
0answers
17 views

How to configure autocompletion so that it replaces everything until non-word-char?

I'm using CTRL + n to do auto-completion when editing - since years. One things that annoys me (and now I want the solution) is that the completion is not replaced characters until the next non-...
0
votes
0answers
124 views

How to tell command-t to ignore a specific directory

I have a very large number of files under a specific directory. If I start vim from the wrong place, command-t tries to index the whole thing, which results in vim hanging for a long time before ...
0
votes
1answer
118 views

How to save the source code of a PDF file after opening it in Vim?

I am detecting malwares in PDF files for which I need their source codes too. I want to save the source code in some text file so that I can write a code to scan through all of them to detect patterns....
0
votes
0answers
378 views

Working with yaml literal-blocks in vim?

I'm trying to work with indenting yaml in vim, and I'm trying to convert it to JSON. Say I have a file like this: --- foo: bar baz: - qux - quxx corge: null grault: 1 garply: true ...
0
votes
0answers
38 views

Difference between 1 CTRL-G and :pwd, quotation marks?

The commands 1 CTRL-G and :pwd return related but different results: 1 CTRL-G "~/dev/src/tiff.c" 170 lines --15%-- :pwd /home/user/src Of course, CTRL-G returns the file, not the working ...
0
votes
0answers
34 views

Prevent viewport from jumping to the right

As soon as I put the cursor on column 79 or beyond, the Vim viewport jumps to make sure the cursor is put in the middle of the viewport. I find it massively disturbing, but could not navigate my way ...
0
votes
0answers
151 views

How to migrate from NeoBundle to Dein?

Shougo is no longer maintaining NeoBundle, but instead has re-written a plugin manager from scratch under the name Dein. The Dein GitHub page says: No Vundle/NeoBundle compatibility Given ...
0
votes
0answers
171 views

How to refresh the oldfiles list without restarting vim?

:browse oldfiles<cr> is useful for quickly navigating to a file I've worked on recently. Sometimes though, I want to suspend vim and do some grep or ack search and find a new file that I'm ...
0
votes
0answers
225 views

Fold show first line of docstring, keeps other folds intact

Following this article, fold show first line set foldtext=getline(v:foldstart+1), it does but other folds in file look bad, see pics: When set foldtext=getline(v:foldstart+1) Without set foldtext=...
0
votes
0answers
119 views

How to fold lines above the current unless it has less indentation than the current

My intention is to facilitate investigation of deeply buried code. For example, an error is thrown with message "ABC Error" and if | is where the cursor is: function handleRequest(req) { let param ...
0
votes
0answers
599 views

Change runtimepath of Gvim on Windows 10

This's kind of odd question but I can't change the runtimepath of gvim to comply the same manner like under linux (plugins put under .vim) I tried to append .vim at the begin of runtimepath like: set ...
0
votes
0answers
326 views

How to map shortcut to double square brackets using the leader key

I'd like to assign [[ to leader[ and ]] to leader]. I've tried the obvious: let mapleader=" " nnoremap <leader>[ [[ nnoremap <leader>] ]] but the former mapping doesn't work. I've ...
0
votes
0answers
70 views

Is it possible to copy block (given by range) multiple times in a single command?

Is there a way to copy a few times a given block from command-line mode, e.g. with the :t command? For example, how to copy the two lines (block) above the cursor -2,-1 to the current position ., 3 ...
0
votes
0answers
57 views

How to auto expand Enter as a single change?

I want to implement a Enter expansion for my plugin like delimitMate and auto pairs do. I've done inoremap <CR> <CR><C-o>O, but If I want to undo what seems like a single change I ...
0
votes
0answers
92 views

indentation different on different computers

If I indent the following script with gg=G: #!/usr/bin/env bash while true; do case "${1}" in -h) usage; exit 0;; -b) branch="${2}"; shift 2;; -t) build="${2}"; shift 2;; ...
0
votes
0answers
56 views

Use quickfix for completion

Is there a way to use QuickFix as a source for auto-completion? Let me explain, my experiments with project-wide autocompletion did not end with any successful results and I tried every plugin ...
0
votes
0answers
129 views

Fix a specific eslint error automatically

I often get an eslint error in a Javascript file, which is trivial to fix - for example, trailing spaces or incorrect indentation: In this case, I would have to ^XX to navigate to the beginning of ...
0
votes
0answers
50 views

netrw: ftplugin double loaded?

I notice an annoying stutter when opening directories. Just a split second, but it's kind of a problem if I'm navigating the directory tree and it hesitates each time I open a different directory. I ...
0
votes
0answers
76 views

How fugitive-specific is the 'git' filetype?

When you run fugitive's :Gblame, it opens a buffer whose 'filetype' is fugitiveblame. You can hit q to close its window. You can also hit o to view the commit for the line your cursor is on in a ...
0
votes
0answers
106 views

How to make vim automatically do a CTRL+D after jumping to a tag?

When I use CTRL+] to jump to a tag, the cursor will be placed at the center of the window. How can I make it stop at the top of the window? Now I do this by pressing CTRL+D after each jump. I was ...
0
votes
0answers
333 views

Unable to recover .swp file

My computer crashed while in the middle of editing several vim files. Upon reboot, two of the files getting edited showed a file size 0 bytes. I was able to recover one of the .swp files with the :...
0
votes
0answers
63 views

Column-based w command?

From a given cursor position, how can I move vertically to the next non-whitespace character (in the same column), whether up or down? Since I highly doubt this is a built-in motion command (if it is ...
0
votes
0answers
38 views

Why is this function clearing screen output?

This is an example script which is meant to print the keyboard shortcut for a command. Applying it clears the screen output. The result of commands like intro or version get cleared off the screen ...
0
votes
0answers
45 views

Escaping and quickly pressing certain keys brings me back to insert mode

So I have quite some plug-ins installed and have set a lot of key combinations, and it seems like one of these key combinations makes me revert to insert mode, when I quickly press d or b after ...
0
votes
0answers
24 views

Inconsistency with the “Discard All” command

I've noticed a strange inconsistency in vim. I have set confirm in my .vimrc, but I've noticed that the confirmation varies depending on whether I call :qa or hit the close window button on gvim. ...
0
votes
0answers
38 views

Turning on syntax highlighting for test script output to new buffer

I'm using a plugin, bexec, to execute a test script. The plugin opens up a new buffer to the right of my code and it displays the output of the test script: I would like to have syntax highlighting ...
0
votes
0answers
65 views

when vim isnt run as just vim, getting no colors

I recently started using :set termguicolors which enables 24 bit colors. However, this (along with the rest of my config) causes vim to display absolutely no colors whenever it is started in a ...
0
votes
1answer
645 views

Sourcing Vimplug plugins in a separate file

I am using the minimalistic Vimplug as the plugin manager for Vim. Installing plugins through Vimplug involves putting the following code inside the vimrc file. call plug#begin('~/.vim/plugged') ...
0
votes
0answers
577 views

vim doesn't auto indent php files with html in it

In relation to this question: Auto indent turns off itself automatically on php files Vim has a php auto indent script; it behaves in following way: When autoindent is ON - if you open a php script, ...
0
votes
0answers
106 views

Can ctrlp work in white list mode?

Ctrlp provides a way to ignore some files or folders: " ctrlp configuraation let g:ctrlp_custom_ignore = { \ 'dir': '\v[\/](\.git|\.sql|\.hg|\.svn|vendor|var|sass|bin|app|web)$', \ 'file': '\v\....
0
votes
0answers
765 views

Vim bind ctrl arrow key not working on osx

I know they have many topics about that, but i no one of them works. My configuration worked before to switch between split window, but my session has been re-init and i lost my osx config and it's ...
0
votes
0answers
66 views

Strange glyph when moving commandline cursor

I recently tried vim for the (still in-dev!) Bash for Ubuntu on Windows. I noticed this odd glyph appearing on the commandline in vim - but only when moving across it. It flashes for one screen ...
0
votes
0answers
185 views

Sign column font is cut off

I have an issue where the signs in my sign column are cut off in the middle (screenshot below). Changing the Guifont or the font size doesn't seem to matter. It looks fine in terminal neovim. I am ...
0
votes
0answers
87 views

Vim to behave like nvi when opening line in empty buffer

I want to Vim to behave like nvi when opening a in an empty buffer. This is an empty buffer: ---------------------------------------- ~ ~ ~ ~ ---------------------------------------- After typing ...
0
votes
0answers
451 views

Why my easytags plugin not generating tags automatically?

I have xolox/vim-easytags and xolox/vim-misc installed. I have following configuration in vimrc: let g:easytags_dynamic_files = 1 let g:easytags_on_cursorhold = 1 let g:easytags_updatetime_min = 4000 ...
0
votes
0answers
151 views

Loading ultisnips with NeoBundleLazy

I've found that ultisnips is one of the slowest plugins to load at startup. How do I use NeoBundleLazy to load ultisnips later, eg upon entering insert mode? I've tried: NeoBundleLazy 'SirVer/...
0
votes
0answers
886 views

How I configure Vim for use with netrw?

I recently started to use netrw as a file manager next to my editing session. But I had a coupe of issues with it. First of all netrw reads unhidden buffers from the disk every time. Which made me ...
0
votes
0answers
346 views

Vim compilation requirements for Nvim-R

I use Vim 7.4.521 under Kubuntu 14.04.4. I downloaded and installed Nvim-R 0.9.5 (for Vim >= 7.4.1829) via :so %. Doing the following: $ vim somefile.R on a file containing R code results in Vim ...
0
votes
0answers
465 views

How to color the column right after the line numbers and before the beginning of line?

Would be nice to color the single column just left of the beginning of the line, but I don't think it has a group name like CursorLine. Anyone have any ideas? Maybe some simple macro would do, using ...
0
votes
0answers
260 views

Matchit Plugin: issues when resetting regular expressions in “b:match_words” for detecting Matlab file keywords

I'm trying to implement a custom regexp string to be used by matchit.vim for identifying matching keywords that can be jumped between with %. I found a utility from FileExchange (in the ftplugin ...
0
votes
0answers
136 views

Why doesn't select mode appear in the status line?

Regardless of the mode I select, it appears on the status line. But when I switch to select mode, it is not shown on the status line in Vim, whereas it is shown in gVim. How do I make it work?
0
votes
0answers
261 views

Vim leaving behind character after saving with :w not sure why

I'm running into a weird behaviour where I'm editing a file and saving it with the :w command. The problem is it leaves behind the 'w' character after my line of edit. It doesn't do it all the time ...
0
votes
0answers
111 views

Special keys such as Enter and Ctrl+key combinations don't work with gVim

On a new Linux system (RedHat7), gvim has strange behavior. Pressing Enter gives me ~M, pressing Esc gives me ~[, C-V gives me ~V. Curiously, Enter on the numpad works. I tried mapping the ~M (which ...
0
votes
0answers
248 views

vim in cmd, xterm colors completely messed up

I currently want to write my own vim colorscheme for the vim in cmd. For some reason all my xterm256 colors are messed up. Every 10-15 colors the pattern of colors repeat themself... which is quite ...

15 30 50 per page