You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":".bash_aliases","path":".bash_aliases","contentType":"file"},{"name":".bashrc","path":".bashrc","contentType":"file"},{"name":".inputrc","path":".inputrc","contentType":"file"},{"name":".vimrc","path":".vimrc","contentType":"file"},{"name":"Linux_curated_resources.md","path":"Linux_curated_resources.md","contentType":"file"},{"name":"Perl_curated_resources.md","path":"Perl_curated_resources.md","contentType":"file"},{"name":"Python_curated_resources.md","path":"Python_curated_resources.md","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"Vim_curated_resources.md","path":"Vim_curated_resources.md","contentType":"file"},{"name":"_config.yml","path":"_config.yml","contentType":"file"}],"totalCount":10}},"fileTreeProcessingTime":17.003261,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":53597382,"defaultBranch":"master","name":"scripting_course","ownerLogin":"learnbyexample","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2016-03-10T15:56:06.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/17766317?v=4","public":true,"private":false,"isOrgOwned":false},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1459830978.0","canEdit":false,"refType":"branch","currentOid":"5afad850ca7a9ff96221d5a27530a4b50f683dd9"},"path":".vimrc","currentUser":null,"blob":{"rawLines":["\" tested on Vim version 8, some mappings work in gvim only","\" see also: https://github.com/vim/vim/blob/master/runtime/defaults.vim","set nocompatible","set backspace=indent,eol,start","set ruler","\" Ctrl-A and Ctrl-X won't treat number with leading zeros as octal","set nrformats-=octal","","","\" ----- General Settings -----","\" history limit","set history=500","\" Don't create backup files","set nobackup","\" Don't create swap files","set noswapfile","\" murphy is another theme I like","colorscheme peachpuff","\" show partial Normal mode command as they are typed on Command Line","\" show character/line/block selection in Visual mode on Command Line","set showcmd","\" some vulnerability","set nomodeline","\" syntax","syn on","","\" first tab hit will complete as much as possible","\" second tab hit will provide a list","\" third and subsequent tabs will cycle through","set wildmode=longest,list,full","","\" ----- Text and Indent Settings -----","\" No textwidth limit","set textwidth=0","\" general indent setting","set autoindent","\" use file type based Indent setting","filetype plugin indent on","\" number of characters to indent by","set shiftwidth=4","\" No. of characters for Tab key","set tabstop=4","\" Set Tab character to expand as spaces","set expandtab","\" highlight current line","set cursorline","\" add \u003c\u003e to % matchpairs ","set matchpairs+=\u003c:\u003e","\" :h matchit-install for instructions on installing plugin to match keywords with %","","\" ----- Search Settings -----","\" start searching as it is typed","set incsearch","\" Highlight search patterns","set hlsearch","\" search visually selected text","xnoremap * y/\u003cC-R\u003e\"\u003cCR\u003e","xnoremap # y?\u003cC-R\u003e\"\u003cCR\u003e","\" to always use magic mode, uncomment following 2 lines","\" nnoremap / /\\v","\" nnoremap ? ?\\v","","\" clear highlighted search text until next explicit search or n/N","\" \u003csilent\u003e - so as to not print :noh on last line when pressing space","nnoremap \u003csilent\u003e \u003cSpace\u003e :noh\u003cCR\u003e\u003cSpace\u003e","","\" ----- Custom Mappings -----","\" Map F2 key to save file in Normal mode","nnoremap \u003cF2\u003e :w\u003cCR\u003e","\" Map F2 key to save file in Insert mode","inoremap \u003cF2\u003e \u003cC-o\u003e:w\u003cCR\u003e","\" Map F3 key to save and quit file in Normal mode","nnoremap \u003cF3\u003e :wq\u003cCR\u003e","\" Map F4 key to clear file contents in Normal mode","nnoremap \u003cF4\u003e ggdG","\" Map F5 key to copy entire contents of file to clipboard","nnoremap \u003cF5\u003e :%y+\u003cCR\u003e","","\" ALT key mappings for gvim (to switch tabs similar to those in browser/terminals)","nnoremap \u003cA-1\u003e 1gt","nnoremap \u003cA-2\u003e 2gt","nnoremap \u003cA-3\u003e 3gt","nnoremap \u003cA-4\u003e 4gt","nnoremap \u003cA-5\u003e 5gt","","\" Ctrl+f to move to end of word","inoremap \u003cC-f\u003e \u003cEsc\u003eea","\" Ctrl+b to move to beginning of word","inoremap \u003cC-b\u003e \u003cC-Left\u003e","\" Ctrl+a to move to end of line","inoremap \u003cC-a\u003e \u003cEnd\u003e","\" Can't use Ctrl+i remapping as it affects Tab as well","inoremap \u003cC-s\u003e \u003cHome\u003e","","\" ----- Change/Modify default Mappings -----","\" change Y to behave similar to D and C","nnoremap Y y$","\" Ctrl+v to paste from clipboard in Insert mode","\" Ctrl+q can be used to insert special characters","inoremap \u003cC-v\u003e \u003cC-o\u003e\"+p","\" Ctrl+l to autocomplete sentences","inoremap \u003cC-l\u003e \u003cC-x\u003e\u003cC-l\u003e","","\" ----- Abbreviations -----","\" Expand p as shown below","\" #!/usr/bin/perl","\" use strict;","\" use warnings;","inoreabbrev p #!/usr/bin/perl\u003cCR\u003euse strict;\u003cCR\u003euse warnings;\u003cCR\u003e","\" py for python3","inoreabbrev py #!/usr/bin/python3","\" auto correct teh as the","inoreabbrev teh the","","\" set a grayish ColorColumn","highlight ColorColumn ctermbg=0 guibg=#121212","","\" ----- autocmd -----","augroup plpysh"," autocmd!",""," \" automatically add Perl path using previously set inoreabbrev for p"," autocmd BufNewFile *.pl :normal ip"," \" automatically add Python path"," autocmd BufNewFile *.py :normal ipy"," "," \" show column guideline at 80th character"," autocmd FileType perl,python,sh :set colorcolumn=80"," "," \" Prevent comment character leaking to next line"," autocmd FileType * setlocal formatoptions-=r formatoptions-=o","augroup END","","\" ----- Useful Verilog Settings -----","\" completion for verilog control structures","\" type @a/@i/@e/@I in Insert mode and press Esc key","inoreabbrev @a always @()\u003cCR\u003ebegin\u003cCR\u003eend\u003cEsc\u003e2k$","inoreabbrev @i if ()\u003cCR\u003ebegin\u003cCR\u003eend\u003cEsc\u003e2k$","inoreabbrev @e else ()\u003cCR\u003ebegin\u003cCR\u003eend\u003cEsc\u003e2k$","inoreabbrev @I if ()\u003cCR\u003ebegin\u003cCR\u003eend\u003cCR\u003eelse\u003cCR\u003ebegin\u003cCR\u003eend\u003cEsc\u003e5k$","","\" Allows to use gf on module names","set suffixesadd+=.v,.V,.sv,.SV","\" Useful for opening modules from different hierarchies","\"set path+=/path1/,/path2/,etc","","\" gvim customization - no menubar/Toolbar, set font and size","set guioptions-=m","set guioptions-=T","set guifont=Monospace\\ 14","","","\" Other useful vimrcs and links","\" https://github.com/vim/vim/blob/master/runtime/defaults.vim","\" https://github.com/romainl/idiomatic-vimrc/blob/master/idiomatic-vimrc.vim","\" https://vi.stackexchange.com/questions/2003/how-do-i-debug-my-vimrc-file"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/learnbyexample/scripting_course/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":".vimrc","displayUrl":"https://github.com/learnbyexample/scripting_course/blob/master/.vimrc?raw=true","headerInfo":{"blobSize":"4.5 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"74d0f89","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Flearnbyexample%2Fscripting_course%2Fblob%2Fmaster%2F.vimrc","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"156","truncatedSloc":"136"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Vim Script","languageID":388,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/learnbyexample/scripting_course/blob/master/.vimrc","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/learnbyexample/scripting_course/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/learnbyexample/scripting_course/raw/refs/heads/master/.vimrc","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":true,"symbols":[]}},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/learnbyexample/scripting_course/branches":{"post":"PIAZtmf9c0v560fMKEOqHyfRDCcGh4-G0GaDA8TvWTJ-R5iitwZLIuB54qo6cAXGEetNpqr1af2Bv2rfpaUKAA"},"/repos/preferences":{"post":"B9LcxMILZIS-GSMCetDBh9eORygdYvYD1-MZ6OfeqkYymkKTQ2t_NHNJEO26Ymtr5aPeImXrf-x62DT1nCzJQg"}}},"title":"scripting_course/.vimrc at master · learnbyexample/scripting_course","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}