炎是什么意思
Tagged with vimrc microsoft-windows
34 questions
1
vote
2
answers
133
views
Neovim on Windows mysteriously overrides `set fileformat=unix`
I have the following init.vim file:
set fileformat=unix
However, when I create a new file by running nvim new.txt,
the file still has fileformat=dos set:
:se ff?
fileformat=dos
I know my init.vim ...
1
vote
1
answer
319
views
Error when using vim-plug from git-bash
I just installed vim-plug to use the doxygen plugin. Added
call plug#begin()
Plug 'vim-scripts/DoxygenToolkit.vim'
call plug#end()
to the .vimrc (_vimrc because Win10..). Using the doxygen plugin ...
1
vote
2
answers
366
views
Python not working on Windows
I have a couple of plugins which use Python. They work fine on Linux but on Windows I am having difficulty in getting Python recognised.
" Language Providers
if has('unix')
let g:...
0
votes
1
answer
506
views
Why is my $HOME variable set to C:\Windows\system32 when I run vim as a different user and what can I do about it?
I've created another domain user in Windows and I'm trying to run gvim from it.
I've created a %USERPROFILE%\_vimrc but when I start gvim and check :echo $HOME it's set to C:\Windows\system32.
I'd ...
0
votes
0
answers
667
views
How do I make sure terminal vim has syntax highlighting with 'cursorline' and 'termguicolors'?
I searched this issue on the web to no avail and it's most likely not here too. The issue I'm facing goes like this
I am trying to switch to vim since I find it cool. I was writing my vimrc and ...
2
votes
1
answer
190
views
Navigating between split vi windows [duplicate]
On Windows OS, I am using Chrome web browser to ssh into a remote Linux terminal and using vi there. One can use Ctrl-w + hjkl to navigate among split vi windows. However, the problem is Ctrl-w ...
6
votes
2
answers
856
views
How do I configure vim to unzip files with 7zip?
In an answer to this particular question, it's said that it's enough to have unzip installed and available to make vim able to unzip files on the fly. However, I'm wondering if there's a way to ...
2
votes
1
answer
216
views
Required to write gvimdiff file1 ..\..\..\file2 to diff correctly
I'm trying to diff two files using gvimdiff file1 file2. This works in certain parts of my file system, but if I'm several directories deep, it stops working. Instead, it'll open three files and one ...
2
votes
0
answers
137
views
YouCompleteMe unavailable: unable to load Python [duplicate]
I have done PlugInstall but it gives:
YouCompleteMe unavailable: unable to load Python.
The same error happens while loading UltiSnips:
E370: Could not load python36.dll
My vimrc:
set rnu
set nu
...
0
votes
1
answer
350
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> <...
1
vote
0
answers
367
views
Vim syntax highlighting becomes crazy
Some overview and history.
Environment:
OS: Windows 8.1
Emulator: cygwin (mintty)
Terminal: xterm-256
Vim: v8.0 (Cygwin edition)
Vim setup:
Plugin manager: VimPlug
Enabled plugins:
Plug 'scrooloose/...
1
vote
2
answers
2k
views
How do I get the name of the current terminal in Vim?
I'm currently running Vim in Windows 10. I want to specify in my config file certain settings for when I'm running Vim in Cmder, different settings when I'm running Vim in Alacritty, etc.
When in ...
3
votes
1
answer
966
views
How to get put the result of a shell command in a variable?
I would like to capture the result of a shell command into a vim variable inside of my vimrc file.
I tried using let myvar = system("DIR") however it seems to crash vim when I put it in my vimrc file....
5
votes
0
answers
3k
views
ftplugin not loading
This is my .vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle....
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 ...