neovim

How do I search in all files of my project using VIM?

眉间皱痕 提交于 2019-12-03 01:14:49
There are a couple of things I do not yet understand the VIM way. One of these is searching in a project like so (using VIM in Atom): I use CtrlP currently for file names, but what about the contents? How can I search with a string, and then look through a list of all occurrences using VIM and/or VIM plugins? I've found an even better solution for this: FZF It simply searches through everything in your project asynchronously using the :Ag command. Use :grep or :vimgrep to search file contents. The results are put onto the "location list" which you can open by typing :cw Enter . Syntax for

VIM textwidth has no effect

假装没事ソ 提交于 2019-12-02 22:18:19
This feels like a dumb question, but I can't find an answer on the Internet (or in VIM help). I'm using VIM 7.2 on Mac OS X. All I want to do is wrap my lines at 72 characters, but doing :set textwidth=72 has no effect. The textwidth is being set correctly (I can see that when I just query ":set textwidth"), but neither existing lines nor new lines that I type after setting textwidth get wrapped. If I start a new line, still doesn't wrap. Open and close the file, no change. I've also tried :set wrapmargin=72 (with textwidth=0), with no effect. What am I missing here? Try gggqG to apply the new

Clipboard failure in tmux + vim after upgrading to MacOS Sierra

∥☆過路亽.° 提交于 2019-12-02 17:00:58
Yesterday, I upgraded to MacOS Sierra and it broke my clipboard functionality in my tmux + neovim setup. Here is the behavior: I can use the standard ctrl+c, ctrl+p to copy/paste between system <-> vim I can yank/paste between two VIM instances when NOT in a tmux session I cannot yank/paste between two VIM instances when in a tmux session Whenever I use the clipboard in vim within a tmux session, I get the following vim error: clipboard: error: My .vimrc is huge, but here's what I think might be relevant: set clipboard=unnamed In my .tmux.conf (also truncated for brevity): set -g prefix ` #

How to change Neovim font?

一世执手 提交于 2019-12-01 07:40:42
VIM contains a 'set guifont' option to change the font. Neovim does not support this option , so I am wondering if it's possible to change the font Neovim uses in the Terminal? Just change the font in your terminal emulator's preferences. Terminal vim behaves the same way. Only GUI clients like Gvim or macvim use the set guifont option. This is not for a terminal, but still it might be useful to someone. For Neovim-Qt GUI client, you can change the font by Ctrl + mouse scroll if you put the following to ginit.vim : let s:fontsize = 12 function! AdjustFontSize(amount) let s:fontsize = s

How to change Neovim font?

半腔热情 提交于 2019-12-01 04:56:53
问题 VIM contains a 'set guifont' option to change the font. Neovim does not support this option, so I am wondering if it's possible to change the font Neovim uses in the Terminal? 回答1: Just change the font in your terminal emulator's preferences. Terminal vim behaves the same way. Only GUI clients like Gvim or macvim use the set guifont option. 回答2: This is not for a terminal, but still it might be useful to someone. For Neovim-Qt GUI client, you can change the font by Ctrl + mouse scroll if you