vim Questions
3
Solved
My vim syntax highlighting just lead me to believe that status is a keyword in JavaScript.
Searching around all I can find are articles about window.status in browser JavaScript. Is this the meani...
Wonacott asked 6/4, 2018 at 2:50
6
Solved
Sometimes while editing three files using vimdiff I want to copy a hunk from one file to both of the other two. Normally this would be accomplished like so:
:diffput 2
:diffput 3
However, :help ...
3
Solved
To copy a file in Vim using netrw has the following steps:
Select the destination directory (using mt)
Select the file to be copied (using mf)
Proceed with copying (using mc)
The commands to us...
3
Solved
I use vim to develop on my mac and I updated to Mountain Lion yesterday. I was using http://pqrs.org/macosx/keyremap4macbook/ this to remap the escape key's function to caps lock to switch between ...
Chug asked 27/7, 2012 at 3:11
6
Solved
I cannot copy into the + or * register.
:echo has('clipboard') from within Vim returns 0 meaning I don't have that feature flag, I don't want to recompile.
I'm running wayland so I cannot use X1...
Planoconvex asked 23/4, 2020 at 4:20
4
Solved
When I start vim with one of these plugins:
TagBar
Session
I see sometimes garbage characters in the buffer when I open vim.
Here are these characters:
;2R^[[>1;2802;0c
By uninstalling t...
4
Solved
I am new to vim, and I learn that you can interact with the terminal two ways while in vim. The first is to type: ! . The second is :term, when you have a terminal side by side with your source cod...
4
Solved
Is it possible in Vim to lock the top line of a window so that the first line in buffer is always seen on top of the window?
I have a file, say, dump of a database table. On the first line there a...
Conviction asked 20/11, 2009 at 21:21
3
Solved
In gVim if the cursor is over a filename (like "C:\Program Files\Vim\vim71\README.txt" ) which contains spaces then using 'gf' fails.
I found the isfname option but the documentation says one sho...
5
I am using Linux Mint and I installed clang_complete using the makefile from Clang Complete, but it does not work. When I open a cpp file, there is an error message:
Loading libclang failed, comple...
Ferrari asked 29/3, 2014 at 16:54
7
Solved
How do I get the width of 3 (marked with green color in the image) in vim script?
If there is no signs column, and there are no other "special columns", I can get it with
winwidth(0) - (max([l...
Artificial asked 11/10, 2014 at 14:52
1
On the YouCompleteMe Documentation, there are two options for setting up support for C/C++ semantic support. The first is using a compilation database with CMake (e.g. the file compile_commands.jso...
Worst asked 31/1, 2018 at 16:21
3
Solved
I have installed nvim using AppImage mentioned as below
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage
if i use nvim test...
3
Solved
I use this color scheme: Cobalt Colour scheme.
I cannot see the cursor in insert mode.
How I can change the cursor's color?
I think this is the cursor part:
hi CursorLine guifg=none guibg=#002943
h...
Saurel asked 3/6, 2011 at 17:23
4
Solved
Say I want to edit the following line:
var myVar =
"I am a string!";
So that it looks like this:
var myVar = "I am a string!";
Is there a movement that goes to the end of the previous line?...
2
Solved
I've activated showing the line numbers with the relative line numbers active by including the following lines in my .vimrc:
" Set line-numbers
set nu
set relativenumber
This all works nicely...
Cleavland asked 7/11, 2015 at 11:23
3
Solved
Does anyone have a plugin or macro to replace matching { braces } with do and end in Vim? Preferably turning a single-line statement like this:
foo.each { |f| f.whatever }
into:
foo.each do |f|...
3
I'm using vim with YouCompleteMe (YCM) plugin for C programming. YCM needs a json file to show code completion suggestions or a manually crafted .ycm_extra_conf.py file.
Build systems like cmake an...
Interposition asked 1/9, 2018 at 6:5
3
I am trying to parse a giant log file using node.js, the file does not seem to get '\n' but when I do set list in vi it shows me '$" at the end of every line, does anyone know what that is. I means...
4
Solved
I want to use gvim to view a log file which is being updated continuously, such that I always see the last updated line, much like tail command in unix. Is it possible?
Batsheva asked 15/5, 2009 at 9:22
7
Solved
The built-in VIM :sort command sorts lines of text. I want to sort words in a single line, e.g. transform the line
b a d c e f
to
a b c d e f
Currently I accomplish this by selecting the line...
5
When trying to use vim-latexsuite's mappings, the ones using Leader are not working:
:nmap
----------------------------------------
n <Leader>rf @<Plug>Tex_RefreshFolds
n <Leader>...
2
Solved
I've come up with this, but is there simple way I'm missing?
for s:char in split(s:string, '.\zs\ze.')
Cayla asked 17/7, 2013 at 5:31
11
Solved
I'm having the problem that ctags in vim/gvim takes me to a forward declaration a lot of times instead of to the actual definition of the function.
Any way to get around that?
6
Solved
I'd like to have a command I can insert into a command pipeline that adds color escapes to its input according to vim's syntax highlighting capabilities.
For example:
cat somefile.js | vim - <...
Jackinthepulpit asked 30/10, 2013 at 1:30
1 Next >
© 2022 - 2024 — McMap. All rights reserved.