Questions tagged [vimrc]

Vim's configuration file.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

How to set vim keymappings? [migrated]

I am tryng to use https://github.com/terryma/vim-multiple-cursors, " Default mapping let g:multi_cursor_start_word_key = '<C-n>' let g:multi_cursor_select_all_word_key = '<A-n>' let ...
2
votes
1answer
63 views

Solarized leaving red highlighting at the end of lines in vim

I'm using vim with the solarized dark color scheme within the Windows Subsystem for Linux. Solarized looks great except for one strange feature. When I scroll down in a vim file and then scroll back ...
0
votes
0answers
56 views

Installed vim in local area, but the new vim errors out for my installed plugins

I have installed a newer version of vim under ~/.local/usr/local/bin/vim, but when I open this version, I get the below errors for my plugins in ~/.vimrc: line 8: E492: Not an editor command: ...
3
votes
1answer
44 views

My VIM basic imap mappings have no effect

Good afternoon, I am struggling with Vim mappings. I would like to practice over very basic ones such as "replace a-s with b-s", or "replace ù with /", but I do not succeed. Here are my trials: :...
0
votes
0answers
5 views

Neovim Settings get lost

I have neovim installed and this is my init.nvim file call plug#begin('~/.local/share/nvim/plugged') Plug 'tyrannicaltoucan/vim-quantum' Plug 'mxw/vim-jsx' Plug 'pangloss/vim-javascript' ...
1
vote
0answers
53 views

Why Won't Deleting vimrc Reset Vim Settings? (Mac)

I reinstalled Macvim using Homebrew, deleted and reinstalled both the vim folder at /usr/shared/vim and vimrc. When I open text files with vim the settings are the same and any changes I make to the ...
0
votes
1answer
24 views

My Esc+<left arrow> deletes 3 lines in vim

I am somewhat confused as what can be the cause of it. I disabled everythin in vim (replaced .vimrc with a blank file) and still, when I press Esc+left, I delete the 3 lines above my cursor, and with ...
1
vote
1answer
218 views

my WSL ubuntu vi editor screen is broken when I scroll down

When I scroll down at my vim editor, all of my codes is wrapped with strange boxes. Can I fix it? My .vimrc file: Problem Image:
0
votes
0answers
94 views

E481 for every line of .vimrc on remote server, same text works locally

to start, I set up my local vimrc with the following and it works without issue. 1 colorscheme default 2 syntax enable 3 set number 4 set showcmd 5 set cursorline 6 set tabstop=4 7 set ...
1
vote
0answers
179 views

Vim - E490: No fold found

I'm having problems folding some lines in a LaTeX. I use the set foldmarker=/*,*/ option in my .vimrc, and is working fine in the main file, but when I change the buffer, in the other file, I can't ...
0
votes
0answers
111 views

Unable to include plugins using vimrc . Error for each line of my vimrc

I have installed gVim and trying to have customizations, i.e, including plugins. https://raw.githubusercontent.com/kinbiko/dotfiles/master/vimrc Used multiple plugin managers, but in vain. Error ...
2
votes
1answer
48 views

How to make Vim “repeat search” direction absolute instead of relative?

I am looking for a way to make Vim always go backwards whether I press repeat last , or N and forward when using their pairs ; or n. Currently Vim is using a relative direction which depends on the ...
1
vote
1answer
200 views

How to move from insert to replace/overtype mode in vim

How can you switch from insert mode to replace/overtype mode in vim? In windows/*nix I just hit the insert key twice (command->insert->replace), but unfortunately i'm stuck on a mac now which doesn't ...
1
vote
1answer
93 views

Extending highlight on line number to ALE gutter as well

I have set cursorline enabled, and it works. I'm also using ALE to lint my code, and I have the sign gutter set to show always (g:ale_sign_column_always). However, in filetypes that ALE knows how to ...
1
vote
1answer
72 views

Move cursor by line number when moving through multiple lines (e.g. `5j`), move by display line when moving through a single line (e.g. `j`)

In Vim, I have the following set in order to have ragged right soft-wrapping of lines: set linebreak set wrap When traversing multiple lines at once, an annoying side effect is that 5j will not move ...
0
votes
1answer
105 views

Why remapping <End> key to <S-A> causes Vim to behave weird?

nnoremap <End> <S-A> " line comment Pressing End key then produces the desired effect but vim also appends " line comment to the end of the line! Is there any way to kinda let vim ...
0
votes
1answer
1k views

How do I set the font in command line vim (vim for windows)?

everything I see says I should use guifont but if I open a console and try to tab complete set gui--- I only see set guicursor Im using command line vim not gui vim. What do I put in vimrc to set ...
1
vote
1answer
114 views

How do I use a custom vimrc file?

I have just started using vim and I find a bunch of vimrc files online. How exactly do I tell vim to use this vimrc as the default vimrc. I know I can copy every time but is there a better way to do ...
-1
votes
1answer
644 views

vim error 'E45: 'readonly' option is set' on a file with write permission Debian 9 vim 8.0.707

I wonder why I have the error in title while the edited file have write bit enabled and the good user : # ls -l /etc/hosts -rw-r--r-- 1 root root 693 Nov 15 09:46 /etc/hosts # whoami root Any idea ?...
3
votes
0answers
543 views

How to set scrolling speed of vim like set mouse=a when mouse=v?

I wonder how it's possible to set scrolling speed. As is, when I scroll with my mouse in command or edit mode, it moves only one line at a time. I prefer to move by example 3 line at a time. (speed ...
0
votes
1answer
56 views

Vim: Operator pending mode remaps not working

I'm trying to build a vimscript can be used with the Dvorak Simplified Layout. I.e., given that the keys on the keyboard plugged into the computer are laid out in the Dovark Simplified Layout (and the ...
0
votes
1answer
26 views

Mapping a command not the same as writing command in vim terminal

I'm trying to use a mapping in my vimrc to execute a command. The command works if I directly type it into the vim terminal, but when I use the same command it stops typing it after the first space. ...
0
votes
1answer
271 views

How to enable both this vim feature: mouse cursor move and paste with middle mouse in same time?

I would like to have two features in VIM Mouse Cursor Movement Paste from global clipboard with middle mouse For the first feature I can set mouse=a and the second mouse=r. Separately these ...
1
vote
1answer
46 views

vim is using previous version of vimrc under some circumstances

Funny thing is happening to me on vim: I made some changes to a user's ~/.vimrc in order to customize the status line with a simple function (the changes were made on several saves while I refined the ...
1
vote
0answers
73 views

Vim session with splits with remote ssh files

I use to use vim session to keep my opened files. I do it remotely, ssh remote machine and do things there. Today I tried to open remote files in local Vim, I mean with netrw: :e scp://user@remoteip/...
5
votes
2answers
906 views

How can I Insert the result of a “.w” evaluation at the end of a line in Vim?

I'd like to be able to evaluate a line of Javascript (or other code) in Vim, and have the result appear in a comment at the end of the line. For example, if I have a file like: console.log(4 + 5); ...
1
vote
2answers
7k views

How to use gruvbox airline theme?

I'm trying to use the gruvbox airline theme with my gruvbox color scheme but there doesn't seem to be an official airline theme for gruvbox. https://github.com/vim-airline/vim-airline-themes/tree/...
1
vote
1answer
321 views

how to make vim to have python interactive runtime window

Is it possible to have python live program mode window open in python so we can call program and see the live outcome straightaway instead of jumpout vim to CMD? It is a bit like VisualStudio setup.
1
vote
0answers
166 views

Issue with vim setup python ide

Found ale lint on git about vim but the display after clone from git is still shown as classic instead of the one shown on: The syntax suggestion is not on as well Do I need to run ale toggle to turn ...
1
vote
1answer
376 views

Not able to map any keys between F1 to F5 in gvim

I am not able to map any keys between F1 to F5 in gvim through vimrc. However all the keys after F5 are being properly mapped. Here is my vimrc file content. map <F1> :q!<ESC> map <...
-1
votes
1answer
436 views

How to hide the status lines of other opened buffers in vim?

The image below illustrates the lines or window titles at the bottom: I wonder how to hide the status lines of other opened buffers in vim?
1
vote
1answer
99 views

How can I change certain keywords in vim to all-caps?

How can I change certain keywords in vim to all-caps? I would like to know as I am programming in Fortran and the required style is to have all the intrinsic functions in caps. For example the keyword ...
0
votes
1answer
302 views

vim multiple specific mappings

What is the best way to specify multiple modes for a map in vim? I know that nmap x y triggers y on receiving x when in normal mode, imap x y triggers y on receiving x when in insert mode, and so on....
0
votes
1answer
124 views

vim remove characters from buffer separations

If you look at the screencasts from vimfiler you can see that there's no characters in the separations, some are just a thin line. Where as mine as the default | pipe character. My question is ...
1
vote
1answer
209 views

Autocmd ignores mapping?

For convenience I mapped "unindenting" to SHIFT+TAB in my .vimrc: nnoremap <S-Tab> << inoremap <S-Tab> <C-D> This works fine if I use it myself while editing, and so I wanted ...
1
vote
1answer
713 views

ability to switch between panes has broken in tmux with vim

Ok, so I run vim inside of tmux and recently (today in fact) I suddenly can't use ctrl+hjkl to switch between panes in tmux and vim, instead it just makes the bell sound and refuses to switch. If I ...
1
vote
1answer
183 views

Vim mapping for .vimrc only

I know about autocmd FileType <TYPE> inoremap <MAPPING> for files like *.html. But i would like to create some keybinds for within my .vimrc like this: autocmd FileType vimrc inoremap ;...
2
votes
0answers
375 views

Vim - Detect Caps Lock Status

My question is simple and straightforward! =D In this thread @OsQu... Vim - Is Capslock on? ... says that you can use the Automation Hotkey Scripting (AHK) below to detect the Caps Lock (on/off) ...
0
votes
1answer
268 views

Vim leader key mapping for multi step copy and paste

When I need to copy and paste large blocks of code from a webpage, I need to do the following one step at a time: :set paste enter Vim insert mode paste clipboard set nopaste enter normal mode I'm ...
0
votes
1answer
278 views

Defining custom command in nvim.init

I am trying to define my custom command in nvim.init (NeoVim) but I've occurred an error. Could be so kind and help me with getting rid of it? Here is a line which I've putted into nvim.init: ...
1
vote
1answer
115 views

Fail to add a new word to the “good” list of vim spell checker

I am using the vim spell checker. When I do "zg" (Add word to "good" list) it apparently works. If I save and quit ( with :wq command) and re-open the document all words get reddish indicating that ...
0
votes
1answer
557 views

How to get vimrc colours to fill the screen?

I have a colour scheme set in vimrc. When I set it and set the term variable to xterm-256color I had the background colour only on the text. I then found the solution to set the term variable to ...
0
votes
2answers
498 views

Plugins configuration file for Vim

I'm quite new to Vim, and, since I'm writing my very own .vimrc file, I was wondering if there is a way to store all the commands relative to a certain plugin configuration in one external file, in ...
0
votes
0answers
738 views

How can i enable mouse support in the command line version of vim?

OS: WINDOWS 7 EDITOR: CDM + VIM Hi i have been building my windows development environment to match my Linux one. I'm currently do SDL2 on windows so i don't want any linux emulation like Cygwin. ...
1
vote
1answer
997 views

vim autocmd not working

Here is my vimrc file: set nocompatible filetype on function Dateinsert() $read !date endfunction :autocmd FileWritePre * :call Dateinsert() I expected to insert ...
13
votes
3answers
1k views

Creating ~/.vimrc disables syntax highlighting

I started using Vim as it was first installed and then decided to change the indentation behavior by adding set tabstop=8 softtabstop=0 expandtab shiftwidth=2 smarttab to ~/.vimrc as suggested by ...
2
votes
2answers
138 views

Vim make a custom macro or command

Although I have been using Vim for quite some time now, I am still a novice when it comes to customizing it. I am not sure if what I have in mind can be done. Here what I would like to do: When ...
1
vote
2answers
164 views

How to disable navigation keys in Vim?

I want to disable the usual keys to navigate on a text editor that is the Up, Down, Left, and Right buttons in Vim text editor. It would enforce the vim-style HJKL keys to be used for the same ...
1
vote
1answer
107 views

How to map commands in Vim?

I am using gVim and there's no vertical split option in it's File menu item. I want to map the default :split and its abbreviation :sp to :vsplit and :vsp respectively, so that it replaces the ...
1
vote
3answers
3k views

Splitting a single file into multiple windows on Vim

Is it possible to open a part of the file as a separate vertical split window in Vim? Say I have a file with hundred lines, and from the fortieth up until and including sixtieth lines I want to be ...

1
2 3 4 5 6