A
A
Andrew2015-06-30 02:54:18
linux
Andrew, 2015-06-30 02:54:18

Where to edit vim configuration?

In Google everywhere they write about the ~/.vimrc file, but the trouble is, I didn’t find it anywhere ... It costs CentOS 7

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
bobrovskyserg, 2015-06-30
@ntzch

Do you know that ~/ is your home directory?
No, you're kidding, I don't believe you!

J
jidckii, 2015-06-30
@jidckii

[email protected]~09:09:36:/etc/vim$ ls
vimrc vimrc.dpkg-dist vimrc.local vimrc.tiny
[email protected]~09:09:41:/etc/vim$ cat vimrc.local

syntax on
 
set number
set ch=1
set mousehide
set autoindent
set statusline=%<%f%h%m%r\ %b\ %{&encoding}\ 0x\ \ %l,%c%V\ %P
set laststatus=2
set showmatch
set backspace=indent,eol,start
set history=200
set wildmenu
set showcmd
set ruler
set termencoding=utf8
set nocompatible
set incsearch
set hlsearch
set ignorecase
set smartcase
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
set smartindent
set foldenable
set foldlevel=100
set foldmethod=indent
set mouse=a
set mousemodel=popup
 
set matchpairs+=<:>
set listchars=tab:>-,trail:-
set whichwrap=b,<,>,[,],l,h

G
GoldenYear, 2015-10-24
@GoldenYear

This file must first be created in the home directory, and then filled with your settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question