北京市海淀区建筑面积11252.00㎡住宅楼建设工程项目
百度     北青报记者在解读中看到,其实第四十六条并不算是“新规”。
Vim reads initialization commands from a file called vimrc on startup. This can be used to set settings, define functions, execute autocommands, and more.
1,854 questions
3
votes
2
answers
650
views
Why do I need to reopen Vim to have the auto-commands in .vimrc in effect even after sourcing it?
Whenever I make modifications in auto-commands in ~/.vimrc, I need to reopen all the buffers to have the effect of those modifications. Sourcing the ~/.vimrc either by :source ~/.vimrc or :source $...
0
votes
1
answer
37
views
How to disable specific Rubocop rules while ALE g:ale_fix_on_save=1
I currently have ale_fix_on_save=1 to use Rubocop's autofix feature on save, but what I'd like is to selectively turn off specific cops that I don't want autofixed (I'd still want them flagged). One ...
0
votes
1
answer
48
views
neovim: Can't specify ~ or $HOME in viminfofile/shadafile, it's not expanded
I'm using neovim/nvim v 0.4.3 on Ubuntu Linux
I am trying any of the following in order to move my .viminfo file:
set viminfofile=~/.config/nvim/neoviminfo
set shadafile=~/.config/nvim/neoviminfo
set ...
0
votes
1
answer
46
views
confusing behavior regarding "or-predicate" with ternary operator with inoremap
What I want to understand
Why does the following command
inoremap <expr> <Tab> (1 || 1) ? 'yes' : 'no'
fails with the error
Error detected while processing /home/nathan/.vimrc:
line 1:
...
0
votes
1
answer
55
views
:hi command in ~/.vimrc not being read
I have set several commands in my .vimrc file, all of which work besides:
:hi MatchParen cterm=none ctermbg=white ctermfg=red
My other commands are:
:colorscheme wildcharm ...
1
vote
2
answers
132
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
50
views
Stuck on plugin installation page
I am not new to Vim but I am new to using plugins to upgrade the Vim experience. I recently installed vim-plug; the goal being what is usually the goal of anyone installing vim-plug: to automate the ...
1
vote
2
answers
154
views
Sourcing node in vimrc
I'd like to use coc.nvim for completion. However, this plugin requires the JavaScript runtime Node.js. Installing Node.js adds the following code to the shell rc file, (in my case .zshrc):
export ...
0
votes
1
answer
53
views
Automatic item list continuation in markdown file not working with custom vimrc file
I am starting vim with the following dummy_vimrc:
vim9script
filetype on
filetype plugin indent on
set formatoptions+=n
set autoindent
with the following command:
vim --clean -u ..\dummy_vimrc ..\...
0
votes
2
answers
44
views
In vim syntax, how to color everything in parenthesis different color
To color what is between parenthesis I have the following in my .vimrc
syntax on
syntax region ParenText start=/(/ end=/)/ contains=ALLBUT,ParenText
highlight ParenText ctermfg=Green guifg=#FFA500
In ...
0
votes
1
answer
45
views
How to add more keywords to Vim colorscheme?
I stumbled across this amazing colorscheme (I wish I knew where to find it): screenshot
I recreated the python file shown and I noticed that that colorscheme has several more syntactical elements ...
1
vote
1
answer
75
views
Cursor not visible in diff mode
When I've been using gvim to diff files, I've been finding the cursor not appearing.
At first I thought this was because I had cursorline enabled. I like this feature, and normally the cursor appears ...
0
votes
2
answers
103
views
AnsiEsc with autodetect
I want to use AnsiEsc plugin together with other syntax highlighting, autodetected and autoloaded.
When I put:
autocmd BufRead * AnsiEsc
in my vimrc.local, ansiesc is on, but syntax for cpp is off!
...
0
votes
3
answers
62
views
How to search as if from normal mode from an autocommand?
I've got some templates that I use for new files, and I'd like to be able to set myself up to execute a search within those new files as soon as they launch, and, ideally (and this is the part I'm ...
0
votes
1
answer
148
views
How do I configure fzf to have the search input on top, while having the preview window bottom?
How do I configure fzf to have the search input on top, while having the preview window on the bottom?
I managed to set the preview window to be on the bottom by:
let g:fzf_preview_window = 'down:40%'
...