Last active
March 8, 2017 14:32
-
-
Save mrosati84/0d85ed8eb421666ab391 to your computer and use it in GitHub Desktop.
My .vimrc file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute pathogen#infect() | |
syntax on | |
set ruler " show the line number on the bar | |
set more " use more prompt | |
set autoread " watch for file changes | |
set number " line numbers | |
set autoindent smartindent " auto/smart indent | |
set smarttab " tab and backspace are smart | |
filetype on " Enable filetype detection | |
filetype indent on " Enable filetype-specific indenting | |
filetype plugin on " Enable filetype-specific plugins | |
set incsearch " incremental search | |
set ignorecase " search ignoring case | |
set hlsearch " highlight the search | |
set showmatch " show matching bracket | |
set tabstop=2 " 6 spaces | |
set shiftwidth=2 | |
set scrolloff=5 " keep at least 5 lines above/below | |
set linespace=7 | |
set clipboard=unnamed | |
map <C-n> :NERDTreeToggle<CR> | |
map <Leader>n <plug>NERDTreeTabsToggle<CR> | |
vmap <C-c> :w !pbcopy<CR><CR> | |
if has("gui_running") | |
set guifont=Terminus\ (TTF):h14 | |
endif | |
if has("autocmd") | |
" Drupal *.module and *.install files. | |
augroup module | |
autocmd BufRead,BufNewFile *.module set filetype=php | |
autocmd BufRead,BufNewFile *.install set filetype=php | |
autocmd BufRead,BufNewFile *.test set filetype=php | |
autocmd BufRead,BufNewFile *.inc set filetype=php | |
autocmd BufRead,BufNewFile *.profile set filetype=php | |
autocmd BufRead,BufNewFile *.view set filetype=php | |
augroup END | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment