Skip to content

Instantly share code, notes, and snippets.

@gyorb
Last active October 13, 2016 11:39
Show Gist options
  • Select an option

  • Save gyorb/88519ac754a51dac47dd3c6d1e846327 to your computer and use it in GitHub Desktop.

Select an option

Save gyorb/88519ac754a51dac47dd3c6d1e846327 to your computer and use it in GitHub Desktop.
minimal vimrc
set nocompatible
set nu
set nuw=1
set autoread
set t_Co=256
set background=dark
colorscheme elflord
syntax enable
filetype on
filetype indent on
filetype plugin on
set ttimeout
set ttimeoutlen=0
set notimeout
set noswapfile
set nobackup
set nowb
set history=2000
set hidden
set title
set scrolloff=5
set backspace=indent,eol,start
set whichwrap+=<,>,h,l
"set list listchars=tab:>.,trail:.,extends:#,nbsp:.
set fillchars=vert:\|
let mapleader=" "
let g:mapleader=" "
map <leader>j <C-W>j
map <leader>k <C-W>k
map <leader>l <C-W>l
map <leader>h <C-W>h
map <leader>o :Ex<cr>
nnoremap <leader>b :buffers<CR>:buffer<Space>
nnoremap j gj
nnoremap k gk
nnoremap * *``
set showcmd
set showmatch
set incsearch
set hlsearch
set autoindent
set showcmd
set expandtab " use spaces instead of tabs
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
au FileType Makefile set noexpandtab
set laststatus=2
" Format the statusline
set statusline=
set statusline+=%m " Modified flag
set statusline+=\[%n] " Buffernr
set statusline+=\ %t\ " FileName
set statusline+=\ %=\
set statusline+=\%Y\ " FileType
set statusline+=\[%{''.(&fenc!=''?&fenc:&enc).''}] " Encoding
set statusline+=\ L:%L\ " Total rownumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment