VIM setup

Valentsea
Total
0
Shares

I am VS-Code user, but time-to-time I need to work with terminal, even on windows where I use gitbash because that is close to linux shell, which is important when you find yourself some ssh situation for example.
By the way each of those environment vim was installed.
At first time vim seems a very weird. But few round later this editor seems very useful tool for us.

I use this basic setup for vim:

syntax on
set tabstop=2
set shiftwidth=2
set softtabstop=2
set autoindent
set smartindent
set termguicolors
set number
set mouse=a
set cursorline
set encoding=utf-8
set hlsearch
set incsearch
set ignorecase
colorscheme slate
Enter fullscreen mode

Exit fullscreen mode

copy this code and:

vim ~/.vimrc
Enter fullscreen mode

Exit fullscreen mode

press: p – paste
press: : – change to command mode
write: wq – quit with write.

Few useful vim shortkey:

:q – quit
:q! – quit without save
:e filename – open file
:Ex – open selected file
:help – self doc

Fine coding!

Total
0
Shares
Valentsea

Create your HTML forms without server for free! 💪🤑

Would you like to integrate a html contact form into your website without setting up a server? I…

You May Also Like