32 lines
1.1 KiB
VimL
32 lines
1.1 KiB
VimL
inoremap jk <ESC>
|
|
let mapleader = "\<SPACE>"
|
|
filetype plugin indent on
|
|
set encoding=utf-8
|
|
|
|
syntax enable " enable syntax processing
|
|
set tabstop=4 " number of visual spaces per TAB
|
|
set softtabstop=4 " number of spaces in tab when editing
|
|
set expandtab " tabs are spaces
|
|
set showcmd " show command in bottom bar
|
|
set cursorline " highlight current line
|
|
set wildmenu " visual autocomplete for command menu
|
|
set lazyredraw " redraw only when we need to.
|
|
set showmatch " highlight matching [{()}]
|
|
set incsearch " search as characters are entered
|
|
set hlsearch " highlight matches
|
|
set hidden " switch buffers without saving
|
|
set ignorecase smartcase " smart case search
|
|
set scrolloff=8 " keep 8 lines visible above/below cursor
|
|
set undofile " persistent undo across sessions
|
|
set undodir=~/.vim/undo//
|
|
set directory=~/.vim/swap//
|
|
set backupdir=~/.vim/backup//
|
|
set nobackup
|
|
set mouse=a " mouse support
|
|
|
|
|
|
noremap <Up> <NOP>
|
|
noremap <Down> <NOP>
|
|
noremap <Left> <NOP>
|
|
noremap <Right> <NOP>
|