New answers tagged

2

One way to get this feature is by using coc and coc-emoji. Coc is a plugin which allows you to get the same Language Server Protocol (autocompletion, linting, go to definition, etc...) as VSCode because it uses the same extensions as VSCode. This is a pretty powerful tool but installing it just to get emoji support might be a bit overkill. However if you do ...


1

The solution I found to this problem is to comment out the lines in the Windows Terminal settings.json binding copy and paste to Ctrl+C and Ctrl+V respectively. By default, they are bound to Ctrl+Shift+C and Ctrl+Shift+V. "keybindings": [ // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. // ...


0

There's a way to delete non-empty directories with netrw in vim 8+ or nvim? You could do :!rm -rf directory That warning means, you have files still in that directory. So if a file in that directory you want to delete is on the current buffer, you could do this. :!rm -rf %:h Which deletes the directory of the current file. %:h expands to the directory of ...


3

It's probably one of two things: The cmdheight setting is 2 or higher; you can check the current value with :set cmdheight?, and set it to the default of 1 with :set cmdheight=1. There's something in your vimrc or a plugin changing from the default, you can use :verbose set cmdheight? to see where it was last set. The terminal screen isn't quite big enough ...


2

I don't think you need exec in your command. !open <URL> in itself is a complete command recognized by Vim. So simply, :silent !open https://vi.stackexchange.com/ is sufficient! EDIT: As OP mentioned edits so here is a detailed explanation of why URLs containing ampersand & won't work without using either quotes or escape character. In OP's edit 2 ...


3

You may be looking for zz, zt, and zb—they center (or move to the top, or to the bottom) the current line on the screen.


2

It should be no different from Vim. Namely, source $MYVIMRC In nvim help :h vimrc describes how the associated file is (still) referred to as a "vimrc" (or "config file") and just below that (:h $MYVIMRC) you'll see how/when the environment variable $MYVIMRC is assigned, i.e. during startup nvim looks for config in four places (vs five ...


1

You could search /MARK and then hit n, but faster and easier in my opinion is global/MARK/list And then you type : and the line number when you get the list of results. The command can be shortened to :g/MARK/#, if you like, or mapped to a keysequence to make it even faster: nnoremap <leader>m :global/MARK/#<CR>:


2

The automatic bookmarks '< and '> get updated only after the Visual mode is left. Hence <Cmd> is not useful for your example, as you effectively apply the previous selection range, not the current one. You really should use "normal colon"-mapping here: xnoremap <Leader>c :w !xsel<CR> Note (1) use xnoremap instead of ...


1

Solution Setting LANG to tr_TR.UTF-8 did solve the issue. export LANG=tr_TR.UTF-8 Problem Turns out LANG being empty was the root cause: > locale LANG="" LC_COLLATE="C" LC_CTYPE="UTF-8" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL= I only checked through ...


0

My solution for this need of shell integration is to use neovim terminal tab as main shell. I use also skywind3000/vim-terminal-help plugin and drop command to open new files in same inscanse of vim and not in nested ones.


1

In the Neovim FAQ Here it explains by default Neovim has shortmess+=F, which turns off messages during file operations. Add shortmess-=F and then it will perform the same as original Vim.


2

Cygwin doesn't have a Neovim package, AFAIK. So that was most probably a native Windows build. In this case your config must reside in ~/AppData/Local/nvim/init.vim. See also :h init.vim for further information.


1

One particular use case I had experienced was conservation of my development environment in a different terminal emulator. At the time, I needed to change my terminal emulator to xterm which does not support tabs, as far as I know. I was use to having this feature from gnome-terminal. However with a terminal emulator inside neovim, I was able to open new ...


Top 50 recent answers are included