Skip to content

Instantly share code, notes, and snippets.

@Gronghon
Last active December 19, 2015 14:29
Show Gist options
  • Save Gronghon/5969308 to your computer and use it in GitHub Desktop.
Save Gronghon/5969308 to your computer and use it in GitHub Desktop.
my default .vimrc
set enc=utf-8
setglobal fileencoding=utf-8
set encoding=utf-8
set t_Co=256
set showmatch " show matching bracket (briefly jump)
set showmode " show mode in status bar (insert/replace/...)
set showcmd " show typed command in status bar
set ruler " show cursor position in status bar
set title " show file in titlebar
set wildmenu " completion with menu
set confirm " get a dialog when :q, :w, or :wq fails
set wildignore=*.o,*.obj,*.bak,*.exe,*.py[co],*.swp,*~,*.pyc,.svn
set laststatus=2 " use 2 lines for the status bar
"set lines=50
"set columns=160
set history=300
set tabstop=4
set softtabstop=4
set shiftwidth=4 "Indent by 4 spaces when using >>, <<, == etc.
set number
set noexpandtab "Use softtabstop spaces instead of tab characters for indentation
set ignorecase
set incsearch
set autochdir
"set cursorline
set backspace=2
set nohidden
set linespace=3
set autoindent "Keep indentation from previous line
set smartindent "Automatically inserts indentation in some cases
set cindent "Like smartindent, but stricter and more customisable
set nowrap
set list
set list listchars=tab:\|\ ,trail:.
set noswapfile " disable creation of swap files
set nowritebackup " no back ups wwhile editing
set nobackup
"set backupdir=~/.vimtmp
"set directory=~/.vimtmp
"map <Left> <Nop>
"map <Right> <Nop>
"map <Up> <Nop>
"map <Down> <Nop>
syntax on
"colorscheme delek " /usr/share/vim/vim73/colors/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment