经典游戏合集《南梦宫博物馆》登陆switch平台
百度 再次昭示我们党崇尚劳动、尊重劳动的价值理念,这对我们进一步做好有关工作提出了明确要求。
Vim reads initialization commands from a file called vimrc on startup. This can be used to set settings, define functions, execute autocommands, and more.
262 questions with no upvoted or accepted answers
6
votes
0
answers
679
views
How to get bold comments in vim
I am trying to add bold comments to my vim files. What i mean, is to be able to get something like this:
I saw other articles like this that allow to toggle bold comment.
The proposed solutions from ...
6
votes
2
answers
369
views
How can I decide whether a file should be opened in Vim or not?
I want to create a script using FZF (Fuzzy Finder), and I want to list only those files that should be opened with Vim. I don't want to list mp4, jpg, pdf, etc. files in FZF.
Is there any way to ...
6
votes
0
answers
713
views
Syntax highlighting: what is the difference between :syntax match and :match?
Simple question -- what is the difference between the two? When I try, for example, to highlight characters on every line after the 80th with highlight link OverLength Error (OverLength being an ...
6
votes
0
answers
4k
views
Using GNU GLOBAL and gtags-cscope in vim
Now I am learning how to use GNU GLOBAL in vim. I have installed gtags.vim. I have gtags the kernel source directory. The .vimrc includes the following lines:
set cscopetag
set csprg=gtags-cscope ...
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....
5
votes
0
answers
2k
views
Vim Equivalent of Spyder's Variable Explorer
I am used to coding python in Spyder IDE and wanted to change to vim. I started using vim not long ago, but I miss the variable explorer implemented in Spyder. For those not familiar with Spyder, the ...
5
votes
0
answers
268
views
Set line breaks, word wraps and word searching for Thai and other non-latin languages
I can set the text width and can manually line break imported paragraphs with the following as an example.
set textwidth=72
gqq
I can also navigate English text files with the standard 'w' 'b' 'e' '*'...
4
votes
0
answers
473
views
Unicode in vimrc no longer displaying correctly
I'm using VIM 8.1.2234 with +multi_byte and +multi_lang
In my vimrc file, I have set listchars=tab:?\ ,trail:· (Notice the "?" and the "·")
When I cat or less my vimrc, the text ...
4
votes
0
answers
1k
views
Vim adding blank line after each line when pasting from clipboard
When I copy-paste multiple lines from clipboard into my vim, it inserts a blank line after every line. But when I copy in into a text editor first and then copy-paste it into vim, the blank lines are ...
4
votes
2
answers
367
views
Prevent buffer loads within NERDTree
If I have many buffers opened and, if the cursor (focus) is within NERDTree, when I change the buffer with :bn or :bp, the content of buffer loads within NERDTree.
There's a way to, before buffer ...
4
votes
0
answers
1k
views
How do I setup Mypy with Neomake
I'm trying to use Mypy with Neomake, but without success.
I am currently using flake8 with Neomake, and it works seamlessly, e.g.:
def foo(bar):
return 1
foo(1) > E305 expected 2 blank lines ...
4
votes
0
answers
241
views
Preventing autocmds from being redundantly repeated
I'm trying to figure out what is the proper way to prevent autocmds from being redundantly repeated.
Here are articles which I have already read:
Remove augroups around autocmds in .vimrc (related ...
4
votes
1
answer
2k
views
Make YouCompleteMe open definition in vertical split even if buffer is not saved
There is something I cannot do with YouCompleteMe that I could do when just using tags to navigate to a definition or declaration.
The desired behaviour is (taking into account that , is my leader ...
4
votes
0
answers
792
views
Can't get autocmd with two events to work
I have the VIM Clang Format Plugin and I would like to format my code every time I save it.
This is in my current .vimrc:
" map to <Leader>cf in C++ code
autocmd FileType c,cpp,objc nnoremap ...
3
votes
0
answers
168
views
How to use :PlugInstall intelligently
I have installed YouCompleteMe in the past, but don't remember how. I recently decided to sync my ~.vim directory over multiple computers via a cloud service and realized I was inadvertently ...