西城德胜街道联合拆违增绿 消防通道露“真容”
35 questions
0
votes
1
answer
140
views
vnoremap to sort highlighted lines by length not working as expected
I found a command that would sort highlighted lines by their length and wanted to make a mapping for it so that I could avoid typing it every time.
vnoremap ,s :<C-U>'<,'> ! awk '{ print ...
1
vote
0
answers
254
views
In MacVim, I want to make it so the cursor does not blink
In my vimrc file, I have the two lines
let &t_SI="\033[6 q" " start insert mode (steady bar, xterm)
let &t_EI="\033[2 q" " end insert mode
When I am in the ...
1
vote
0
answers
1k
views
Sorry, the command is not available in this version
I am trying to install the UltiSnips plugin using vim-plug (for everything else, vim-plug works just fine). I put this:
call plug#begin('~/.vim/plugged')
Plug 'sirver/ultisnips'
call plug#end()
...
0
votes
0
answers
143
views
Vim Plug installment error on MacOS: Error creating directory /Users/api/.vim/autoload
I just migrated today from VSCode to Vim, and I need a little bit of help regarding the installation of Vim Plug.
I installed Vim with Homebrew, and now I want to install Vim Airline. The tutorial I ...
1
vote
0
answers
2k
views
error: there was a problem with the editor "vi" -- while trying to change deployment file [duplicate]
Facing this error error: there was a problem with the editor "vi" when trying to change a deployment file in the Kubernetes cluster (AKS)
kubectl edit deploy xxxxx -o yaml
upon exiting the ...
0
votes
1
answer
77
views
How do I make the statusline selectable in gvim/macvim?
With terminal vim I can just double click the statusline and select the filename, which is very handy.
In gvim or macvim clicking the statusline prompts me to resize the active window, not very useful....
0
votes
2
answers
1k
views
Why does an empty vimrc file change my configuration (e.g. disable syntax highlighting)?
Here is the sshconfig syntax highlighting when i do not have any .vimrc file:
Let's create an empty .virmc :
$touch ~/.vimrc
Now let's edit that same file again:
Why is this happening? I'd like to ...
1
vote
1
answer
847
views
How to run internal (Neo)Vim ":Command" from external Terminal?
I'm using MacOSX, and I have script on Terminal, and since I will probably forget how to update everything inside Vim/NeoVim, is it possible to pass command, e.g. :PlugUpdate, to nvim/vim so that I ...
0
votes
1
answer
101
views
Map comma in select mode to exit select mode, enter insert mode, append a comma
Is it possible to remap comma in select mode to exit select mode, enter insert mode, [optionally: go the end of the last selection (which the cursor seems to be for ultisnips)] and append a comma? ...
2
votes
1
answer
233
views
MacVim Text Randomly Disappeared [closed]
I am using MacVim to write code in C++. I went to modify my vimrc file and accidentally clicked :w when in the file. After doing this, all the text seemed to disappear. After a while, I realized the ...
1
vote
1
answer
38
views
not finding the name of and plugin
I've installed "awesome" config for my vim;
It has a plugin that shows some stuff on the left bar.
I don't know its name,
what's its name?
and how can I disable it
1
vote
1
answer
29
views
<esc>v$ without trailing space?
I want to use $ in visual mode but it always includes a trailing space (even if there isn't one on the line).
How do I make it so $ only goes to the actual last letter?
0
votes
1
answer
84
views
Unintended automatic join behavior and move in editting
I have to following lines in my .vimrc file (being .vimrc is irrelevant, other files the same),
noremap D "_d
"Make Y behave like other capitals (C, D)
nnoremap Y y$
When I started to delete "_d ...
2
votes
1
answer
186
views
How to set printexpr on MacVim persistently?
Using MacVim 8.1.1722, if I print a buffer, it opens a PDF in Preview.app. I want to open the PDF in Google Chrome instead. So I changed the file association so open foo.pdf opens Google Chrome not ...
1
vote
0
answers
259
views
Simple .vimrc takes a very long time to save
Saving a file with :w takes several seconds for me, and I can't figure out the culprit. This is my .vimrc
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using ...