All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
57 views

`vim.eval('a:items')` fails if 'a:items' contain `BOM HEADERs`

I am using a pluging ctrlp-py-matcher, which is using the python interface to vim. My VIM is compiled with python3 support VIM - Vi IMproved 8.1 (2018 May 17, compiled Jul 1 2018 10:45:10) Included ...
0
votes
1answer
202 views

IPython %cpaste command freezes in Terminal mode

I try to use IPython's %cpaste to paste the clipboard content (Python code) to my Terminal which is launched via Neovim's terminal mode. However, if I paste long lines of code, it freezes, and does ...
0
votes
1answer
860 views

How to add "Edit with gVim Easy" context menu item in Windows 10

I originally just wanted to change the context menu item: Edit with Vim to Edit with gVim Easy and adjust the respective command appropriately. But since I found out, some DLL is responsible ...
0
votes
2answers
327 views

Maximizing gVim on Windows 10 while also restoring all open files / tabs

On Windows 10, I installed gVim 8.1, so far I have made the following progress to make it usable for me: I made changes directly to _vimrc file, in spite I know there is also a gVim specific ...
0
votes
1answer
404 views

NerdTree Toggle seems to overwrite my set columns=80

This is my .vimrc configuration: set columns=80 set linebreak It works as expected but when call NerdTree Toggle the lines expand to fix the terminal window size. Even when NerdTree is deactivated ...
0
votes
0answers
27 views

error output when using commands proxied via WSL (asyncrun plugin)

I have wsl - ubuntu installed under Windows 10. Some ubuntu's commands are proxied to use in cmd by create .bat files and add them to PATH environment of windows10, pattern like following: @echo off ...
0
votes
2answers
375 views

Number of columns highlighted

As I am moving from Windows to Linux for my development machine, I have noticed a difference in vim between the Windows version and the Linux version. The windows will show you the number of ...
0
votes
1answer
164 views

"-u {vimrc}" not working as expected

I am trying to set up vim so I can get different functions in with different files (i.e. x.lisp and x.scm) and in the manual it says starting with the option "-u ufile" uses "ufile" as the vimrc My ...
0
votes
0answers
38 views

How to set system cut-buffer clipboard as default in vim? [duplicate]

I usually want to share my clipboard between vim and other applications (like a web browser) so that I can yank/paste the information easily. So questions, How do I set the default behavior of vim ...
0
votes
0answers
154 views

How can I remove the default digraphs?

I like Vim’s digraph feature but I find the number of default digraphs overwhelming. Is there a way to clear all of these so that the only digraph definitions are the ones that I created myself (e.g. ...
0
votes
0answers
57 views

Highlight block of injected code [duplicate]

windows 10/ gvim 1-1802. I use Javascript and there are sometimes blocks of HTML code that need to be inside a particular region that can be indicated by """, for example . I have a similar ...
0
votes
0answers
126 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
1k views

Neovim on Manjaro- No ~/.config/nvim file being created on install

I just installed neovim on a fresh Manjaro install and my ~/.config/nvim directory isn't being generated. I tried uninstalling and reinstalling and I still have the same issue. I also ran a search for ...
0
votes
1answer
55 views

Move to last line leave cursor in place [duplicate]

I know I can move to the last line of the file using G but that will move cursor to the first column. When in visual block mode I would like to extend the selection to the last line without moving ...
0
votes
1answer
264 views

How does Vim sets 'shell'?

I have an issue with Vim in NixOS. The problem is that Vim sets to shell the path to not desired bash (non-interactive bash). So I want to know how Vim finds a shell and sets its path to shell to ...
0
votes
0answers
28 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
2answers
53 views

Extract JavaScript variable (feature example): how to improve it?

I am a Vim newbie with one week experience and I'm already enjoying it. I've successfully written an (ugly) command+function+mapping with which I can extract some code to a new variable in JavaScript....
0
votes
0answers
19 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
1answer
2k views

How to yank string before a special character?

Example line: ^ some_string : other_string $. How to yank some_string before : without the spaces|tabs?
0
votes
0answers
612 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
60 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
45 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
219 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
613 views

Why shift key is not working [duplicate]

I have below .vimrc key mapping: nmap <C-S-j> :tabmove -1<cr> nmap <C-S-k> :tabmove +1<cr> nmap <C-j> gT nmap <C-k> gt Don't know why C-S-j|k is not working.
0
votes
0answers
336 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
135 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
1answer
117 views

Is there any diff between these opions in behaviour?

Actually I set these options in my vimrc: set tabstop=4 set expandtab But everywhere I saw (esp in vim.wikia) they set different tab option as mine. like: set shiftwidth=4 set softtabstop=4 set ...
0
votes
1answer
198 views

Missing <c-q> when mapping Ex Command

I am using Vim 7.4 in Windows 7. I am trying to map F2 to the following ex-command, execute "normal ggf\<tab>"| execute "normal \<c-q>G$d"| %s/ \+//g using the following mapping command ...
0
votes
1answer
179 views

Unable to link ycm_core.dll when compiling YCM

i am trying to compile the YouCompleteMe (YCM) plugin on cygwin on windows 10, and every time the compiler fails when linking the ycm_core.dll shared library. I will paste my output in this post, ...
0
votes
1answer
924 views

How to make <S-A-Left> and <S-A-Right> work in vim within Mac Terminal

I'm using these keyboard shortcuts to navigate/manipulate tabs in MacVim " tab navigation nnoremap <silent> <S-Left> :tabprevious<CR> nnoremap <silent> <S-Right> :...
0
votes
1answer
36 views

Mapping of (key) overrides mapping of `<C-(key)>` [duplicate]

I am wondering why I can't use a mapping for <C-)> when a mapping for ) already exists. :imap shows: i ) *@<C-R>=AutoPairsInsert(')')<CR> i <C-)> * ) I ...
0
votes
0answers
1k 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
1answer
294 views

How to change 4-space indentation when using "kotlin-vim` plugin [duplicate]

I just installed kotlin-vim plugin. The plugin looks like using 8-spaces indentation. How can I change it 4-spaces indentation? (To indent all codes I used gg=G. Maybe I'm using wrong way for indent ...
0
votes
1answer
198 views

how to link YCM through ruby shims that rbenv provide

We often run with multiple ruby versions and often I have to recompile YCM when I switch as sometimes I get errors like segfaults or can't find ruby. I was wondering, how do I get YCM to compile by ...
0
votes
0answers
92 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
72 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
126 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
1answer
183 views

Vim yank and paste via a shared file [duplicate]

I posted this question on StackOverflow first, as I did not know about "Vi and Vim beta". How to augment Vim yank and paste, so when I yank, Vim writes the content to a file? When I paste, it uses ...
0
votes
0answers
73 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
1answer
428 views

Ruby indentation: align multiline method chains on the leading dot?

Vim indents Ruby multiline method-chains like: object.read .write .rithmetic I'd like to make it align the dots instead: object.read .write .rithmetic I haven't been able to find a ...
0
votes
0answers
168 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
1answer
74 views

Would you ever want to start recording a macro from the quickfix window?

I'd like to map q to :cclose in the quickfix window, but I wonder if I'd be locking myself out of a world of wonderful macros by doing so. Are there realistic scenarios where you'd want to be able to ...
0
votes
0answers
104 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
340 views

Open multiple files using ex command :edit and a wildcard [duplicate]

Is it possible to load multiple files at the same using :edit? I tried: :e ~/dev/myproject/*.c and it did not work. (Note this is different than "How to open multiple files matching a wildcard ...
0
votes
0answers
127 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
1answer
72 views

errorformat: can't understand how to handle error for my parser

I have a parser which output this kind of messages: || Error: M:\workdir\MyFile.ja: line 38: "Blablabla" has no license declaration || Error: M:\workdir\MyFile.ja: unknown attribute "blabla" |...
0
votes
1answer
40 views

Tabularizing all Commas after `EST[`? [duplicate]

How do tabularize all commas after instances of EST[ so that text like Item 1 //EST[5555m, 6666m] Item 2 //EST[1m, 300m] gets transformed into something like: Item 1 //EST[5555m , 6666m] Item 2 //...
0
votes
0answers
201 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
610 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
1answer
134 views

How can I open all folds but the last one?

I would like to open all folds in a buffer recursively apart from folds which contain just text and no further folds. I know that zO opens all folds in a buffer but as explained this is different ...

15 30 50 per page
1
232 233
234
235 236
239