Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159" ##############################################################################" vim/vimrc - Vim configuration" ##############################################################################
" Pathogen needs to run firstexecute pathogen#infect()
" General Settings {{{set nocompatible " Disable vi-compatible modeset hidden " Switch buffers without savingset nobackup " Disable backup filesset noerrorbells " Don't make noise on errorsset shortmess+=I " Do not show welcome screenset title " Update window title
let mapleader="," " Map the <Leader> key so plugins work properly
set clipboard=unnamedplus " Use X11 clipboard for + register" }}}
" Color Settings {{{set t_Co=256 " Use 256 colors
if $TERM =~ "256color" || $TERM == "xterm-termite" || $TERM == "alacritty" || has('gui_running') || has('nvim') colorscheme zenburnendif" }}}
" GUI Settings {{{set guifont=DejaVu\ Sans\ Mono:h24
if has("gui_running") set guioptions-=t " Disable tear-off menus
set guioptions-=m " Disable menubar set guioptions-=T " Disable toolbar
set guioptions+=LlRrb set guioptions-=LlRrb " Disable scrollbars
set mousemodel=popup " Enable right click menu
" Window size set columns=100 set lines=40endif" }}}
" Editing {{{set backspace=indent,eol,start " Make backspace key behave normallyset noinsertmode " Don't stay in insert modeset spell " Enable spell checkingset spellfile=~/.dotfiles/vim/spell/spell.add
set cursorline " Highlight current lineset number " Show line numbers
set showmatch " Highlight matching pairsset matchpairs+=<:> " Make < and > match
set pastetoggle=<F2> " Toggle paste mode (no automatic indents)
set colorcolumn=80 " Show a line to indicate the line width
" Automatic formatting; auto-wrap text, comments; automatically insert current" comment leader when hitting enter in insert mode allow formatting of" comments with gq; recognize listsset formatoptions+=tcrqn" }}}
" Indentation {{{set autoindent " Automatic indentation on new linesset copyindent " Copy existing indentation structure on autoindentset preserveindent " Preserve indentation structure for existing linesset smartindent " Smart indentation based on typed codeset smarttab " Tabs based on shiftwidth, not tabstopset cindent " Automatically indent code
set expandtab " Use spaces instead of tabs
" Tab widthset softtabstop=0set tabstop=4set shiftwidth=4" }}}
" Folding {{{if has('folding') set foldenable " Enable folding set foldmethod=marker " Fold on marker set foldopen-=search " Do not open folds when searching set foldopen-=undo " Do not open folds when using undo "set foldlevel=999 " Show folds at start set foldmarker={{{,}}} " Use default fold marker set foldcolumn=0 " Do not use a fold columnendif" }}}
" File formats and syntax highlighting {{{" Unicode supportset encoding=utf-8
" Support UNIX, DOS, and Mac line endingsset fileformats=unix,dos,mac
" Enable filetype auto-detectionfiletype plugin on
" Enable filetype-specific indentationfiletype plugin indent on
" Syntax highlightingsyntax enable
" Highlight HTML code inside of PHPlet php_htmlInStrings=1
" Highlight MySQL queries inside of PHPlet php_sql_query=1" }}}
" Searching {{{" Highlight resultsset hlsearch
" Ignore case unless token contains uppercaseset ignorecaseset smartcase" }}}
" Plugins {{{
" NERDTree {{{" Have NERDTree change directory when we dolet g:NERDTreeChDirMode = 2
" Highlight selected entry in treelet g:NERDTreeHighlightCursorline = 1
" Show hidden fileslet NERDTreeShowFiles=1let NERDTreeShowHidden=1
" Don't display files we don't need to seelet NERDTreeIgnore=[ '\.pyc$', '\.pyo$', '\.py\$class$', '\.obj$', '\.o$', '\.so$', '\.egg$', '^\.git$' , '\.swp$' ]
nmap <leader>n :NERDTreeClose<CR>:NERDTreeToggle<CR>nmap <leader>N :NERDTreeClose<CR>" }}}
" SnipMate {{{let g:snips_author ='mutantmonkey'let g:snips_email = 'mutantmonkey@mutantmonkey.in'" }}}
" }}}
autocmd BufRead,BufNewFile PKGBUILD setlocal ts=2 sw=2 et