Skip to content

Instantly share code, notes, and snippets.

@Barbayar
Last active December 11, 2019 05:26
Show Gist options
  • Save Barbayar/6459919 to your computer and use it in GitHub Desktop.
Save Barbayar/6459919 to your computer and use it in GitHub Desktop.
" fixes arrow keys' problem
set nocompatible
" fixes backspace/delete key problem
set backspace=2
" shows line number
set number
" shows filename on title
set title
" shows where the cursor is
set ruler
" makes tab's size to 4 spaces
set tabstop=4
" converts tab spaces
set expandtab
" keeps 3 lines when scrolling
set scrolloff=3
" makes syntax highlighting on
syntax on
" indents if previous line was indented
set autoindent
" enables mouse support
set mouse=a
" fixes Windows keyboard's number pad problem
imap <Esc>Oq 1
imap <Esc>Or 2
imap <Esc>Os 3
imap <Esc>Ot 4
imap <Esc>Ou 5
imap <Esc>Ov 6
imap <Esc>Ow 7
imap <Esc>Ox 8
imap <Esc>Oy 9
imap <Esc>Op 0
imap <Esc>On .
imap <Esc>OR *
imap <Esc>OQ /
imap <Esc>Ol +
imap <Esc>OS -
" doesn't fold by default
set nofoldenable
" makes able to edit Japanese files
set encoding=utf-8
set fileencodings=iso-2022-jp,euc-jp,sjis,utf-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment