Skip to content

Instantly share code, notes, and snippets.

@tilacog
Last active April 9, 2016 14:49
Show Gist options
  • Save tilacog/bdcde2cd819417421ed4 to your computer and use it in GitHub Desktop.
Save tilacog/bdcde2cd819417421ed4 to your computer and use it in GitHub Desktop.
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
syntax on
set t_Co=256
colorscheme badwolf
map <F7> :tabp<CR>
map <F8> :tabn<CR>
set splitbelow
set splitright
" display line numbers
set nu!
" When you type the first tab hit will complete as much as possible,
" the second tab hit will provide a list, the third and subsequent tabs
" will cycle through completion options so you can complete the file
" without further keys
set wildmode=longest,list,full
set wildmenu
" Python indent
" -------------
set foldmethod=indent
set foldnestmax=2
set foldlevelstart=99
nnoremap <space> za
vnoremap <space> zf
" Statusline
" ----------
set statusline=%t "tail of the filename
set statusline+=[%{strlen(&fenc)?&fenc:'none'}] "file encoding
set statusline+=%h "help file flag
set statusline+=%m "modified flag
set statusline+=%r "read only flag
set statusline+=%y "filetype
set statusline+=%= "left/right separator
set statusline+=%c, "cursor column
set statusline+=%l/%L "cursor line/total lines
set laststatus=2 " always display the status line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment