Skip to content

Instantly share code, notes, and snippets.

@Alir3z4
Created November 7, 2012 12:13
Show Gist options
  • Save Alir3z4/4031123 to your computer and use it in GitHub Desktop.
Save Alir3z4/4031123 to your computer and use it in GitHub Desktop.
" -[ General behaviour ]-
" general
set nocompatible
set nowrap
syntax on
filetype plugin indent on
" search
set nohls
set incsearch
set showmatch
" identing
set autoindent
set smartindent
" command mode
set wildmenu
set wildmode=list:longest,full
" -[ Look ]-
" general
set showcmd
set showmode
set number
set colorcolumn=80
" statusline
set statusline=%<%f\ %y%h%m%r\ PWD:%{getcwd()}%=%-14.(%l,%c%V%)\ %P
set laststatus=2
" colours
"set t_Co=256
colorscheme slate
" -[ FileTypes ]-
" mail
autocmd FileType mail,human set formatoptions+=t textwidth=72
" Python stuff
autocmd FileType python let python_highlight_all = 1
autocmd FileType python let python_slow_sync = 1
autocmd FileType python set expandtab shiftwidth=4 softtabstop=4
autocmd FileType python set completeopt=preview
" PKGBUILD stuff
autocmd FileType PKGBUILD set expandtab shiftwidth=2 softtabstop=4
" sh stuff
autocmd FileType sh set expandtab shiftwidth=2 softtabstop=4
" LaTeX
autocmd Filetype tex,latex set grepprg=grep\ -nH\ $
autocmd Filetype tex,latex let g:tex_flavor = "latex"
" Common Lisp
autocmd FileType lisp let g:slimv_client='python /usr/share/vim/vimfiles/ftplugin/slimv.py -r "urxvt -T Slimv -e @p @s -l sbcl -s"'
" -[ Mappings ]-"
" Tagbar
nnoremap <silent> <F8> :TagbarToggle<CR>
inoremap <silent> <F8> <esc>:TagbarToggle<CR>a
" -[ Plugins and Scripts ]-
" taglist
let Tlist_Use_Right_Window = 1
let Tlist_Compart_Format = 1
let Tlist_Show_Menu = 1
let Tlist_Exit_OnlyWindow = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment