Skip to content

Instantly share code, notes, and snippets.

@artronics
Created January 19, 2019 17:58
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 artronics/d2496c345a6d2209b5fd200743f064a7 to your computer and use it in GitHub Desktop.
Save artronics/d2496c345a6d2209b5fd200743f064a7 to your computer and use it in GitHub Desktop.
set nocompatible
filetype plugin indent on
syntax on
"Colorscheme
set background=dark
"""""""""""" Key Map
imap jj <Esc>
" shortcut to save
nmap <leader>, :w<cr>
set pastetoggle=<F2>
nmap <CR> o<Esc>
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
"inoremap <up> <nop>
"inoremap <down> <nop>
"inoremap <left> <nop>
"inoremap <right> <nop>
"""""""""""" General
let mapleader = ","
set nowrap " don't wrap lines
set backspace=indent,eol,start " allow backspacing over everything in insert mode
set backspace=2 " make backspace work like most other apps
set autoindent " always set autoindenting on
set smartindent
set copyindent " copy the previous indentation on autoindenting
"Setting related to tab
set tabstop=4 shiftwidth=4 expandtab
set softtabstop=4 " makes the spaces feel like real tabs
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
"Search related conf also look ~/.vim/vimrc/search-keybindings.vim
set showmatch " set show matching parenthesis
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase,
set nolazyredraw " don't redraw while executing macros
set hlsearch " highlight search terms
set incsearch " show search matches as you type
set history=1000 " remember more commands and search history
set undolevels=1000 " use many muchos levels of undo
set wildignore=*.swp,*.bak,*.pyc,*.class
set title " change the terminal's title
set visualbell " don't beep
set noerrorbells " don't beep
set scrolloff=7 "when jumping makes at least 7 lines from top and bottom
set mouse=a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment