Skip to content

Instantly share code, notes, and snippets.

@dino-su
Created July 4, 2016 07:24
Show Gist options
  • Select an option

  • Save dino-su/7ab628a38cc12a4989a9e50c4e359b48 to your computer and use it in GitHub Desktop.

Select an option

Save dino-su/7ab628a38cc12a4989a9e50c4e359b48 to your computer and use it in GitHub Desktop.
" enable syntax highlighting
if has("syntax")
syntax on
endif
" remember the last edited position
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
autocmd BufRead,BufNewFile *.jade setlocal ft=jade
endif
" recommended settings
set background=dark " using a dark background
set t_Co=256 " use 256 colors
set showcmd " show command in the last line of the screen.
set ignorecase " do case insensitive matching
set smartcase " do smart case matching
set incsearch " incremental search
set hlsearch " highlight search
set autowrite " automatically save before commands like :next and :make
set hidden " hide buffers when they are abandoned
set number " show line number
set ruler " show the line and column number of the cursor position
set scrolloff=5 " minimal number of screen lines to keep
" Indent
set autoindent " copy indent from current line when starting a new line
set smartindent " do smart autoindenting when starting a new line
set tabstop=8 " number of spaces that a <Tab> in the file counts for
set softtabstop=4 " Number of spaces that a <Tab> counts for while performing editing operations
set shiftwidth=4
set expandtab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment