Created
April 26, 2017 15:53
-
-
Save bertoort/e5b7b812da29f176cefecd937f0fa0aa to your computer and use it in GitHub Desktop.
Starter .vimrc file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Main Configuration | |
let mapleader="\<Space>" | |
syntax on | |
set shell=bash | |
set number | |
set hlsearch | |
filetype off | |
filetype plugin indent on | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set noswapfile | |
set nobackup | |
set clipboard^=unnamed | |
set clipboard^=unnamedplus | |
"No arrow keys to practice with hjkl | |
nnoremap <up> <nop> | |
nnoremap <down> <nop> | |
nnoremap <left> <nop> | |
nnoremap <right> <nop> | |
inoremap <up> <nop> | |
inoremap <down> <nop> | |
inoremap <left> <nop> | |
inoremap <right> <nop> | |
"Productivity | |
inoremap jj <ESC> | |
noremap <leader>s :w<CR> | |
nnoremap <leader>w :wq<CR> | |
nnoremap <leader>fq :q!<CR> | |
nnoremap <leader>u <C-r> | |
nnoremap <leader>o :noh<CR> | |
"Bottom bar settings | |
set noruler | |
set laststatus=2 | |
set statusline=%<\ %f\ %m%y%=%-35.(Line:\ %l\ of\ %L,\ Col:\ %c%V\ (%P)%) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment