Indent multiple lines quickly in vi

It should be trivial, and it might even be in the help, but I can't figure out how to navigate it. How do I indent multiple lines quickly in vi?

Vim for Word (or something like it)

Are there any rich-text editors that have Vi(m) keybindings? Specifically, something like Word where I can compose a document with colors, headings, et al. but use Vi(m) bindings to move around...

Jump to function definition

How can I jump to a function definition using Vim? For example with Visual Assist, I can type Alt+g under a function and it opens a context menu listing the files with definitions. How can I do...

Traversing text in Insert mode

While in Insert Mode in Vim, is there any way to traverse the text moving some characters forward and backward other than using the arrow keys? If I press h, j, k and l while in Insert mode, the...

Is there a Visual Studio equivalent of Vim scrolloff or Emacs scroll-margin?

Is there a standard option built into Visual Studio to act like the Vim scrolloff option or the Emacs scroll-margin option? The aim is for Visual Studio to always show at least x lines above and...

Is there a way to change vim's default mode

Does anyone know how to change vim's default mode? Its default mode is command mode, but could I change it to insert mode?

How do I exit the Vim editor?

I'm stuck and cannot escape. It says: "type :quit<Enter> to quit VIM" But when I type that it simply appears in the object body.

How to delete (not cut) in Vim?

How can I delete a line without putting it into my default buffer? Example: line that will be copied. line that I want to be substitued with the previous one. What I'm trying to...

Can gitconfig options be set conditionally?

Via Github I use the same set of "dot files" on several different computers and servers. On the Macs and Linux boxes under my direct control I have Sublime Text 2 installed and set up as my git...

Mapping Alt+umlaut in .vimrc using xterm doesn't work

The following mapping doesn't work: noremap <A-ö> :do something I use xterm (on Ubuntu) and mappings like <A-j> work. Mapping ö alone is possible but again, <C-ö> doesn't work. What I've...

How do I fix "Error: MONGO_URL must be set in environment" on ubuntu using forever and startup script?

I just deployed a meteor js app on an EC2 ubuntu server. I installed forever and added the following startup script to /etc/init/meteor.conf start on (local-filesystems) stop on shutdown script ...

Open a docx file as a zip in vim

I've got a docx file, which is really just a zip but since the extension isn't .zip, vim fails to recognize that, and opens the raw data. I've tried opening the file and setting the filetype to...

How do I accept input from arrow keys, or accept directional input?

This may be an xy problem, but I'm trying to to build a kernel based text editor, similar to vim or nano, and I know how to use the escape chars to clear the screen, then reprint, I can have it...

Use vim color scheme as CSS style

I am writing a documentation page on my site, and there is some parts of code on the page, so I would like to use the same color scheme I use on my vim to this parts (in the case, Bad Wolf). I...

Cycling through cursor positions

In Vim I am able to go to previous positions that the cursor has been at. moreover I can go back and forth in the list of positions (C-o for backward tracing and C-i for forward tracing). Is...

readonly option is set add to ! override - Windows 8.1

I was trying to change the colorscheme in vimrc. But, when I try to say, I get the following error readonly option is set add to ! override, provided that I'm using Windows 8.1. How can I fix this...

Issues setting $PATH on Bash on Ubuntu on Windows (Linux Subsystem)

I am using the "Bash on Ubuntu on Windows" (Linux Subsystem) and want to add Terraform to my $PATH. Since Terraform can't be installed via apt-get, I did the following steps: Navigated to this...

How to add 'Open in Vim' context menu entry to edit text files in Windows from WSL Vim

I'd like to add a Windows right-click menu entry to quickly open text files in WSL Vim, without manually opening up a terminal. Thanks @romainl.

Docker container killed after Ctrl +C

I have a nginx and php-fpm containers. When I'am in my php container in a projet and I exec any command (like vendor/bin/behat or composer update) who takes time and I click on CTRL+C. I'm...

Docker Alpine and perf not getting along in docker container

First things first: Alpine Version 3.9.0 perf[from:http://dl-cdn.alpinelinux.org/alpine/edge/testing] 4.18.13 Docker 18.09.3 build 774a1f4 My Dockerfile FROM alpine:latest # Set the working...

Prettier and eslint indents not working together

I traying setup my vim based typescript developing environment, but have an issue with indent management. Probably 'eslint' says: indent: Expected indentation of 2 spaces but found 4. after...

How to fzf recent files of vim/nvim, not inside vim but from terminal

I know how to fzf.vim, but I'd like to open from terminal. Grepping history or viminfo may be achieve thst, but I wonder if there is any smart way.

Neovim losing colorscheme when in tmux. All past solutions I see don't work for me

I'm trying to use vim-material theme from https://github.com/kaicataldo/material.vim Below is what happens when i run neovim in tmux Below is what it should look like What i've tried so far: in...

How do I turn off "Contains emphasized items" in Visual Studio code?

I need to figure out how to turn off emphasized items in Visual Studio Code This might sound like a strange requirement, but in my workflow vscode functions as less an IDE than a cross-platform...

How does one stop VS code from going into normal mode in Vim when doing normal copy `Cmd + c`?

whenever I select code and then do Cmd + c (copy) it then goes by itself to normal mode in vim. So: How do I stop VS code from doing that? Why is it doing that? My default keybinding for copy...

In mosh how to scrollback in the terminal and use mouse in emacs, less etc

I want to use mouse-wheel in emacs and also scroll-back in the terminal history. When I do mosh --no-init I can scroll-back in the terminal history but I cannot use mouse wheel in the emacs....

Using Ripgrep with flags in fzf.vim

I am using function below to search content in files with ripgrep using fzf in vim function! RipgrepFzf(query, fullscreen) let command_fmt = 'rg --column --line-number --no-heading...

Error detected while processing function SwitchFlowOrTsLsps nvim windows 10

Hello I tried to enter a js file and upon entering I got this error: Error detected while processing function SwitchFlowOrTsLsps: line 4: E121: Undefined variable: state E15:...

1/3 OSD down in Ceph Cluster after 95% of the storage consume

I'm new to Ceph technology so I may not know obvious stuff. I started deploying ceph cluster using cephadm and I did. In my first attempt I gave each node 3 GB RAM (After some time I figured out...

How to solve treesitter/highlighter: Error executing lua problem in neovim config

I'm currently using Neovim 6.0. And I also use the following neovim-config : https://github.com/rafi/vim-config. After installation, I created a python program to test and a problem encountered...