conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix substitution on old Vim version (7.3)\n\nSeems Vim 7.3 handles zero-width match differently, the result of\n\n substitute(t, '\\>\\<', '\\0 ', 'g')\n\nproduces 1 extra space for each match.\n\nAnyway change the regex to `\\>\\<.`, do manipulation on next character\ninste...
viml
chosen
[ { "from": "system", "value": "Use 1-based indexing for buffer ranges\n\n`:SyDebug` is displaying info if an alternate buffer is set. This\noccurs because a buffer number of 0 represents the alternate buffer.\nUsing a 1-based range in sy#debug#list_active_buffers fixes this.\n\nSigned-off-by: James McCoy <v...
viml
chosen
[ { "from": "system", "value": "Add <leader>j mapping for :CommandTJump\n\nAs usual, don't do it if a mapping already exists.\n" }, { "from": "human", "value": "\" Copyright 2010-present Greg Hurrell. All rights reserved.\n\" Licensed under the terms of the BSD 2-clause license.\n\nif exists('g:co...
viml
chosen
[ { "from": "system", "value": "Remove indent guides custom colours as jellybeans has support now.\n" }, { "from": "human", "value": "runtime colors/jellybeans.vim\n\nlet colors_name = 'jellybeans_custom'\n\nhi ColorColumn guibg=#222222\nhi IndentGuidesOdd guibg=#181818 ctermbg=232\nhi Inden...
viml
chosen
[ { "from": "system", "value": "Improve language support and Sencha JS indentation\n" }, { "from": "human", "value": "if has('autocmd')\n\n\tau BufRead,BufNewFile {Gemfile,Capfile,Kirkfile,Rakefile,Thorfile,config.ru} set ft=ruby\n\tau BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn,txt} setf mar...
viml
chosen
[ { "from": "system", "value": "Set makeprg to lint the blueprint\n" }, { "from": "human", "value": "autocmd BufReadPost,BufNewFile *.apib set syntax=apiblueprint\n\n" }, { "from": "gpt", "value": "autocmd BufReadPost,BufNewFile *.apib set filetype=apiblueprint\nautocmd FileType apiblu...
viml
chosen
[ { "from": "system", "value": "Disable vim italic comments in tmux/screen\n" }, { "from": "human", "value": "highlight ColorColumn ctermbg=DarkGray\nhighlight CursorLine ctermbg=None cterm=None\nset cursorline\n\nfunction! EnterInsertModeHighlight()\n let &colorcolumn=\"78,80,\".join(range(100...
viml
chosen
[ { "from": "system", "value": "Improve format of grep command\n" }, { "from": "human", "value": "\" ----------------------------------------------------------------------------\n\" Searching\n\" ----------------------------------------------------------------------------\n\" Vim only remembers th...
viml
chosen
[ { "from": "system", "value": "Use 4 spaces for php indent\n" }, { "from": "human", "value": "\" Disable bell and visual bell.\nset noerrorbells visualbell t_vb=\naugroup gui-visualbell\n autocmd!\n autocmd GUIEnter * set visualbell t_vb=\naugroup END\n\n\" Hide some autocompletion messages.\ns...
viml
chosen
[ { "from": "system", "value": "Improve visual select color, as well as CommandT\n" }, { "from": "human", "value": "\" Some color remaps\n\" If statements and def statements should look similar \n\" so you can see the flow \nhi! link rubyDefine rubyControl\n\n\" Colors to make LustyJuggler more us...
viml
chosen
[ { "from": "system", "value": "Make the scrolling smoother in Vim\n" }, { "from": "human", "value": "\" Display the default mode indicator, which is made redundant by the Lightline.\nset noshowmode\n\n\" Turn on syntax highlighting.\nsyntax on\n\n\" Turn on line numbers.\nset number\n\n\" Highlig...
viml
chosen
[ { "from": "system", "value": "Remove colorcolumn, annoying on small screen\n" }, { "from": "human", "value": "\" Only do this when not done yet for this buffer\nif exists(\"b:did_ftplugin\")\n finish\nendif\nlet b:did_ftplugin = 1\n\nsetlocal shiftwidth=2\nsetlocal softtabstop=2\nsetlocal expan...
viml
chosen
[ { "from": "system", "value": "Make blank lines ~ char disappear\n" }, { "from": "human", "value": "let base16colorspace=256\nset cursorline\n\n\" Don't try to highlight lines longer than 800 characters.\nset synmaxcol=800\n\n\" Resize splits when the window is resized\nau VimResized * :wincmd =\...
viml
chosen
[ { "from": "system", "value": "Add GitGutterFold shortcut - ggf\n" }, { "from": "human", "value": "let g:gitgutter_highlight_lines = 0\nmap <leader>gg :GitGutterLineHighlightsToggle<CR>\n" }, { "from": "gpt", "value": "let g:gitgutter_highlight_lines = 0\nmap <leader>ggh :GitGutterLin...
viml
chosen
[ { "from": "system", "value": "Tweak exe argument for neomake maker.\n" }, { "from": "human", "value": "function! GetCompDB()\n exec CMakeCompDB()\nendfunc\nlet FnCMakeCompDB = function(\"GetCompDB\")\nlet funccmakecompdb = string(FnCMakeCompDB)\n\"let RunCMakeCompDB = function('GetCompDB')\n\...
viml
chosen
[ { "from": "system", "value": "Fix space error in string concat\n" }, { "from": "human", "value": "\" Author: Bartolomeo Stellato <bartolomeo.stellato@gmail.com>\n\" Description: A language server for Julia\n\n\" Set julia executable variable\ncall ale#Set('julia_executable', 'julia')\n\nfunction...
viml
chosen
[ { "from": "system", "value": "Make sure Vim shows undefined reference errors too\n" }, { "from": "human", "value": "set shiftwidth=4\nset tabstop=4\n\nset makeprg=ninja\\ -C\\ build\\ -v\nset wildignore+=docs/*,install/*,build/*,test/*,*.o,*.a,*.d,*.gnp,*.cdl\n\nset efm=%f:%l:%c:\\ %tarning:\\ %...
viml
chosen
[ { "from": "system", "value": "vim: Make QuickFix current line stand out again\n\nHasn't been standing out for a while, since I changed the way the\n\"Search\" highlight group was set up back in 94cdd6caf5b5af2a3ef848.\n" }, { "from": "human", "value": "function! s:SetUpLoupeHighlight()\n highli...
viml
chosen
[ { "from": "system", "value": "Add binding abbreviations for vim\n" }, { "from": "human", "value": "\" How to: Type the letters then hit space\n\n\" General\niabbrev fsl # frozen_string_literal: true\n\n\" debugging\niabbrev bpry binding.pry\niabbrev bpid binding.pry if Rails.env.development?\nia...
viml
chosen
[ { "from": "system", "value": "Fix slicing the current line to generate context of completion.\n" }, { "from": "human", "value": "let s:Vital = vital#of('autocomplete_swift')\n\nlet s:String = s:Vital.import('Data.String')\n\nfunction! omni_swift#complete(first, base)\n if a:first\n let...
viml
chosen
[ { "from": "system", "value": "Revert \"Wrapping search. Perl regex while searching. Center search matches and jumps\"\n\nThis caused strange issues like inability to properly search for ruby\ninstance variables.\n\nThis reverts commit 88dd66685af2ba85970d5100bb5c1a3135213228.\n" }, { "from": "human"...
viml
chosen
[ { "from": "system", "value": "Add vim-sexp (and tpopes bindings)\n" }, { "from": "human", "value": "Plug 'Shougo/deoplete.nvim'\nPlug 'airblade/vim-gitgutter'\nPlug 'ctrlpvim/ctrlp.vim'\nPlug 'easymotion/vim-easymotion'\nPlug 'jiangmiao/auto-pairs'\nPlug 'liuchengxu/vim-better-default'\nPlug 'ra...
viml
chosen
[ { "from": "system", "value": "fix: Remove undo dir auto create\n" }, { "from": "human", "value": "set autoindent\nset autoread\nset background=dark\nset cmdheight=1\nset cursorline\nset encoding=UTF-8\nset expandtab \" Convert tabs to spaces\nset hidden \" TextEdit might fail if hidden is not se...
viml
chosen
[ { "from": "system", "value": "Switch the unite shortcuts to use the leader rather than space\n" }, { "from": "human", "value": "let mapleader=\"\\\\\"\n\nset autoindent\nset smartindent\nset smarttab\nset expandtab\nset shiftround\nset nojoinspaces\nset nofoldenable\nset tabstop=4\nset softtabst...
viml
chosen
[ { "from": "system", "value": "Fix Vim highlighting of action blocks\n" }, { "from": "human", "value": "\" Vim Syntax configuration for ruby-ll grammar files.\n\"\n\" Language: ruby-ll\n\" Maintainer: Yorick Peterse <yorickpeterse@gmail.com>\n\"\nsyntax clear\n\nsyn include @rubyTop syntax/ruby...
viml
chosen
[ { "from": "system", "value": "Change vim to always use unix formatting\n" }, { "from": "human", "value": "\" Tab width\nset shiftwidth=2\nset tabstop=2\nset softtabstop=2\n\n\" Use space indentation\nset expandtab\n\n\" Use unix line endings by default\nset fileformats=unix,dos\n" }, { "...
viml
chosen
[ { "from": "system", "value": "Add command to run local installation of ESLint\n" }, { "from": "human", "value": "\" let s:eslint_path = system('PATH=$(npm bin):$PATH && which eslint')\n\" let b:syntastic_javascript_eslint_exec = substitute(s:eslint_path, '^\\n*\\s*\\(.\\{-}\\)\\n*\\s*$', '\\1', ...
viml
chosen
[ { "from": "system", "value": "Rebuild out plugin front-facing api and include reload ability. Make\ndevelopment a lot easier!!\n" }, { "from": "human", "value": "\" File: github-issues.vim\n\" Version: 3.0.0b\n\" Description: Pulls github issues into Vim\n\" Maintainer: Jonathan Warn...
viml
chosen
[ { "from": "system", "value": "Change from NeoBundle to Vundle\n" }, { "from": "human", "value": "NeoBundle 'scrooloose/syntastic'\n\n\" Syntastic Settings\n\" These are the recommended default settings\nset statusline+=%#warningmsg#\nset statusline+=%{SyntasticStatuslineFlag()}\nset statusline+=...
viml
chosen
[ { "from": "system", "value": "Use Solarized colours with Powerline\n" }, { "from": "human", "value": "\" Open Vundle config quickly {{{\n nnoremap <Leader>vu :e ~/.dotfiles/vim/vim.symlink/config/00-vundle.vim<CR>\n\" }}}\n\n\" Run Hammer to preview this buffer {{{\n nmap <Leader>p :Hammer<CR>...
viml
chosen
[ { "from": "system", "value": "Add tab completion for c\n" }, { "from": "human", "value": "set nocompatible \" no vi complatibility\n\n\" install plugins\ncall plug#begin()\n\" Main plugins\nPlug 'mileszs/ack.vim'\nPlug 'jiangmiao/auto-pairs'\nPlug 'kien/ctrlp.vim'\nPlug 'Shougo/deoplete.nvim'\n...
viml
chosen
[ { "from": "system", "value": "Add doxygen highlight for c/c++ files\n" }, { "from": "human", "value": "autocmd BufNewFile,BufRead *.cu set cindent\n\nset cinoptions=>s,e0,n0,f0,{0,}0,^0,L-1,:0,=s,l0,b0,g0,hs,N-s,ps,ts,is,+s,c3,C0,/0,(2s,us,U0,w0,W0,k0,m0,j0,J0,)20,*70,#0\nnmap <Leader>k :tabe %<...
viml
chosen
[ { "from": "system", "value": "spec: Add note for skipped test of o_v, o_V, and o_Ctrl-v\n" }, { "from": "human", "value": "let s:suite = themis#suite('operator_pending_behavior')\nlet s:assert = themis#helper('assert')\n\n\" NOTE: Also see repetition.vim spec\n\" :h o_v\n\" :h o_V\n\" :h o_CTRL-...
viml
chosen
[ { "from": "system", "value": "Change key for document symbols\n" }, { "from": "human", "value": "lua << EOF\n -- You dont need to set any of these options. These are the default ones. Only\n -- the loading is important\n local actions = require('telescope.actions')\n require('telesco...
viml
chosen
[ { "from": "system", "value": "[ViM] Add new mapping <F3> to :TTemplate\n" }, { "from": "human", "value": "\" Required for vim-latexsuite to work correctly\n\" Please install vim-latex from either AUR or manually\n\nset grepprg=grep\\ -nH\\ $*\nset iskeyword+=:\n\nlet g:Tex_ViewRule_pdf = \"evinc...
viml
chosen
[ { "from": "system", "value": "Mark .coveragerc as being an INI file\n" }, { "from": "human", "value": "\" Recognise files with unusual file extensions\nau BufRead,BufNewFile *.md set filetype=markdown\nau BufNewFile,BufRead *.ejs set filetype=html\nau BufNewFile,BufRead *.html set filetype=htmld...
viml
chosen
[ { "from": "system", "value": "Add the correct comment style for the blade filetype\n" }, { "from": "human", "value": "\"remove right-hand whitespace from all lines on uncomment\nlet g:tcomment#rstrip_on_uncomment = 2\n\n\"use // to comment in vue files\ncall tcomment#type#Define('vue', '// %s')\...
viml
chosen
[ { "from": "system", "value": "Vim: Delete buffers without wait (keypress timeout)\n" }, { "from": "human", "value": "\" Change the leader key to space\nlet mapleader = ' '\n\n\" TODO: Vs. NERDTreeFind?\nnnoremap <Leader>n :NERDTreeToggle<CR>\nnnoremap <Leader>s :source $MYVIMRC<CR>\n\nnnoremap <...
viml
chosen
[ { "from": "system", "value": "Add checktime option to (hopefully) auto reload\n" }, { "from": "human", "value": "\" disable the bell\nset vb t_vb=\n\n\" enable line numbering\nset number\n\n\" disable startup message\nset shortmess+=I\n\n\" statusline\nset laststatus=2\n\n\" auto reload changed ...
viml
chosen
[ { "from": "system", "value": "Add syntax highlighting for JSX\n" }, { "from": "human", "value": "\" HTML5 ominicomplete & syntax\nNeoBundleLazy 'othree/html5.vim', {\n \\ 'autoload': {'filetypes': ['html', 'htmldjango']}\n \\ }\n\" CSS3 syntax\nNeoBundleLazy 'hail2u/vi...
viml
chosen
[ { "from": "system", "value": "Allow full screen on Windows only because the key\n\nused is a trick applied only on Windows\n" }, { "from": "human", "value": "\n\" off99555's '.vimrc' configurations\n\" Extended to the Ultimate .vimrc\n\n\"let g:airline_theme='base16_solarized'\n\"let g:airline#e...
viml
chosen
[ { "from": "system", "value": "Make syntastic plugin work a little better.\n" }, { "from": "human", "value": "au BufWritePost *.rs silent!make ctags > /dev/null 2>&1\n" }, { "from": "gpt", "value": "au BufWritePost *.rs silent!make ctags > /dev/null 2>&1\nlet g:syntastic_rust_rustc_fn...
viml
chosen
[ { "from": "system", "value": "Add `ARG` instruction syntax for vim\n\nSigned-off-by: Koichi Shiraishi <13fbd79c3d390e5d6585a21e11ff5ec1970cff0c@zchee.io>\n" }, { "from": "human", "value": "\" dockerfile.vim - Syntax highlighting for Dockerfiles\n\" Maintainer: Honza Pokorny <https://honza.ca>\...
viml
chosen
[ { "from": "system", "value": "Update font size for linux\n" }, { "from": "human", "value": "\"--------------------------------------\n\" GUI SETTINGS\n\"--------------------------------------\n\nset guioptions-=m \" Disable menu bar\nset guioptions-=e \" Disable GUI tabs\nset guioptions-=T ...
viml
chosen
[ { "from": "system", "value": "Add md files as markdown files.\n" }, { "from": "human", "value": "\" markdown filetype file\nau BufRead,BufNewFile *.mkd,*.markdown,*.mdwn set filetype=mkd\n\n" }, { "from": "gpt", "value": "\" markdown filetype file\nau BufRead,BufNewFile *.mkd,*.mar...
viml
chosen
[ { "from": "system", "value": "Remove redundant jsx syntax enhancement plugin\n" }, { "from": "human", "value": "MP 'pangloss/vim-javascript', { 'for': ['javascript'] }\nMP 'mxw/vim-jsx', { 'for': ['javascript', 'javascript.jsx'] }\nMP 'neoclide/vim-jsx-improve', { 'for': ['javascri...
viml
chosen
[ { "from": "system", "value": "Prepend spring to speed up test feedback\n" }, { "from": "human", "value": "\" insert a before { } block around a line\nnnoremap <silent> \\bf ^ibefore { <esc>$a }\n\n\" insert a specify { } block around a line\nnnoremap <silent> \\sp ^ispecify { <esc>$a }\n\n\" RSp...
viml
chosen
[ { "from": "system", "value": "[filetype] Use drafter instead of snowcrash\n" }, { "from": "human", "value": "autocmd BufReadPost,BufNewFile *.apib set filetype=apiblueprint\nautocmd FileType apiblueprint set syntax=apiblueprint\nautocmd FileType apiblueprint set makeprg=snowcrash\\ -l\\ %\n\nfun...
viml
chosen
[ { "from": "system", "value": "vim: Tweak to custom syntax highlighting for C++\n" }, { "from": "human", "value": "syn match cppNamespacedConstant /::\\zs[A-Z]\\w*/\nsyn match cppNamespace /\\<\\w\\+\\(::\\)\\@=/\nsyn match cppNamespacedType /::\\zs[A-Z]\\w*\\ze[ >]/\n\nhi def link cppNamespace I...
viml
chosen
[ { "from": "system", "value": "Neovim: Set font to JetBrains Mono\n" }, { "from": "human", "value": "set guifont=Iosevka\\ Term:h16\n\nif exists('g:fvim_loaded')\n\tFVimCursorSmoothBlink v:true\n\tFVimCursorSmoothMove v:true\n\tFVimCustomTitleBar v:false\nendif\n" }, { "from": "gpt", ...
viml
chosen
[ { "from": "system", "value": "Add arrow mappings for Markdown.\n" }, { "from": "human", "value": "setlocal spell spelllang=en_us\nset complete+=kspell\n\nhighlight htmlItalic cterm=italic\nhighlight htmlBold cterm=bold\n\n\" Highlight words to avoid in tech writing\n\" http://css-tricks.com/word...
viml
chosen
[ { "from": "system", "value": "Add Vim mapping to write all files in tab\n" }, { "from": "human", "value": "\" Copy current file path (plus line number, if asked) to system pasteboard.\nmap <silent> <leader>cp :let @* = expand(\"%\")<CR>:echo \"Copied: \".expand(\"%\")<CR>\nmap <silent> <leader>c...
viml
chosen
[ { "from": "system", "value": "Improve fast saving on normal and insert modes\n" }, { "from": "human", "value": "\" Fast saving\nnmap <leader>w :w!<CR>\n\n\" Fast saving & exiting\nnmap <leader>x :x<CR>\n\nnmap <leader>qa :qall<CR>\n\n\" Smart-insert semicolon\ninoremap <leader>; <C-o>A;<Esc>:w<C...
viml
chosen
[ { "from": "system", "value": "Remove cursor line bg color in insert mode\n" }, { "from": "human", "value": "highlight ColorColumn ctermbg=DarkRed\nset cursorline\n\n\" Change Color when entering Insert Mode\nautocmd InsertEnter * highlight CursorLine ctermbg=DarkGray | set colorcolumn=78,80,117,...
viml
chosen
[ { "from": "system", "value": "Add basic JS include config\n" }, { "from": "human", "value": "\" Use eslint linter.\nexecute('compiler eslint')\n\n\" vim:fdm=marker ft=vim et sts=2 sw=2 ts=2\n" }, { "from": "gpt", "value": "\" Basic JS from/require include config.\nsetlocal include=^\...
viml
chosen
[ { "from": "system", "value": "Set up alternate files for JSX specs\n\nCo-authored-by: Grant Hutchins <d65b5be3abbc93481821de3a867bffc94b58e8b6@srp-ok.com>\nCo-authored-by: Adam Milligan <0e18f44c1fec03ec4083422cb58ba6a09ac4fb2a@srp-ok.com>\n" }, { "from": "human", "value": "let g:rails_projectio...
viml
chosen
[ { "from": "system", "value": "Remove unnecessary solarized setting for vim\n" }, { "from": "human", "value": "\" set term=screen-256color-bce\n\nlet s:uname = system(\"uname -s\")\n\nlet g:solorized_termcolors=256\nset t_Co=256\nset background=dark\ncolorscheme solarized\n\n\" Added to support v...
viml
chosen
[ { "from": "system", "value": "Fix image linking, needs to be relative under /images\n" }, { "from": "human", "value": "\" vim-images.vim - Image pasting for vim\n\" Maintainer: Blake Taylor <http://blakefrost.com/>\n\" Version: 0.1\n\nif exists(\"g:loaded_vimages\") || &cp\n finish\nendi...
viml
chosen
[ { "from": "system", "value": "fix: Improve color scheme for terminal.app\n" }, { "from": "human", "value": "\" plugin/colorscheme.vim\n\"\n\" @file Configuration of the color scheme\n\n\n\" Enable true colors if supported by the current environment\nif dw#IsSupported('truecolors')\n set termgui...
viml
chosen
[ { "from": "system", "value": "Use <leader>e to expand snippet\n" }, { "from": "human", "value": "\" UltiSnips\n\" UltiSnips is the ultimate solution for snippets in Vim.\n\nlet g:UltiSnipsExpandTrigger =\"<c-tab>\"\nlet g:UltiSnipsJumpForwardTrigger = \"<enter>\"\nlet g:UltiSnipsJumpBackw...
viml
chosen
[ { "from": "system", "value": "Fix custom theme override hook\n\n- Calling F can't be done inline\n- Distinguish between exception causes\n- Fix name of onehalflight fn\n\nDon't code tired.\n" }, { "from": "human", "value": "call my_plugin#add('sonph/onehalf', {'rtp': 'vim/'})\ncall my_plugin#add...
viml
chosen
[ { "from": "system", "value": "Set airline’s theme to tomorrow so it matches" }, { "from": "human", "value": "set t_Co=256\nset background=dark\nsilent! colorscheme Tomorrow-Night\n\n\" Feel free to override the colorscheme by adding a line to ~/.vimrc.local\n\" such as the following:\n\"\n\" col...
viml
chosen
[ { "from": "system", "value": "Rework \"dotted directory\" changing in Vim\n\nRsync has a great `-R` which lets you put a superfluous `/./` in a\nsource path to make other filenames relative to that point in the path\nhierarchy.\n\nI'm not sure whether something changed in Vim, or if I never used it,\nbut my...
viml
chosen
[ { "from": "system", "value": "Add a space* binding for search under symbol\n" }, { "from": "human", "value": "nnoremap <leader>ff :Files<cr>\nnnoremap <leader>fg :Rg<cr>\nnnoremap <leader>fb :Buffers<cr>\nnnoremap <leader>fc :Commands<cr>\nnnoremap <leader>fh :Helptags<cr>\nnnoremap <leader>fm :...
viml
chosen
[ { "from": "system", "value": "Remove wrapping and numbers in Pivo buffer\n" }, { "from": "human", "value": "\" BEGIN\nif exists(\"g:loaded_pivo\") || &cp\n finish\nendif\nlet g:loaded_pivo = 1\nlet s:keepcpo = &cpo\nset cpo&vim\n\nlet PivoBufferName = \"__Pivotal__\"\nlet PivoProjectId = 0...
viml
chosen
[ { "from": "system", "value": "Add leader to c/d to copy to null register\n" }, { "from": "human", "value": "\" set a map leader for more key combos\nlet mapleader = ','\nlet g:mapleader = ','\n\n\" scroll the viewport faster\nnnoremap <C-e> 3<C-e>\nnnoremap <C-y> 3<C-y>\n\n\" scroll by visual li...
viml
chosen
[ { "from": "system", "value": "Add spell check options to .vimrc\n" }, { "from": "human", "value": "\" tab\nset expandtab\nset tabstop=4\nset shiftwidth=4\nset softtabstop=4\nset smarttab\n\nau BufRead,BufNewFile,BufReadPre *.coffee set filetype=coffee\n\naugroup fileTypeIndent\n autocmd!\n ...
viml
chosen
[ { "from": "system", "value": "Fix tripple quotes when ediiting Python code\n" }, { "from": "human", "value": "\" DelimitMate uses:\n\" <S-Tab> to exit current bracket\n\" <C-G>g to exit all brackets\n\"\n\" <S-Tab> is already mapped by SuperTab, use an alternate\nimap <C-CR> <Plug>del...
viml
chosen
[ { "from": "system", "value": "Add abbreviation for the current day date\n" }, { "from": "human", "value": "\" Inserting Dates and Times\niab Ydate <C-R>=strftime(\"%d-%b-%Y\")<CR>\n\" Example: 16-Apr-2016\n\niab Ytime <C-R>=strftime(\"%H:%M\")<CR>\n\" Example: 22:21\n\niab YDATE <C-R>=strftime(\...
viml
chosen
[ { "from": "system", "value": "Use new whitespace stripping plugin\n" }, { "from": "human", "value": "\" vundle.vim\n\" ----------\n\" Config file for Vundle bundles. This file also sources all\n\" Vundle-installed plugins. So this file should be sourced\n\" in the vimrc before attempting to use ...
viml
chosen
[ { "from": "system", "value": "Use html and css snippets only in their respective formats. Allow dust templates to use html snippets.\n" }, { "from": "human", "value": "\" snipmate git://github.com/garbas/vim-snipmate.git\nlet g:snips_author = \"Stephen Tudor\"\n\" let g:snips_trigger_ke...
viml
chosen
[ { "from": "system", "value": "vim: Add binding to source line/selection in vim\n" }, { "from": "human", "value": "\" Key mappings\n\"\n\" My personal mappings for various commands and key combinations\n\n\" Add a way to write a file as sudo\ncmap w!! w !sudo tee > /dev/null %\n\n\" Remap Ctrl+C ...
viml
chosen
[ { "from": "system", "value": "Add keepjumps and noautocmd to WinDo\n\n- keepjumps prevents polluting the jumplist on each navigation to an\n enabled filetype file. Without this getting back requires two presses\n ctrl-o and there are annoying cycles in the jumps.\n- noautocmd potentially speeds things up ...
viml
chosen
[ { "from": "system", "value": "Vim: Use ag with insensitive casing\n" }, { "from": "human", "value": "\" The Silver Searcher\nif executable('ag')\n \" Use ag over grep\n set grepprg=ag\\ --vimgrep\n \" bind \\ (backward slash) to grep shortcut\n command -nargs=+ -complete=file -bar Ag silent!...
viml
chosen
[ { "from": "system", "value": "Add a complete function now\n\njust copy the demo....\n" }, { "from": "human", "value": "if !has('python')\n echom \"No python!\"\n\tfinish\nendif\n\npython import sys\npython import vim\npython sys.path.append(vim.eval('expand(\"<sfile>:h\")'))\n\nfunction GitIs...
viml
chosen
[ { "from": "system", "value": "Improve flow type syntax highlighting\n\nvim-javascript makes everything one colour (like a type), which makes it\nlook like some sort of comment, but I prefer to have it as a regular\nlanguage construct.\nTo be able to distinguish the type annotations from an object, it uses\n...
viml
chosen
[ { "from": "system", "value": "Add default completion type for JS\n" }, { "from": "human", "value": "\" Javascript\nautocmd Filetype javascript setlocal et ts=2 sts=2 sw=2\nautocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS\nautocmd BufNewFile,BufRead Gulpfile* set filetype=ja...
viml
chosen
[ { "from": "system", "value": "Add fancy prompt to denite\n" }, { "from": "human", "value": "let ignore_dirs = ['talks', 'out', '.cljs_rhino_repl', 'target', '.idea']\nlet ignore_file_exts = ['pack.js', 'min.css', 'min.js']\n\nif executable('rg')\n \" Use rg for denite\n \" https://github.com/B...
viml
chosen
[ { "from": "system", "value": "Decrease vim font size on Linux\n" }, { "from": "human", "value": "if has(\"gui_running\")\n set guioptions=acei\n set background=dark\n colorscheme vividchalk\n set listchars=tab:→\\ ,eol:¬\n set list\n if has(\"gui_macvim\")\n set guifont=Monaco:h12\n el...
viml
chosen
[ { "from": "system", "value": "Remove buffer list from top of screen\n" }, { "from": "human", "value": "\" ------------------------------------------------------------------------------\n\" vim-airline and related config\n\" ------------------------------------------------------------------------...
viml
chosen
[ { "from": "system", "value": "Add tab settings for racket\n" }, { "from": "human", "value": "\" tab\nset expandtab\nset tabstop=4\nset shiftwidth=4\nset softtabstop=4\nset smarttab\n\nau BufRead,BufNewFile,BufReadPre *.coffee set filetype=coffee\n\naugroup fileTypeIndent\n autocmd!\n autoc...
viml
chosen
[ { "from": "system", "value": "Add leader command to run RSpec with documentation\n" }, { "from": "human", "value": "\" Default indentation settings\nsetlocal tabstop=2\nsetlocal shiftwidth=2\n\n\" ? and ! are part of method names\nsetlocal iskeyword+=?,!\n\n\" RSpec\nlet g:rspec_command = 'call ...
viml
chosen
[ { "from": "system", "value": "Use 2 spaces as a tab in python file\n" }, { "from": "human", "value": "\" tab\nset expandtab\nset tabstop=4\nset shiftwidth=4\nset softtabstop=4\nset smarttab\n\nau BufRead,BufNewFile,BufReadPre *.coffee set filetype=coffee\n\naugroup fileTypeIndent\n autocmd!\n...
viml
chosen
[ { "from": "system", "value": "Fix <CR> mapping with cmp\n" }, { "from": "human", "value": "lua <<EOF\nlocal lsp = require('lsp-zero')\n\nlsp.preset('recommended')\n\nlocal cmp = require('cmp')\nlocal luasnip = require('luasnip')\nlocal cmp_select = {behavior = cmp.SelectBehavior.Select}\n\nlsp.s...
viml
chosen
[ { "from": "system", "value": "Remove redundant or unrequired options\n" }, { "from": "human", "value": "\"------------------------------\n\" COMMON SETTINGS\n\"------------------------------\n\n\"Syntax coloring options\n\"------------------------------\n\nsyntax on\nset background=dark\n\nset n...
viml
chosen
[ { "from": "system", "value": "Add Pry REPL neoterm support\n" }, { "from": "human", "value": "\" Execute a Ruby file with <leader> rr\nmap <leader>rr :w<CR>:!ruby %<CR>\n" }, { "from": "gpt", "value": "\" Execute a Ruby file with <leader> rr\nmap <leader>rr :w<CR>:!ruby %<CR>\nnmap <...
viml
chosen
[ { "from": "system", "value": "Fix vim-airline plugins for repo migration\n" }, { "from": "human", "value": "call plug#begin('~/.vim/plugged')\n\nPlug 'tpope/vim-fugitive'\nPlug 'flazz/vim-colorschemes'\nPlug 'bling/vim-airline'\nPlug 'tpope/vim-surround'\nPlug 'jeetsukumaran/vim-buffergator'\nPl...
viml
chosen
[ { "from": "system", "value": "Make markdown check more resilient\n" }, { "from": "human", "value": "\" markdown files run this as well\n\" https://stackoverflow.com/questions/22839269/why-does-vim-default-markdown-ftplugin-source-html-ftplugins-is-there-any-ways\nif &ft !=# 'markdown'\n let b:p...
viml
chosen
[ { "from": "system", "value": "Check syntax after save was slowing vim down big time, so disable\n" }, { "from": "human", "value": "\" ------------------------------------------------------------------------------\n\" Syntastic and related config\n\" ----------------------------------------------...
viml
chosen
[ { "from": "system", "value": "Use the new, correct location for `vim-eldar`\n" }, { "from": "human", "value": "call plug#begin('~/.vim/plugged')\n\n\"My color scheme\nPlug 'agude/eldar.vim'\n\"VimCompletesMe\nPlug 'ajh17/VimCompletesMe'\n\"Surround\nPlug 'tpope/vim-surround'\n\"Repeat (lets you ...
viml
chosen
[ { "from": "system", "value": "Make example config more compatible.\n\nstdpath is only available on neovim, but not vim.\n\nClose #657.\n" }, { "from": "human", "value": "call plug#begin('~/.local/share/nvim/plugged')\n\nPlug 'autozimu/LanguageClient-neovim', {\n \\ 'branch': 'next',\n \\ '...
viml
chosen
[ { "from": "system", "value": "Make more names match up\n" }, { "from": "human", "value": "\" Author: Jon Gjengset <jon@thesquareplanet.com>\n\" Description: The next generation language server for Rust\n\ncall ale#Set('rust_analyzer_executable', 'ra_lsp_server')\ncall ale#Set('rust_analyzer_conf...
viml
chosen
[ { "from": "system", "value": "Refactor Preserve function based on Mathias Bynens\n\nhttps://github.com/mathiasbynens/dotfiles/blob/master/.vimrc\n" }, { "from": "human", "value": "\" from http://vimcasts.org/episodes/tidying-whitespace/\nfunction! Preserve(command)\n \" Preparation: save last s...
viml
chosen
[ { "from": "system", "value": "Remove a needless verification for precondition.\n" }, { "from": "human", "value": "let s:Vital = vital#of('autocomplete_swift')\n\nlet s:String = s:Vital.import('Data.String')\n\nfunction! omni_swift#complete(first, base)\n if a:first\n let s:context = {}...
viml
chosen
[ { "from": "system", "value": "Switch file formating from dos to unix\n" }, { "from": "human", "value": "\" Author: Kazark\r\n\" Purpose: utility functions for kazarc plugin\r\n\r\nfunction kazarc#SetTabWidthOptionsTo(width)\r\n let &tabstop=a:width\r\n let &shiftwidth=&tabstop\r\n let &...
viml
chosen
[ { "from": "system", "value": "Use `<afile>` to get filename that autocommand is executed on.\n\n`%` might have already changed.\n\nClose #690.\n" }, { "from": "human", "value": "function! LSP#filename() abort\n return expand('%:p')\nendfunction\n\nfunction! LSP#text(...) abort\n let l:buf ...
viml
chosen
[ { "from": "system", "value": "Add missing \".yml\" in autocmd\n" }, { "from": "human", "value": "let b:prettier_ft_default_args = {\n \\ 'parser': 'yaml',\n \\ }\n\naugroup Prettier\n autocmd!\n autocmd BufWritePre *.yaml call prettier#Autoformat()\naugroup end\n" }, { "from": "gpt",...
viml
chosen
[ { "from": "system", "value": "Change funcref for neomake maker.\n" }, { "from": "human", "value": "let GetCompDB = function('CMakeCompDB')\nlet g:neomake_cmakecompdb_maker = {\n \\ 'exe': 'GetCompDB',\n \\ 'args': [''] \n \\ }\nnoremap <unique> <Plug>NeomakeCompDB :Neomake! cmakecompdb<...
viml
chosen
[ { "from": "system", "value": "Clean up DONE/WONTDO syntax highlighting code\n" }, { "from": "human", "value": "if exists(\"b:vtd_extra_highlights\")\n finish\nendif\n\n\"syntax match doneItem '.*DONE.*'\n\"highlight link doneItem Ignore\n\n\"syntax region doneItem start=/\\^\\z(\\s*\\)\\S.*DONE...
viml
chosen
[ { "from": "system", "value": "Refactor NavigateUp/Down to use standard locations\n\nThe NavigatUp/NavigateDown functions have, until now, had their own\nnavigation implementation: setting a mark, changing the cursor position.\n\nHowever, as we have standard functions for handling locations, it makes\nsense ...
viml
chosen