-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c5b2ef5
Showing
6 changed files
with
242 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bundle/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
let g:netrw_dirhistmax =10 | ||
let g:netrw_dirhist_cnt =0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
" Vim color file | ||
" | ||
" Author: Federico Ramirez | ||
" https://github.com/gosukiwi/vim-atom-dark | ||
" | ||
" Note: Based on the Monokai theme variation by Tomas Restrepo | ||
" https://github.com/tomasr/molokai | ||
|
||
hi clear | ||
|
||
if version > 580 | ||
" no guarantees for version 5.8 and below, but this makes it stop | ||
" complaining | ||
hi clear | ||
if exists("syntax_on") | ||
syntax reset | ||
endif | ||
endif | ||
let g:colors_name="atom-dark" | ||
|
||
hi Boolean guifg=#99CC99 | ||
hi Character guifg=#A8FF60 | ||
hi Number guifg=#99CC99 | ||
hi String guifg=#A8FF60 | ||
hi Conditional guifg=#92C5F7 gui=none | ||
hi Constant guifg=#99CC99 gui=none | ||
hi Cursor guifg=#F1F1F1 guibg=#777777 | ||
hi iCursor guifg=#F1F1F1 guibg=#777777 | ||
hi Debug guifg=#BCA3A3 gui=none | ||
hi Define guifg=#66D9EF | ||
hi Delimiter guifg=#8F8F8F | ||
hi DiffAdd guibg=#13354A | ||
hi DiffChange guifg=#89807D guibg=#4C4745 | ||
hi DiffDelete guifg=#960050 guibg=#1E0010 | ||
hi DiffText guibg=#4C4745 gui=none | ||
|
||
hi Directory guifg=#AAAAAA gui=none | ||
hi Error guifg=#A8FF60 guibg=#1E0010 | ||
hi ErrorMsg guifg=#92C5F7 guibg=#232526 gui=none | ||
hi Exception guifg=#DAD085 gui=none | ||
hi Float guifg=#99CC99 | ||
hi FoldColumn guifg=#465457 guibg=#000000 | ||
hi Folded guifg=#465457 guibg=#000000 | ||
hi Function guifg=#DAD085 | ||
hi Identifier guifg=#B6B7EB | ||
hi Ignore guifg=#808080 guibg=bg | ||
hi IncSearch guifg=#C4BE89 guibg=#000000 | ||
|
||
hi Keyword guifg=#92C5F7 gui=none | ||
hi Label guifg=#A8FF60 gui=none | ||
hi Macro guifg=#C4BE89 gui=none | ||
hi SpecialKey guifg=#66D9EF gui=none | ||
|
||
hi MatchParen guifg=#B7B9B8 guibg=#444444 gui=none | ||
hi ModeMsg guifg=#A8FF60 | ||
hi MoreMsg guifg=#A8FF60 | ||
hi Operator guifg=#92C5F7 | ||
|
||
" complete menu | ||
hi Pmenu guifg=#66D9EF guibg=#000000 | ||
hi PmenuSel guibg=#808080 | ||
hi PmenuSbar guibg=#080808 | ||
hi PmenuThumb guifg=#66D9EF | ||
|
||
hi PreCondit guifg=#DAD085 gui=none | ||
hi PreProc guifg=#DAD085 | ||
hi Question guifg=#66D9EF | ||
hi Repeat guifg=#92C5F7 gui=none | ||
hi Search guifg=#000000 guibg=#B4EC85 | ||
" marks | ||
hi SignColumn guifg=#DAD085 guibg=#232526 | ||
hi SpecialChar guifg=#92C5F7 gui=none | ||
hi SpecialComment guifg=#7C7C7C gui=none | ||
hi Special guifg=#66D9EF guibg=bg gui=none | ||
if has("spell") | ||
hi SpellBad guisp=#FF0000 gui=undercurl | ||
hi SpellCap guisp=#7070F0 gui=undercurl | ||
hi SpellLocal guisp=#70F0F0 gui=undercurl | ||
hi SpellRare guisp=#FFFFFF gui=undercurl | ||
endif | ||
hi Statement guifg=#92C5F7 gui=none | ||
hi StatusLine guifg=#455354 guibg=fg gui=none | ||
hi StatusLineNC guifg=#808080 guibg=#080808 | ||
hi StorageClass guifg=#B6B7EB gui=none | ||
hi Structure guifg=#66D9EF | ||
hi Tag guifg=#92C5F7 gui=none | ||
hi Title guifg=#B6B7EB gui=none | ||
hi Todo guifg=#FFFFFF guibg=bg gui=none | ||
|
||
hi Typedef guifg=#66D9EF | ||
hi Type guifg=#66D9EF gui=none | ||
hi Underlined guifg=#808080 gui=underline | ||
|
||
hi VertSplit guifg=#808080 guibg=#080808 | ||
hi VisualNOS guibg=#403D3D | ||
hi Visual guibg=#403D3D | ||
hi WarningMsg guifg=#FFFFFF guibg=#333333 | ||
hi WildMenu guifg=#66D9EF guibg=#000000 | ||
|
||
hi TabLineFill guifg=#1D1F21 guibg=#1D1F21 | ||
hi TabLine guibg=#1D1F21 guifg=#808080 gui=none | ||
|
||
hi Normal guifg=#F8F8F2 guibg=#1D1F21 | ||
hi Comment guifg=#7C7C7C | ||
hi CursorLine guibg=#293739 | ||
hi CursorLineNr guifg=#B6B7EB gui=none | ||
hi CursorColumn guibg=#293739 | ||
hi ColorColumn guifg=#B62323 guibg=#232526 | ||
hi LineNr guifg=#465457 guibg=#232526 | ||
hi NonText guifg=#465457 | ||
hi SpecialKey guifg=#465457 | ||
|
||
" Must be at the end, because of ctermbg=234 bug. | ||
" https://groups.google.com/forum/#!msg/vim_dev/afPqwAFNdrU/nqh6tOM87QUJ | ||
set background=dark | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
filetype off " required | ||
|
||
"Set the runtime path to include Vundle and initialize. | ||
set rtp+=$HOME/vimfiles/bundle/Vundle.vim/ | ||
call vundle#begin('$HOME/vimfiles/bundle/') | ||
|
||
Plugin 'VundleVim/Vundle.vim' | ||
Plugin 'tpope/vim-vinegar' | ||
Plugin 'scrooloose/nerdtree' | ||
Plugin 'ctrlpvim/ctrlp.vim' | ||
Plugin 'tobyS/vmustache' | ||
Plugin 'tobyS/pdv' | ||
|
||
" All of your Plugins must be added before the following line | ||
call vundle#end() " required | ||
filetype plugin indent on " required |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is just my "vimfiles" folder for my gVim in a Windows machine. It's nice having it under version control. Hopefully it will improve as I learn more. | ||
|
||
My real .vimrc is just outside this folder and it just references the vimrc file like this: | ||
|
||
runtime vimrc |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
"We want the latest Vim settings/options. | ||
set nocompatible | ||
"Source the plugins file. | ||
so $HOME/vimfiles/plugins.vim | ||
"Enable syntax highlighting. | ||
syntax enable | ||
"Make backspace behave like every other editor. | ||
set backspace=indent,eol,start | ||
"The default is \, but a comma is much better. | ||
let mapleader=',' | ||
|
||
"--------------Indentation---------------" | ||
filetype plugin indent on | ||
"Show existing tab with 4 spaces width. | ||
set tabstop=4 | ||
"When indenting with '>', use 4 spaces width. | ||
set shiftwidth=4 | ||
"On pressing tab, insert 4 spaces. | ||
set expandtab | ||
|
||
"-----------------Visuals----------------" | ||
"Apply the atom-dark colorscheme. | ||
colorscheme atom-dark | ||
"Use 256 colors. This is useful for Terminal Vim. | ||
set t_CO=256 | ||
"Let's activate line numbers. | ||
set number | ||
"Set font type and font size. | ||
set guifont=Fira_Code:h17 | ||
"Graphical Vim specific line-height. | ||
set linespace=15 | ||
"Hide the left and right scrollbars on windows and splits | ||
set guioptions-=l | ||
set guioptions-=L | ||
set guioptions-=r | ||
set guioptions-=R | ||
|
||
"-----------------Search-----------------" | ||
"Highlight search result(s). | ||
set hlsearch | ||
"Search incrementally. | ||
set incsearch | ||
"Ignore case. | ||
set ignorecase | ||
|
||
"------------Split Management------------" | ||
"I prefer to open new splits below and to the right. | ||
set splitbelow | ||
set splitright | ||
"I don't want to have to press <C-W> to move between splits. | ||
nmap <C-H> <C-W><C-H> | ||
nmap <C-J> <C-W><C-J> | ||
nmap <C-K> <C-W><C-K> | ||
nmap <C-L> <C-W><C-L> | ||
"----------------Mappings----------------" | ||
"Make it easy to edit the Vimrc file. | ||
nmap <Leader>ev :tabedit $MYVIMRC<cr> | ||
"Clear the highlighted search. | ||
nmap <Leader><space> :nohlsearch<cr> | ||
"Activate/deactivate full screen with function key <F11>. | ||
map <F11> <Esc>:call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0)<CR> | ||
"Make NERDTree easier to toggle. | ||
nmap <A-1> :NERDTreeToggle<cr> | ||
"Make CtrlP search for tags/symbols. | ||
nmap <c-R> :CtrlPBufTag<cr> | ||
"Make CtrlP show Most Recently Used files. | ||
nmap <A-e> :CtrlPMRUFiles<cr> | ||
"Make PDV generate the dock block using the templates from the template | ||
"directory. | ||
nmap <Leader>pd :call pdv#DocumentCurrentLine()<cr> | ||
"Fix PSR-2 in the current file. | ||
nmap <Leader>p2 :!php-cs-fixer fix "%" --level=psr2<cr> | ||
"-------------Plugins--------------" | ||
"/ | ||
"/ CtrlP | ||
"/ | ||
"We don't want to look into these folders. | ||
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git' | ||
"Display CtrlP at the top, sort top to bottom, 30 results. | ||
let g:ctrlp_match_window = 'top,order:ttb,min:1,max:30,results:30' | ||
let g:pdv_template_dir = $HOME ."/vimfiles/bundle/pdv/templates" | ||
"Use git for searches, and ignore what's already in the .gitignore | ||
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'] | ||
"/ | ||
" NERDTree | ||
"/ | ||
"I want to use Vinegar for netrw, not NERDTree | ||
let NERDTreeHijackNetrw = 0 | ||
|
||
"--------------Auto-Commands--------------" | ||
"Automatically source the Vimrc file on save. | ||
augroup autosourcing | ||
autocmd! | ||
autocmd BufWritePost .vimrc source % | ||
augroup END | ||
"I think this loads the full screen plugin or something. | ||
augroup fullscreen | ||
autocmd! | ||
autocmd VimEnter * call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0) | ||
augroup END |