Skip to content

Instantly share code, notes, and snippets.

@userddssilva
Last active August 23, 2019 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save userddssilva/0fccc9b30fd7bd2bf7f27a7405b70759 to your computer and use it in GitHub Desktop.
Save userddssilva/0fccc9b30fd7bd2bf7f27a7405b70759 to your computer and use it in GitHub Desktop.
configures of my vim
"edit setting
"set nowrap "lines can be greater than shell width (maybe necessary to scroll horizontally
set rnu "enable relative number
set autoindent "indent new line NORMAL mode
set smartindent "indent according to text style
set tabstop=4 "tab equals 4 spaces
set shiftwidth=4 "indent new line INSERT mode
set expandtab "fill tabs with space
set encoding=utf-8
set cursorline
set mousefocus
set splitbelow
set splitright
syntax enable
"colorscheme monokai
"style - bottom line
set title "show flinename as title of status bar
" remap escape key to jk
imap jk <Esc>
" when possible cursor is in center of screen
nnoremap j jzz
nnoremap k kzz
nnoremap `` ``zz
" general settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment