Skip to content

Instantly share code, notes, and snippets.

@hieuvo
Created December 13, 2016 04:01
Show Gist options
  • Save hieuvo/bb0bd31d54db8064f35bb7e47ee4b3d4 to your computer and use it in GitHub Desktop.
Save hieuvo/bb0bd31d54db8064f35bb7e47ee4b3d4 to your computer and use it in GitHub Desktop.
syntax enable
set path=$PWD/**
filetype plugin indent on
set background=dark
colorscheme monokai
colors koehler
autocmd FileType crontab setlocal nowritebackup
set nocompatible
set number
set modelines=0
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set so=999
set encoding=utf-8
set scrolloff=50
set autoindent
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set cursorline
set ttyfast
set ruler
set backspace=indent,eol,start
set laststatus=2
set undofile
let mapleader = ","
nnoremap / /\v
vnoremap / /\v
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
nnoremap <leader><space> :noh<cr>
nnoremap <tab> %
vnoremap <tab> %
set nowrap
set textwidth=79
set formatoptions=qrn1
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>
nnoremap j gj
nnoremap k gk
inoremap jj <ESC>
set statusline= " clear the statusline for when vimrc is reloaded
set statusline+=%-3.3n\ " buffer number
set statusline+=%f\ " file name
set statusline+=%h%m%r%w " flags
set statusline+=[%{strlen(&ft)?&ft:'none'}, " filetype
set statusline+=%{strlen(&fenc)?&fenc:&enc}, " encoding
set statusline+=%{&fileformat}] " file format
set statusline+=%= " right align
set statusline+=%{synIDattr(synID(line('.'),col('.'),1),'name')}\ " highlight
set statusline+=%b,0x%-8B\ " current char
set statusline+=%-14.(%l,%c%V%)\ %<%P
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment