" ____________________________________________________________________________________________________________________________________ " | :::::::::::::::. :::. :::.:::. :::. :::. :::. :::.:: .::::::. ::: .::.:::. : :::::::.. .,-::::: | " | ;;;;;;;;'''';;`;; `;;;;, `;;;`;;;;, `;;; ;;`;; `;;;;, `;;;,';;;` ` ';;, ,;;;' ;;;;;,. ;;; ;;;;``;;;; ,;;;'````' | " | [[ ,[[ '[[, [[[[[. '[[ [[[[[. '[[ ,[[ '[[, [[[[[. '[[ '[==/[[[[, \[[ .[[/ [[[[[[[, ,[[[[, [[[,/[[[' [[[ | " | $$ c$$$cc$$$c $$$ 'Y$c$$ $$$ 'Y$c$$c$$$cc$$$c $$$ 'Y$c$$ ''' $ Y$c.$$" $$$$$$$$$$$"$$$ $$$$$$c $$$ | " | 88, 888 888,888 Y88 888 Y88 888 888,888 Y88 88b dP Y88P 888888 Y88" 888o888b "88bo,`88bo,__,o,| " ------------------------------------------------------------------------------------------------------------------------------------ " "links to Plugin data " lightline.vim: https://github.com/itchyny/lightline.vim " neocomplcache.vim: https://github.com/Shougo/neocomplcache.vim.git " nerdtree: https://github.com/scrooloose/nerdtree " undotree: https://github.com/mbbill/undotree " vim-autoclose: https://github.com/Townk/vim-autoclose.git " vim-sensible: https://github.com/tpope/vim-sensible " vim-surround: https://github.com/tpope/vim-surround syntax enable "enables syntax highlighting set number "enables line numbers to be relitive to the cursor set nowrap "disables wrapping of lines by default, to change so text wraps: 'set wrap' set foldmethod=syntax "Color stuff let g:solarized_termcolors=256 set background=dark "can be set to 'dark' or 'light' colorscheme solarized "name of colorscheme located in ~/.vim/colors/ execute pathogen#infect() filetype plugin indent on "enables use of additional commands based on filetype in ~/.vim/after/ftplugin "Auto completion inoremap pumvisible() ? "\" : "\" let g:neocomplcache_enable_at_startup=1 "enables neocomplcache on startup let g:neocomplcache_enable_ignore_case=1 "Ignore UPPER/lower case when inputing let g:neocomplcache_min_syntax_length=4 "how long input must be before neocomplcache starts let g:neocomplcache_enable_auto_select=1 "auto select first option, enables use of '' for completion let g:lightline={'colorscheme': 'solarized_dark'} "adds colorscheme to info bar "Other decent colorschemes: solarized_light, PaperColor, powerline "NERDTree map to , '\' map :NERDTreeToggle map \ :NERDTreeToggle autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif "Close if only window up let g:NERDTreeDirArrowExpandable = '>' "Changes Expandable 'char' to be en_us friendly let g:NERDTreeDirArrowCollapsible = '<' "Changes Collapsible 'char' to be en_us friendly let g:NERDTreeShowBookmarks=1 "NERDTree will show bookmarks by default let g:NERDTreeMinimalUI=1 "Minimalistic UI for cleaner look autocmd VimEnter * NERDTree | wincmd p "switches foucus to window open instead of NERDTree on toggle "Undotree map :UndotreeToggle let g:undotree_WindowLayout = 3 "Layout selected, check docs for more information on this let g:undotree_SplitWidth = 20 "Width of window on open let g:undotree_DiffAutoOpen = 0 "Set to not open differences on open (In undo tree press 'D') let g:undotree_SetFocusWhenToggle = 1 "Set to auto foucus cursor on window open "eazy file resizing window size to [CTRL] + (h,j,k,l) if bufwinnr(1) map > map < map - map + endif "maps 'L', 'H' to to change windows faster map L l map H h map :AutoCloseToggle "vim-autoclose" " This plugin helps with surrounding input. " Example: " Typed: "Hello, (Your name here! " Output: "Hello, (Your name here!)" " " "vim-sensible" " Plugin of many internal vim settings that help make everything work " better together. " Note: " documentation: ~/.vim/bundle/vim-sensible/README.markdown " "vim-surround" " Plugin to change "", (), '', , ect... really fast; " commands: " NOTE: 't' for tag_only " 'cs[matched_char][new_pattern]' | "hello" ->> ( hello ) " 'cst[new_pattern]' | hello ->> " hello " " " 'ds[matched_pattern]' | "hello" ->> hello " 'dst' | hello ->> hello " " NOTE: iw 'text object' " 'ysiw[new_pattern]' | "hello" ->> ""hello"" " 'yss[new_pattern]' | wraps whole line is new_pattern " 'yssb' | wrap whole line in () " " NOTE: in visual mode or visual block select mode. " 'S' | hello ->> hello " | hello hello " | hello hello " | hello hello " | hello hello " " Examples: " Starting text: "Hello, World!" " NOTE: Assuming cursor is between quotes. " Input: cs"( " Output: ( Hello, World! ) " Input: cs( " Output: Hello, World! " Input: cst" " Output: "Hello, World!" " Input: ds" " Output: Hello, World! " " NOTE: Assuming cursor is on top of the word 'hello' " Input: ysiw " Output: "Hello, World!" " Input: dst " Output: "Hello, World!" " "