From a86446df9ba5ffb86d99c511217d704736803f3f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 13 Jan 2013 15:49:12 -0200 Subject: Initial import --- modules/vim/gvimrc | 18 ++++++++++++++++ modules/vim/vimrc | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 modules/vim/gvimrc create mode 100644 modules/vim/vimrc (limited to 'modules/vim') diff --git a/modules/vim/gvimrc b/modules/vim/gvimrc new file mode 100644 index 0000000..5f722fd --- /dev/null +++ b/modules/vim/gvimrc @@ -0,0 +1,18 @@ +" GVIM Configuration +set background=light +set mouse=a + +" GVIM IDE Configuration +set nocompatible " must be the first line +filetype on +filetype indent on +filetype plugin on +set laststatus=2 +set statusline=%<%f\%h%m%r%=%-20.(line=%l\ \ col=%c%V\ \ totlin=%L%)\ \ \%h%m%r%=%-40(bytval=0x%B,%n%Y%)\%P +set nu + +" Change to the current file's folder +map cd :cd %:p:h>cr< + +" Font configuration +set gfn=Monospace\ 8 diff --git a/modules/vim/vimrc b/modules/vim/vimrc new file mode 100644 index 0000000..c4f3c22 --- /dev/null +++ b/modules/vim/vimrc @@ -0,0 +1,61 @@ +syn on +set nonu + +set background=dark +set nobackup +set nowritebackup + +set noautoindent +"set smartindent +set tabstop=2 +set shiftwidth=2 +set expandtab +set mouse-=a +set autoread +set nocompatible + +set title +set titleold="terminal" +set titlestring=vim:\ %F + +" Folding +set foldmethod=syntax +let php_folding = 1 +let g:sh_fold_enabled = 1 + +" PHP +let php_sql_query = 1 + +au BufNewFile,BufRead *.thtml setfiletype php +au BufNewFile,BufRead *.mdwn set ft=ikiwiki +au BufNewFile,BufRead *.rem set ft=remind + +augroup mkd + autocmd BufRead *.mkd set ai formatoptions=tcroqn2 comments=n:> +augroup END + +if has("autocmd") + " Drupal *.module and *.install files. + augroup module + autocmd BufRead,BufNewFile *.profile set filetype=php + autocmd BufRead,BufNewFile *.module set filetype=php + autocmd BufRead,BufNewFile *.install set filetype=php + autocmd BufRead,BufNewFile *.test set filetype=php + augroup END +endif + +" Pathogen - https://github.com/tpope/vim-pathogen +call pathogen#infect() + +" NERDTree section +" Thanks to http://stackoverflow.com/questions/1447334/how-do-you-add-nerdtree-to-your-vimrc + +"autocmd VimEnter * NERDTree +"autocmd VimEnter * wincmd p + +function OpenNERDTree() + execute ":NERDTree" + endfunction + command -nargs=0 OpenNERDTree :call OpenNERDTree() + + nmap t :OpenNERDTree -- cgit v1.2.3