Questions tagged [vim8]

For questions specifically about usage of Vim version 8.

Filter by
Sorted by
Tagged with
0 votes
1 answer
115 views

Vim Colorscheme Not Loading [closed]

I created an 8 colour theme, put it in .vim/colors & told .vimrc to use it but the default colorscheme loads instead....
Clove Mill's user avatar
2 votes
2 answers
1k views

Leave terminal normal mode

Once I'm in 'terminal normal mode' (where VIM has control on the terminal display), i can't come back to simple 'terminal mode' (where i can write BASH or launch process). How to leave the "...
floupinette's user avatar
1 vote
1 answer
39 views

AutoPairsDelete() noise with vim plugins

I have been a vim user for years... I recently added a lot of plugins (see my ~/.vimrc) and I keep hitting a problem where I type a word (in this case, a string called cisco) and vim a) sees an ...
Mike Pennington's user avatar
0 votes
0 answers
57 views

a `nnoremap <buffer><silent>` on .vimrc make the curssor very slow on normal mode

To automate a bit the title creation for rst text I added this to my .vimrc: au FileType rst nnoremap <buffer><silent>h1 yypVr=o au ...
user3313834's user avatar
0 votes
0 answers
66 views

Syntax coloring only works inside a particular directory

I have no idea what I did but syntax coloring only works when I open files with vim started inside a particular top level path (e.g. /Users/name/Source/git-repository/). If I open the same files when ...
Looft's user avatar
  • 113
1 vote
0 answers
55 views

Vim local statusline doesn't set up correctly upon open new window

I tried to write a small script to give the statusline distinguishable appearance on current and non-current window. The local active and inactive statuslines are defined by the following code: ...
Rekkhan's user avatar
  • 43
2 votes
1 answer
120 views

Prevent Vim setting Application Keypad Mode on my VT520

I am attempting to use Vim via a serial console and every time I launch it, vim sends ESC= and instructs the console to enable Application Keypad Mode and my numpad stops working. How do I stop it ...
Lexi's user avatar
  • 123
0 votes
1 answer
314 views

fatal: no such path 'A' in HEAD using fugitive plugin

I've my little vim distro with tpope/vim-fugitive installed. Using Git blame in little project (little means with few folders) works fine. Used with files with a deep tree of folders give me a bad ...
sensorario's user avatar
0 votes
0 answers
98 views

Trouble after NERDTree installation using vim8's package manager instead other plugin

I got this strange NERDTree error. The vim distro I am using that fall into this problem install vim using vim8's package manager. Error detected while processing function <SNR>42_onNERDTreeInit[...
sensorario's user avatar
2 votes
2 answers
195 views

Vim 8.2 no user defined functions

Yesterday I updated Vim to version 8.2 thru my Linux distro repositories (Fedora). And now I noticed that no user defined functions exist. They worked just yesterday, before the update. I define ...
d.k's user avatar
  • 618
0 votes
1 answer
71 views

^G appears on my NERDTree

I am building my personal and little distro of vim. I've just installed few plugins using this installer: The vimrc file " encoding set encoding=utf-8 " Tabs and spaces set expandtab set ...
sensorario's user avatar
0 votes
1 answer
221 views

Vim8 && in :terminal's [command]

When running the vim command :!echo A && echo B the result is as expected A B Press ENTER or type command to continue However when I try to do the same thing with the new integrated terminal ...
Fraser's user avatar
  • 103
0 votes
0 answers
192 views

Is there any snippet generator available for vim?

In vscode/atom/sublime there is a snippet generator. https://snippet-generator.app/ Likewise any snippet generator or plugin to generate present in vim? Can I store snippet in my project github and ...
Samselvaprabu's user avatar
1 vote
1 answer
642 views

Display file contents in a popup window upon pressing a key?

I am having a text file where I have a cheat sheet of commands I learned. When pressing some key ,it should be displayed in popup window. In Kakoune editor they display a help using Alt+i , like that ...
Samselvaprabu's user avatar
1 vote
2 answers
899 views

How to show a terminal under all tabs?

I have opened few files in tab vim -p file1 file2 file3 When i have opened a tab contains file1, I open a terminal :botright terminal But this terminal is only available for file1 . when I open ...
Samselvaprabu's user avatar
1 vote
1 answer
214 views

How to gF (go to file Particular line) to popup window?

In vim8 there is a popup window feature which seems like vscode peek definition. Often I use gF to go to file with particular line number. Is there a way to open a file in popup window?
Samselvaprabu's user avatar
0 votes
2 answers
6k views

How to hide terminal when not needed?

In VScode ,we are using ctrl+j to hide the terminal. Then if we press ctrl+j again, it will open the same terminal. Is it possible in VIM/NEOVIM? I tried :Terminal ,but there is no straightforward way ...
Samselvaprabu's user avatar
1 vote
1 answer
69 views

Does vim 8 have some screensaver-like mechanism

I'm working with Vim 8 on the system Ubuntu and I'm thinking if Vim has some mechanism, which is just like the screensaver in Windows. In a word, I'm trying to do a kind of configuration for my Vim, ...
Yves's user avatar
  • 963
2 votes
1 answer
785 views

What is the proper way to use the async mechanism: timer_start

I just started to use Vim 8 and I'm trying to figure out how to use the async mechanism: timer_start. As my understanding, timer_start allows us to run a job asynchronously and repeatly. I have two ...
Yves's user avatar
  • 963
2 votes
1 answer
577 views

Vim Script: How to pass Varargs to a lambda in timer_start

I'm configuring my vim with Vim Script. I have set my own custom grep function as below: function! CustomGrepCore(...) if a:0 == 0 " do something else if a:0 == 1 " ...
Yves's user avatar
  • 963
6 votes
2 answers
4k views

How to start an async function in Vim 8?

I've known that Vim 8 provides us an async mechanism job_start so that we can start a command asynchronously and get its return with the help of channel. However, it seems that job_start can only ...
Yves's user avatar
  • 963
3 votes
2 answers
235 views

Debug how vim calls makeprg

I'm trying to set up pylint to work with :make command in Vim 8.2. I've set :compiler pylint but running :make gives me pylint's help message, so some arguments seem to be passed incorrectly. :set ...
xaxa's user avatar
  • 165
1 vote
2 answers
533 views

How to autoload multiple rc-style files in Vim 8+

I want to split up my .vimrc into multiple files by language or toolchain, use case, etc. In fact, my end goal is to be able to provide instructions to students in the format of "If you want the ...
coolaj86's user avatar
  • 135
0 votes
1 answer
290 views

Python script not running through vim but runs on Windows CMD

I have recently switched to vim from VS Code. I have Vim 8.2. I have put these lines in my _vimrc file so that I can run python in vim by pressing F9:- autocmd FileType python map <buffer> <...
Rohan's user avatar
  • 1
4 votes
1 answer
980 views

Installing vim8.2 with python3.8 : Python.h not found

I have cloned the vim git repository (even tried to run git clean -xdf prior to configuring, as suggested here), then compiled with: ./configure --with-python3-command=python3.8 --with-python3-config-...
duff18's user avatar
  • 195
3 votes
1 answer
469 views

Close vim 8.1+ terminal buffer without unloading

I'm looking to be able to close a terminal buffer without unloading it, as I would with a normal buffer and either hidden or bufhidden=hide set. It appears, though, that said options are ignored for ...
cmaher's user avatar
  • 141
1 vote
0 answers
207 views

:term command changes cursor type in vim

I have set the cursor shape to be - I-beam in my terminal preference. When I execute :term command in vim, the cursor type is changed to block type. This change is retained even after I exit the :term ...
rohith's user avatar
  • 111
4 votes
3 answers
4k views

How to open a terminal horizontally on the right side of vim

I'm using vim 8 and I set a shortcut to open a terminal in my vim. nnoremap <F5> :wa<CR> \| :term ++kill=term<CR> It works except that it opens a terminal vertically as below: ----...
Yves's user avatar
  • 963
1 vote
1 answer
112 views

How to leave spaces for error symbols

I'm using vim 8 with YCM. When YCM finds an error, a symbol will popup as below: As you see, there is a symbol before line 26. The problem is that it will make the whole window move to right a ...
Yves's user avatar
  • 963
5 votes
1 answer
2k views

Job still running in buffer while :qa

I'm using vim 8 with some plugins and shortcuts. I set a shortcut for :term to open a terminal in vim: nnoremap <F5> :wa<CR> \| :term<CR> command Q qa So when I type F5, a ...
Yves's user avatar
  • 963
2 votes
1 answer
886 views

How to move the cursor out of the terminal

I'm now using Vim 8 and its new feature: :term. Well, it's great but I don't know how to move the cursor out of the terminal without the mouse. In Vim 7, we can type <C-w><C-h>, <C-w&...
Yves's user avatar
  • 963
7 votes
2 answers
4k views

How to delete non-empty directories in netrw (Vim 8 or Neovim)?

I try to delete some non-empty folder in netrw by pressing Shift d and, after press y, I got this error: (netrw) unable to delete directory {path} I already put this variable in my .config/nvim/init....
Diego Somar's user avatar
3 votes
1 answer
2k views

Matching parenthesis and such not being highlighted in strings since VIM 8.0 on Ubuntu 18.04, how do I get this highlighting back?

When I place the cursor on the parenthesis of the below line, the two parenthesis get highlighted in a cyan color. When I place the cursor on the curly braces, however, no highlighting happens. // ...
Alexis Wilke's user avatar
6 votes
2 answers
8k views

Gvim 8.1 on Windows 10 won't source $HOME\_vimrc

I have a $HOME\_vimrc present, but it doesn't show up in the output of :scriptnames. And when I run gvim -V, it reports: could not source "$HOME\_vimrc" The only thing in my $HOME\_vimrc is the ...
William L.'s user avatar
0 votes
0 answers
293 views

Send keystrokes and string to gdb terminal

I started debugging a c program inside vim with: :packadd termdebug :Termdebug with vim 8 and and gdb > 8.3 installed. In order to set a breakpoint, I would like to send the following string while ...
tham mes's user avatar
6 votes
1 answer
2k views

How does g:terminal_ansi_colors affect the :terminal colors?

:term usually looks ugly in most colorschemes I've tried. At least on Windows, with light themes, these colors do not work and end up in an unreadable shade of yellow against my light background. I ...
Zoe's user avatar
  • 692
4 votes
2 answers
3k views

Using vim as a terminal multiplexer: neovim or vim 8?

I've traditionally used vim as a text editor and tmux as a terminal multiplexer, but I'm trying to see if I can drop tmux entirely and just use vim for everything (except session attach/detach, which ...
Thunderbeef's user avatar
1 vote
1 answer
142 views

vim8 - why does my 0read not read? [closed]

I have the following function in an autoload file: function! closet#FindSkeletonForFile() if exists('b:closet_skeleton') return 0 endif let b:closet_skeleton = s:closet....
aghast's user avatar
  • 217
3 votes
1 answer
462 views

Is it possible to use <C-H> (and J/K/L) for navigation inside a Vim 8 terminal?

I rebound control + H/J/K/L to navigate between splits without needing <C-W>: nnoremap <C-J> <C-W><C-J> nnoremap <C-K> <C-W><C-K> nnoremap <C-L> <C-...
Adam Hammes's user avatar
4 votes
2 answers
1k views

I am running into problems while using Gpush command from vim-fugitive plugin

I have recently started using the vim-fugitive plugin, and currently I am facing problem with the Gpush command. I tried :Gpush % which gives me errors in the quick fix window saying fatal: ...
Imran Ali's user avatar
  • 171
10 votes
1 answer
3k views

how to load vim8 optional packages in vimrc?

I am trying to load my optional language packages based on filetype. I am using vim8 native package feature. In vim I can load them with :packadd vim-javascript. However, I read in :help packadd - (...
The Fool's user avatar
  • 211
1 vote
1 answer
181 views

Vim bell limited to once per half a second

Since Vim 8, I've noticed that the bell can sound at most once per half a second. This annoys me. I have this solved by recompiling, but am still looking for a way to do it without. I've searched the ...
fghsgh's user avatar
  • 11
4 votes
1 answer
570 views

What's wrong with "terminal cd ." in vim 8.1?

terminal cd . results in following weird error in the terminal buffer: executing job failed: No such file or directory The same error appears for term_start('cd .'). It doesn't matter which directory ...
dedowsdi's user avatar
  • 6,148
152 votes
4 answers
52k views

What is the Vim8 package feature and how should I use it?

Vim 8 was released today and the release notes mentions a new "package" feature. What is it and how should I use it? Most importantly, does it replace the good old plugin managers?
statox's user avatar
  • 49k