Skip to content

Instantly share code, notes, and snippets.

@zaa
Created September 2, 2016 05:08
Show Gist options
  • Save zaa/883ca2667eab47df1cd996dd12b3232a to your computer and use it in GitHub Desktop.
Save zaa/883ca2667eab47df1cd996dd12b3232a to your computer and use it in GitHub Desktop.
if v:progname =~? "evim"
finish
endif
set nocompatible
set backspace=indent,eol,start
set ai
set complete=.,t,w
set history=50
set incsearch
set laststatus=2
set modelines=10
set nobackup
set ruler
set scrolloff=3
set showcmd
set showmatch
set spelllang=en_us
set statusline=%<%f%h%m%r%=%l,%c%V\ %P
set title
set vb
set wildignore+=*.beam,*.class,*.pyc,*.zip,*.tar,*.gz,*.jar
set winminheight=0
if &t_Co > 2 || has("gui_running")
syntax on
colorscheme azwhite2
set completeopt=longest,menu
set wildmode=list:longest,list:full
set hlsearch
endif
if has("gui_running")
colorscheme mustang
set number
set numberwidth=5
set fuoptions=maxvert,maxhorz
set guifont=Consolas:h13.00
endif
if has("autocmd")
filetype plugin indent on
filetype plugin on
source $VIMRUNTIME/macros/matchit.vim
autocmd FileType text setlocal textwidth=78
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
endif
let Tlist_Ctags_Cmd = "/usr/local/bin/exctags"
let mapleader = ","
" open files from netrw brower in new windows
let g:netrw_browse_split=1
map Q gq
nmap <silent> <leader>s = :set spell!<CR>
nmap <silent> <leader>g "zyiw:exe "!git grep ".@z.""<CR>
execute pathogen#infect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment