conversations listlengths 3 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Use CtrlP instead of CtrlPMixed\n"
},
{
"from": "human",
"value": "\" plugin/plugin.ctrlp.vim\n\n\" Customize the path of the cache files\nlet g:ctrlp_cache_dir = g:vim_home . '/tmp/ctrlp'\n\n\" Allow to prefix <C-p> with a count to start in a specific mode\nlet g:c... | viml | chosen |
[
{
"from": "system",
"value": "Add typecheck to autosave linters\n"
},
{
"from": "human",
"value": "setlocal tabstop=4\nsetlocal shiftwidth=4\nsetlocal softtabstop=4\nsetlocal noexpandtab\n\n\" Disable using templates for new Go files\nlet g:go_template_autocreate = 0\n\n\" Use goimports when sav... | viml | chosen |
[
{
"from": "system",
"value": "Enable omni complete for jsx files\n"
},
{
"from": "human",
"value": "let g:deoplete#enable_at_startup = 1\n"
},
{
"from": "gpt",
"value": "let g:deoplete#enable_at_startup = 1\n\nlet g:deoplete#omni_patterns = {}\nlet g:deoplete#omni_patterns['javascrip... | viml | chosen |
[
{
"from": "system",
"value": "Remove Syntastic statusline addition that caused blank statusline\n"
},
{
"from": "human",
"value": "let g:syntastic_ruby_checkers = ['rubocop']\nlet g:syntastic_ruby_rubocop_args = '--auto-correct'\n\nlet g:syntastic_javascript_checkers = ['eslint']\nlet g:syntasti... | viml | chosen |
[
{
"from": "system",
"value": "Tweak ftplugin, add visual column at 80 chars\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 textwidth=140\nsetlocal shiftwidth=2\nsetlocal soft... | viml | chosen |
[
{
"from": "system",
"value": "Set ts/sts/sw=4 and noexpandtab for Python\n"
},
{
"from": "human",
"value": "\"\" Wrapping\nset textwidth=79 \" Set wrap width to 79 characters\n"
},
{
"from": "gpt",
"value": "\"\" Wrapping\nset textwidth=79 \" Set wrap wi... | viml | chosen |
[
{
"from": "system",
"value": "Use 14 font size by default\n"
},
{
"from": "human",
"value": "\" Use Nerdfont for GUI\n\" Clone https://github.com/ryanoasis/nerd-fonts\n\" ./install.sh SourceCodePro\nset guifont=DejaVuSansMonoForPowerline\\ Nerd\\ Font\\ 13\n\n\" Remove left and right scrollbars\... | viml | chosen |
[
{
"from": "system",
"value": "Disable command-t to open new tab\n"
},
{
"from": "human",
"value": "map <leader>tn :tabnew<CR>\nmap <leader>to :tabonly<CR>\nmap <leader>tc :tabclose<CR>\nmap <leader>tm :tabmove \nmap <leader>te :tabedit <c-r>=expand(\"%:p:h\")<CR>/\n\nnnoremap <C-t> :tabnew<CR>\n... | viml | chosen |
[
{
"from": "system",
"value": "Use vim-airline/vim-airline instead of bling\n\nI am also using the solarized theme for vim-airline, which is the main\nreason I am switching over.\n"
},
{
"from": "human",
"value": "call plug#begin('~/.vim/plugged')\n\n Plug 'bling/vim-airline' \" Display more inf... | viml | chosen |
[
{
"from": "system",
"value": "Add creole syntax for vim.\n"
},
{
"from": "human",
"value": "\"------------------------------------------------------------------------------\n\" Plugin\n\"------------------------------------------------------------------------------\nNeoBundle 'majutsushi/tagbar'... | viml | chosen |
[
{
"from": "system",
"value": "Change Erlang indentation to something more standard (4 spaces)\n"
},
{
"from": "human",
"value": "\" Tabulation\nset expandtab\nset shiftwidth=2\nset tabstop=2\nset softtabstop=2\n\nlet g:erlang_highlight_bif = 1\n"
},
{
"from": "gpt",
"value": "\" Tabu... | viml | chosen |
[
{
"from": "system",
"value": "Enable highlighting Support material as DONE\n\nTurns out, order matters for syntax files.\n"
},
{
"from": "human",
"value": "syntax region doneItem start='^\\z(\\s*\\)\\S.*DONE.*$' skip='^\\z1\\s' end='^'me=e-1\nsyntax region doneItem start='^\\z(\\s*\\)\\S.*WONTDO... | viml | chosen |
[
{
"from": "system",
"value": "[vim] Make fswitch recognise .cc files\n\nThis change makes fswitch be able to switch from .h <=> .cc where\npreviously .cc will switch to .hh and .h will switch to .c even if .cc\nis present.\n\nSigned-off-by: Yichen <be3bb257ef8d73236feaba36cd3e5ee9095e6819@gmail.com>\n"
},... | viml | chosen |
[
{
"from": "system",
"value": "Mark \"Jenkinsfile\" files as using language: Groovy\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... | viml | chosen |
[
{
"from": "system",
"value": "Revert to previous way of sourcing vim plugin\n\nRefs #95.\n"
},
{
"from": "human",
"value": "if ! has('python') && ! has('python3')\n\techohl ErrorMsg\n\techomsg 'You need vim compiled with Python 3.3 or Python 2.7 support for Powerline to work. Please consult the ... | viml | chosen |
[
{
"from": "system",
"value": "Make window load as split, then close\n"
},
{
"from": "human",
"value": "\" File: github-issues.vim\n\" Version: 1.0.0\n\" Description: Pulls github issues into Vim\n\" Maintainer: Jonathan Warner <jaxbot@gmail.com> <http://github.com/jaxbot>\n\" Homepag... | viml | chosen |
[
{
"from": "system",
"value": "Update Psalm plugin to use LSP mode"
},
{
"from": "human",
"value": "\" Author: richard marmorstein <https://github.com/twitchard>\n\" Description: plugin for Psalm, static analyzer for PHP\n\ncall ale#Set('php_psalm_executable', 'psalm')\n\nfunction! ale_linters#ph... | viml | chosen |
[
{
"from": "system",
"value": "Add some abbreviations & stop markdown auto-opening\n"
},
{
"from": "human",
"value": "abbrev tableflip (╯°□°)╯︵ ┻━┻)\n"
},
{
"from": "gpt",
"value": "abbrev tableflip (╯°□°)╯︵ ┻━┻)\nabbrev nre nREPL\nabbrev taht that\nabbrev superceded superseded\nabbre... | viml | chosen |
[
{
"from": "system",
"value": "Revert \"VIm: use 4-spaces indentation\"\n\n2 spaces is better\n\nThis reverts commit 393e2653f3f363f9a9bc30f3d82c8d2b4c7f85e3.\n"
},
{
"from": "human",
"value": "set autoindent \" automatically indent new lines\nset formatoptions+=o \" continue comment marker... | viml | chosen |
[
{
"from": "system",
"value": "Add a few more plugins for nvim\n"
},
{
"from": "human",
"value": "set nocompatible\nfiletype off\n\ncall plug#begin()\n\nPlug 'majutsushi/tagbar'\nPlug 'valloric/youcompleteme'\nPlug 'vim-airline/vim-airline'\nPlug 'vim-syntastic/syntastic'\n\ncall plug#end()\n\nfi... | viml | chosen |
[
{
"from": "system",
"value": "vim: Fix color glitch when using Vim with tmux\n"
},
{
"from": "human",
"value": "\" ~/.vim/colors.vim\n\nif has('syntax')\n \" Enable syntax highlight.\n syntax enable\n \" Set 256 color terminal support.\n set t_Co=256\n \" Set dark background.\n set backgro... | viml | chosen |
[
{
"from": "system",
"value": "Add vim command to open current file in MacVim\n"
},
{
"from": "human",
"value": "\" config/misc.vim\n\n\" Create a new auto command group\naugroup dotmisc\n\n \" Remove all commands for the current group\n au!\n\n \" Jump to last known position\n \" @see help d... | viml | chosen |
[
{
"from": "system",
"value": "Remove obsolete remnant of telescope\n"
},
{
"from": "human",
"value": "\" Use deoplete for tab completion.\nlet g:deoplete#enable_at_startup = 1\n\" Enable icons in completions from LSP.\nlet g:deoplete#lsp#use_icons_for_candidates=v:true\n\" Make supertab play nic... | viml | chosen |
[
{
"from": "system",
"value": "Make sure Vim uses 4 spaces by default\n"
},
{
"from": "human",
"value": "\" Backspace is managed by vim-sensible, but I need it here too because some\n\" plugins depend on it during start up.\nset backspace=indent,eol,start\n\n\" Enable line numbers.\nset number\n\... | viml | chosen |
[
{
"from": "system",
"value": "Add deoplete config for Clojure\n\nThen I need to write deoplete code for Conjure, not sure how yet.\n"
},
{
"from": "human",
"value": "let g:deoplete#enable_at_startup = 1\nautocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif\nset completeopt-=p... | viml | chosen |
[
{
"from": "system",
"value": "Use consistent capitalisation in Vim config\n"
},
{
"from": "human",
"value": "\" Open Vundle config quickly {{{\n nnoremap <Leader>vu :e ~/.vim/config/00-vundle.vim<CR>\n\" }}}\n\n\" Run Hammer to preview this buffer {{{\n nmap <Leader>p :Hammer<CR>\n\" }}}\n\n\"... | viml | chosen |
[
{
"from": "system",
"value": "Configure GUI font for Linux environment\n"
},
{
"from": "human",
"value": "\"--------------------------------------\n\" GUI SETTINGS\n\"--------------------------------------\n\nset guioptions-=m \" Disable menu bar\nset guioptions-=e \" Disable GUI tabs\nset g... | viml | chosen |
[
{
"from": "system",
"value": "Store callbacks in a List\n\nIf the callback funcref is a direct value in a map the `self` value will\nbe incorrect when the function executes. Putting the callbacks inside a\nList adds a level of indirection that preserves `self`.\n"
},
{
"from": "human",
"value": ... | viml | chosen |
[
{
"from": "system",
"value": "Add vim binding to go to last evaulated in Coq\n"
},
{
"from": "human",
"value": "nnoremap <buffer> <Left> :CoqToCursor<CR>\nnnoremap <buffer> <Right> :CoqToCursor<CR>\nnnoremap <buffer> <Up> :CoqUndo<CR>\nnnoremap <buffer> <Down> :CoqNext<CR>\n\ninoremap <buffer> <... | viml | chosen |
[
{
"from": "system",
"value": "Add ability to fold sections\n\n+ Added code to allow for folding sections of terraform configuration\r\n Code copied directly from https://github.com/jgerry/terraform-vim-folding `foldlevel` altered from 0 to 1"
},
{
"from": "human",
"value": "if !exists('g:terr... | viml | chosen |
[
{
"from": "system",
"value": "Fix airline loading on some files\n\nThe way tagbar was being loaded was using ``commands`` instead of\n``on_cmd``, which caused tagbar not to be sourced when airline\ntried to use it.\n\nSee also: https://github.com/vim-airline/vim-airline/issues/331\n"
},
{
"from": "h... | viml | chosen |
[
{
"from": "system",
"value": "Fix tab complete background and highlight colors\n"
},
{
"from": "human",
"value": "nmap <S-Enter> O<Esc>j\nnmap <CR> o<Esc>k\nmap <leader>rf :%!astyle<cr>\n\nhighlight Pmenu ctermbg=Blue ctermfg=White\nhighlight PmenuSel ctermbg=Magenta ctermfg=Black\n\n"
},
{
... | viml | chosen |
[
{
"from": "system",
"value": "Disable Indentline in Tex Files\n\nIndentline does not work well with other concealed characters.\n"
},
{
"from": "human",
"value": "\" this is mostly a matter of taste. but LaTeX looks good with just a bit\n\" of indentation.\nset sw=2\n\" TIP: if you write your \\... | viml | chosen |
[
{
"from": "system",
"value": "Remove cocstatus function from lightline\n"
},
{
"from": "human",
"value": "let g:lightline = {\n \\ 'active': {\n \\ 'left': [ [ 'mode', 'paste'],\n \\ [ 'gitdiff', 'gitbranch', 'filename','cocstatus', 'currentfunctio... | viml | chosen |
[
{
"from": "system",
"value": "Make Ctrl-P show hidden files\n\nSigned-off-by: Yichen <be3bb257ef8d73236feaba36cd3e5ee9095e6819@gmail.com>\n"
},
{
"from": "human",
"value": "let g:ctrlp_working_path_mode ='a'\n\n\" let g:ctrlp_map = '<c-f>'\nmap <c-b> :CtrlPBuffer<cr>\n\nlet g:ctrlp_max_height = ... | viml | chosen |
[
{
"from": "system",
"value": "Update NERDTree-tabs to open NERDTree in new tabs and use global NERDTree open\n"
},
{
"from": "human",
"value": "let g:nerdtree_tabs_open_on_gui_startup=0\nlet g:nerdtree_tabs_open_on_new_tab=0\n\nmap <Leader>n :NERDTreeMirrorToggle<CR>\n"
},
{
"from": "gpt... | viml | chosen |
[
{
"from": "system",
"value": "Switch from commentary to tcomment\n"
},
{
"from": "human",
"value": "Plug 'kana/vim-textobj-user'\nPlug 'kana/vim-textobj-line'\nPlug 'kana/vim-textobj-fold'\nPlug 'glts/vim-textobj-comment'\nPlug 'jasonlong/vim-textobj-css'\nPlug 'whatyouhide/vim-textobj-xmlattr'\... | viml | chosen |
[
{
"from": "system",
"value": "Disable onehalf for linux console\n\nonehalf looks terrible in the linux console, it's fairly unreadable\n"
},
{
"from": "human",
"value": "call my_plugin#add('sonph/onehalf', {'rtp': 'vim/'})\n\nfunction! Hook_post_source_onehalf()\n colorscheme onehalflight\n hi... | viml | chosen |
[
{
"from": "system",
"value": "Use two spaces for a tab in commit messages when edited in vim\n"
},
{
"from": "human",
"value": "\" Avoid excessive line length in commit comments\nsetlocal textwidth=70\n\" Highlight these lines\nexec '2match Todo /\\%>' . &textwidth . 'v.\\+/'\n\" Undo the match... | viml | chosen |
[
{
"from": "system",
"value": "Disable cursorline in quickfix and location lists.\n"
},
{
"from": "human",
"value": "\" Quickfix/Location-list specific settings\n\n\" Is this a location-list or a quickfix-list?\nlet b:qf_isloclist = len(getloclist(0)) > 0 ? 1 : 0\n\n\" Close using 'q'\n\" Jump to... | viml | chosen |
[
{
"from": "system",
"value": "Add two more YCM key bindings.\n"
},
{
"from": "human",
"value": "if g:at_google\n Glug youcompleteme-google\nelse\n Plugin 'Valloric/YouCompleteMe'\nendif\n\nnnoremap <C-y>g :YcmCompleter GoTo<CR>\nnnoremap <C-y>d :YcmCompleter GoToDeclaration<CR>\nnnoremap <... | viml | chosen |
[
{
"from": "system",
"value": "Tweak highlighting of JavaScript keywords\n\nIt's similar to Rust, which seems nicer. I don't like to have much\nyellow (it's fine for types, but not for keywords).\n"
},
{
"from": "human",
"value": "syntax keyword flowTypeKeyword type nextgroup=flowTypeIdentifier\n... | viml | chosen |
[
{
"from": "system",
"value": "Support paths containing spaces on Windows\n\nThe first argument to start is the window title. If you pass a quoted\nstring, it takes it as a window title and opens a cmd prompt instead of\nopening your folder.\n"
},
{
"from": "human",
"value": "if exists('loaded_go... | viml | chosen |
[
{
"from": "system",
"value": "Add :DiffOrig function to show diff btw last save and current edits\n"
},
{
"from": "human",
"value": "\" from http://vimcasts.org/episodes/tidying-whitespace/\nfunction! Preserve(command)\n \" Preparation: save last search, and cursor position.\n let save_cursor ... | viml | chosen |
[
{
"from": "system",
"value": "Use *.pyi as a Python file\n"
},
{
"from": "human",
"value": "augroup filetypes\n autocmd!\n autocmd BufRead,BufNewFile .jshintrc set filetype=javascript\n autocmd BufRead,BufNewFile *.es6 set filetype=javascript\n autocmd BufRead,BufNewFile *.nasm set f... | viml | chosen |
[
{
"from": "system",
"value": "Add tab setting for HTML.\n"
},
{
"from": "human",
"value": "\" tab\nset expandtab\nset tabstop=4\nset shiftwidth=4\nset softtabstop=4\nset smarttab\n\n\" appearance\nset showmatch\nset list\nset listchars=tab:>.,trail:_,eol:↲,extends:>,precedes:<,nbsp:%\n\n\" contr... | viml | chosen |
[
{
"from": "system",
"value": "Fix autoformat config for Prettier 2.x\n"
},
{
"from": "human",
"value": "\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n\" Override settings for vim... | viml | chosen |
[
{
"from": "system",
"value": "Use jshint for JS syntax checking\n"
},
{
"from": "human",
"value": "\"mark syntax errors with :signs\nlet g:syntastic_enable_signs=1\n\"automatically jump to the error when saving the file\nlet g:syntastic_auto_jump=0\n\"show the error list automatically\nlet g:syn... | viml | chosen |
[
{
"from": "system",
"value": "vim: Send GoFmt errors to a location list\n\nR=golang-dev, dsymonds\nCC=golang-dev\nhttp://codereview.appspot.com/5043046\n\nCommitter: David Symonds <7f6bb564ed9e580d4f0aa90d53b34578e5d24cb9@golang.org>\n"
},
{
"from": "human",
"value": "\" Copyright 2011 The Go Au... | viml | chosen |
[
{
"from": "system",
"value": "Work around loss of highlighting after autoformat\n"
},
{
"from": "human",
"value": "\" Set up ALE (linting)\nlet g:airline#extensions#ale#enabled = 1\nlet g:ale_sign_column_always = 1\nlet g:ale_linters = {\n\\ 'bash': ['shellcheck', 'bashate'],\n\\ 'docker': [... | viml | chosen |
[
{
"from": "system",
"value": "Add Cane to Ruby syntax checking\n"
},
{
"from": "human",
"value": "\" ==========================================\n\" Syntastic settings\n\nlet g:syntastic_javascript_syntax_checker = \"jshint\"\nlet g:syntastic_coffee_coffeelint_args = \"--csv --file $HOME/.coffeel... | viml | chosen |
[
{
"from": "system",
"value": "Tweak en and em dash mappings.\n"
},
{
"from": "human",
"value": "setlocal spell\n\nhighlight htmlItalic cterm=italic\nhighlight htmlBold cterm=bold\n\n\" Highlight words to avoid in tech writing\n\" http://css-tricks.com/words-avoid-educational-writing/\n\" https:/... | viml | chosen |
[
{
"from": "system",
"value": "Add better settings for scala dispatch\n"
},
{
"from": "human",
"value": "autocmd FileType markdown\n \\ let b:dispatch = 'octodown %'\nautocmd FileType python\n \\ let b:start = executable('ipython') ? 'ipython -i %' : 'python -i %' |\n \\ let b:disp... | viml | chosen |
[
{
"from": "system",
"value": "Ruby: Add abbrevs for TODO:, FIXME:, OPTIMIZE:, etc\n"
},
{
"from": "human",
"value": "\" Don't automatically comment the next/previous line after hitting 'o' or 'O'\nsetlocal formatoptions-=o\n\n\" highlight ruby whitespace errors\nlet ruby_space_errors = 1\nlet g:... | viml | chosen |
[
{
"from": "system",
"value": "Update tab settings to comply with CSW rules\n"
},
{
"from": "human",
"value": "set textwidth=0\n\nset autoindent\nset nosmartindent\n\n\" use TAB character when TAB key is pressed\nset noexpandtab\n\n\" number of spaces to show for a TAB\nset tabstop=4\n\n\" number... | viml | chosen |
[
{
"from": "system",
"value": "Enable other NGDock and JSX syntax highlighting\n"
},
{
"from": "human",
"value": "\n\"\n\" vim-javascript\n\"\n\n\" Enable JSDoc syntax highlighting\nlet g:javascript_plugin_jsdoc = 1\n\n\" JS conceal characters\nlet g:javascript_conceal_function = \"ƒ\"\nlet g:jav... | viml | chosen |
[
{
"from": "system",
"value": "Use /Users/xgjo instead of explicit path to my home dir\n"
},
{
"from": "human",
"value": "source /Users/xgjo/.vim/bundle/powerline/powerline/ext/vim/powerline.vim\n\nlet g:Powerline_symbols='fancy'\nlet g:Powerline_colorscheme='solarized256'\n"
},
{
"from":... | viml | chosen |
[
{
"from": "system",
"value": "Support for pylint and pep8.\n"
},
{
"from": "human",
"value": "setlocal expandtab\nino <buffer><silent> ( ()<Left>\nino <buffer><silent> [ []<Left>\nino <buffer><silent> { {}<Left>\nau BufWritePre *.py :%s/\\s\\+$//e\n"
},
{
"from": "gpt",
"value": "set... | viml | chosen |
[
{
"from": "system",
"value": "Set colorcolumn to the current textwidth.\n\nFallback to the specified column.\n"
},
{
"from": "human",
"value": "function! CommandTWithFlush()\n CommandTFlush\n CommandT\nendfunction\n\nfunction! UpdateTags()\n if exists('b:git_dir')\n call system('cd \"'.b:g... | viml | chosen |
[
{
"from": "system",
"value": "Use spaces for indentation in Perl\n"
},
{
"from": "human",
"value": "let perl_fold = 1\nlet perl_nofold_packages = 1\nsetlocal foldlevel=100\nsetlocal foldcolumn=1\ncompiler perl\nlet g:perl_compiler_force_warnings = 0\nlet b:ale_linters = ['perlcritic']\nlet b:ale... | viml | chosen |
[
{
"from": "system",
"value": "Choose JSCS as the JS linter if .jscsrc is present\n\nFallback to jshint otherwise"
},
{
"from": "human",
"value": "let g:syntastic_enable_signs=1\n"
},
{
"from": "gpt",
"value": "let g:syntastic_enable_signs=1\nautocmd FileType javascript let b:syntasti... | viml | chosen |
[
{
"from": "system",
"value": "Add upAndDown vim plugin for bubbling lines.\n"
},
{
"from": "human",
"value": "\" set rtp+=~/.vim/bundle/vundle/\n\" call vundle#rc()\n\nBundle 'gmarik/vundle'\nBundle 'scrooloose/nerdtree'\nBundle 'nathanaelkane/vim-command-w'\nBundle 'nathanaelkane/snipmate-snipp... | viml | chosen |
[
{
"from": "system",
"value": "[nvim] Fix rubocop / standardrb config\n"
},
{
"from": "human",
"value": "iabbrev bb require 'pry'; binding.pry<Esc>\niabbrev BB require 'byebug'; byebug<Esc>\niabbrev Bb binding.irb<Esc>\n\nsetlocal foldmethod=indent\n\n\" {{{ ALE config\nif executable('rubocop')\n... | viml | chosen |
[
{
"from": "system",
"value": "Fix Git file status when editing a file outside the current Git dir\n"
},
{
"from": "human",
"value": "call Pl#Theme#InsertSegment(['raw', '%{system(\"[[ -n \\\"$([[ -n \" . shellescape(expand(\"%\")) . \" ]] && git status --porcelain \" . shellescape(expand(\"%\"))... | viml | chosen |
[
{
"from": "system",
"value": "Fix typo in tagbr support\n"
},
{
"from": "human",
"value": "if !executable('ctags')\n finish\nelseif globpath(&rtp, 'plugin/tagbar.vim') == \"\"\n finish\nendif\n\nfunction! s:SetTagbar()\n if !exists(\"g:tagbar_type_elm\")\n let g:tagbar_type_elm =... | viml | chosen |
[
{
"from": "system",
"value": "Use source code pro as default font in gvim\n"
},
{
"from": "human",
"value": "\" Use Nerdfont for GUI\n\" Clone https://github.com/ryanoasis/nerd-fonts\n\" ./install.sh SourceCodePro\n\" set guifont=DejaVuSansMonoForPowerline\\ Nerd\\ Font\\ 10\n\n\" Remove left an... | viml | chosen |
[
{
"from": "system",
"value": "refactor: Set `ai` and `et` always\n"
},
{
"from": "human",
"value": "call plug#begin('~/.local/share/nvim/plugged')\n\nPlug 'DankNeon/vim'\nPlug 'fenetikm/falcon'\n\ncall plug#end()\n\nset termguicolors\n\nset cursorline\nset cursorcolumn\n\nset mouse-=a\n\nhi Curs... | viml | chosen |
[
{
"from": "system",
"value": "Add comment about airline fonts in neovim\n"
},
{
"from": "human",
"value": "\" ----------------------------------------\n\" Platform Specific Configuration\n\" ----------------------------------------\n\nset shell=bash\n\nlet g:has_powerline_font = 0\n\nlet s:uname... | viml | chosen |
[
{
"from": "system",
"value": "Change MaxLength of PEP8 to a new Standard.\n"
},
{
"from": "human",
"value": "\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\" DESCRIPTION: Plugin settings for Vim\n\" AUTHOR: Igor Kalnitsky <igor@kalnitsky.org>\n\" ~~~~... | viml | chosen |
[
{
"from": "system",
"value": "Add Berksfile to Ruby ftdetect\n\nBerksfiles are Ruby\n"
},
{
"from": "human",
"value": "\" Librarian-Chef Cheffiles are Ruby files\nau BufRead,BufNewFile Cheffile set filetype=ruby\n"
},
{
"from": "gpt",
"value": "\" Librarian-Chef Cheffiles are Ruby fi... | viml | chosen |
[
{
"from": "system",
"value": "Split import from use of config\n"
},
{
"from": "human",
"value": "lua << EOF\nrequire(\"lspconfig\").pylsp.setup({\n enable = true,\n settings = {\n pylsp = {\n configurationSources = {\"pyls-flake8\"},\n plugins = {\n flake8 = {enabled = true... | viml | chosen |
[
{
"from": "system",
"value": "Use ESLint instead of Standard with Syntastic.\n"
},
{
"from": "human",
"value": "\" Syntax checking hacks.\nPlug 'scrooloose/syntastic'\n\nset statusline+=%#warningmsg#\nset statusline+=%{SyntasticStatuslineFlag()}\nset statusline+=%*\n\nlet g:syntastic_always_popu... | viml | chosen |
[
{
"from": "system",
"value": "Move javascript options to correct locations\n"
},
{
"from": "human",
"value": "let g:ale_sign_column_always = 1\nlet g:ale_fix_on_save = 0\nlet g:airline#extensions#ale#enabled = 1\n\nnmap <silent> <C-k> <Plug>(ale_previous_wrap)\nnmap <silent> <C-j> <Plug>(ale_nex... | viml | chosen |
[
{
"from": "system",
"value": "Fix doc paths for plugins\n"
},
{
"from": "human",
"value": "set shell=sh\nset shortmess+=I\nset runtimepath+=$GOROOT/misc/vim\nset backup\nset backupdir=~/.cache/vim\nset undofile\nset undodir=~/.cache/vim\nset ai smartindent\nset hlsearch\nset ignorecase\nset smar... | viml | chosen |
[
{
"from": "system",
"value": "Use \\r to insert a newline in :substitute\n\nUsing a ^M can do weird things with line handling, so use the escape\nsequence instead.\n"
},
{
"from": "human",
"value": "\" Often useful for picking out the this pointer and parameters.\nfunction! vshelp#guess_correct_... | viml | chosen |
[
{
"from": "system",
"value": "[vim] Add splits for Jedi goto\n\n - Allow jedi#goto to be opened in splits\n - Make python bindings buffer specific\n\nSigned-off-by: Yichen <be3bb257ef8d73236feaba36cd3e5ee9095e6819@gmail.com>\n"
},
{
"from": "human",
"value": "let python_highlight_all = 1\nsyn ke... | viml | chosen |
[
{
"from": "system",
"value": "Add tmux syntax to vim\n"
},
{
"from": "human",
"value": "filetype off\nset rtp+=~/.vim/bundle/Vundle.vim\ncall vundle#begin()\n\n\" Plugins {{{\nPlugin 'gmarik/Vundle.vim'\nPlugin 'tpope/vim-fugitive'\nPlugin 'kien/ctrlp.vim'\nPlugin 'mattn/emmet-vim'\nPlugin 'tpop... | viml | chosen |
[
{
"from": "system",
"value": "Add remap to split vim horizontally with \"h\"\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 visua... | viml | chosen |
[
{
"from": "system",
"value": "vim: Add tab completion handling for sass\n"
},
{
"from": "human",
"value": "\" Allow variables to include dashes\nset iskeyword+=-\nset iskeyword+=$\n"
},
{
"from": "gpt",
"value": "\" Allow variables to include dashes\nset iskeyword+=-\nset iskeyword+=... | viml | chosen |
[
{
"from": "system",
"value": "Use expand <sfile> instead of g:tmux_complete_location\n"
},
{
"from": "human",
"value": "if !exists('g:tmux_complete_location') || g:tmux_complete_location == ''\n let g:tmux_complete_location =\n \\ \"$HOME/.vim/bundle/tmux-complete.vim\"\nendif\n\nfunct... | viml | chosen |
[
{
"from": "system",
"value": "Remove redundant wildignore for CommandT\n\nbower_components is not used and node_modules is already in wildignore.\n"
},
{
"from": "human",
"value": "\" Small default height for CommandT\nlet g:CommandTMaxHeight=20\nlet g:CommandTMaxFiles=20000\n\n\" Make ESC work ... | viml | chosen |
[
{
"from": "system",
"value": "Xkbswitch.vim: Set english layout as default for normal mode.\n"
},
{
"from": "human",
"value": "let g:XkbSwitchEnabled = 1\n\" enable Insert mode mappings duplicates\nlet g:XkbSwitchIMappings = ['ru', 'ua']\n\" issue workaround\nlet g:XkbSwitchIMappingsSkipFt = ['t... | viml | chosen |
[
{
"from": "system",
"value": "Disable auto-indent of pasted text\n"
},
{
"from": "human",
"value": "\" Indentation\nset autoindent\nset smarttab\nset shiftwidth=4\nset softtabstop=4\nset tabstop=4\nset textwidth=100\nset expandtab\n\n\" Auto indent pasted text\nnnoremap p p=`]<C-o>\nnnoremap P P... | viml | chosen |
[
{
"from": "system",
"value": "Fix messaging bug on Vim 8\n\nThe internal variable of pipe has copied and so the messages were duplicated.\n"
},
{
"from": "human",
"value": "function! gina#command#_raw#call(range, args, mods) abort\n let git = gina#core#get()\n let args = gina#command#parse_arg... | viml | chosen |
[
{
"from": "system",
"value": "vim: Use YAML for RAML files\n"
},
{
"from": "human",
"value": "\" File type specific configurations\n\" \n\" Mostly consisting of Auto commands applied when matching files are opened\n\nau BufRead,BufNewFile *.md set filetype=markdown\nau BufRead,BufNewFile ... | viml | chosen |
[
{
"from": "system",
"value": "[nvim] Add vim-session config for nvim\n"
},
{
"from": "human",
"value": "\" Prevent vim-session from asking us to load the session.\n\" If you want to load the session, use :SaveSession and :OpenSession\nlet g:session_autosave = 'no'\n"
},
{
"from": "gpt",
... | viml | chosen |
[
{
"from": "system",
"value": "Edit a layer in a new tab\n"
},
{
"from": "human",
"value": "set colorcolumn=80\nset clipboard+=unnamedplus,unnamed\n\n\" Let me run off and modify files without write\nset hidden\n\" Make hidden less \"evil\"\nset autowrite\n\" Macro redrawing\nset lazyredraw\n\" S... | viml | chosen |
[
{
"from": "system",
"value": "Replace deprecated shortcut with explicit list\n"
},
{
"from": "human",
"value": "lua <<EOF\nrequire'nvim-treesitter.configs'.setup {\n ensure_installed = \"maintained\",\n highlight = {\n additional_vim_regex_highlighting = false,\n },\n indent = {\n disa... | viml | chosen |
[
{
"from": "system",
"value": "Set commentstring in Vim syntax plugin\n\nBy setting the commentstring, you support commenting with plugins like tComment.\nNow Vim won't default to incorrect `/* */` comments.\n"
},
{
"from": "human",
"value": "\" dockerfile.vim - Syntax highlighting for Dockerfile... | viml | chosen |
[
{
"from": "system",
"value": "Enable primary selection using mouse\n"
},
{
"from": "human",
"value": "call add(g:groups, \"mappings\")\n\nfunction! layers#mappings#plugins() abort\n\treturn ['junegunn/fzf', 'junegunn/fzf.vim']\nendfunction\n\nfunction! layers#mappings#configure() abort\n\t\" Vim... | viml | chosen |
[
{
"from": "system",
"value": "Fix filetype detection in most cases\n"
},
{
"from": "human",
"value": "\" Language: CoffeeScript\n\" Maintainer: Mick Koch <kchmck@gmail.com>\n\" URL: http://github.com/kchmck/vim-coffee-script\n\" License: WTFPL\n\nautocmd BufNewFile,BufRead *.coff... | viml | chosen |
[
{
"from": "system",
"value": "Convert autoload functions to abort\n"
},
{
"from": "human",
"value": "\" Maintainer: D. Ben Knoble <ben.knoble@gmail.com>\n\n\" Global function for calling terminal with the appropriate interpreter\n\" b:interpreter controls the program run\nfunction! benknob... | viml | chosen |
[
{
"from": "system",
"value": "Add filetype detection for sbt and template files\n"
},
{
"from": "human",
"value": "au BufRead,BufNewFile *.scala set filetype=scala\n"
},
{
"from": "gpt",
"value": "au BufRead,BufNewFile *.scala set filetype=scala\nau BufNewFile,BufRead *.sbt set filet... | viml | chosen |
[
{
"from": "system",
"value": "Make searching for options easy\n"
},
{
"from": "human",
"value": "\" Vim filetype plugin\n\" Language: Man\n\" Maintainer: Ben Knoble <ben.knoble@gmail.com>\n\n\" Don't show fancy whitespace\nsetlocal nolist\n\" No colorcolumn\nsetlocal colo... | viml | chosen |
[
{
"from": "system",
"value": "Create Vim shortcut for C++11 in Makefile\n"
},
{
"from": "human",
"value": "\" abbreviations\niab fis for (int i = 0; i < .size(); ++i) {<CR>}<ESC>-f.i\niab ato atoi(.c_str())<ESC>F.i\niab vs vector<string>\niab vi vector<int>\niab vll vector<long long>\niab vb vec... | viml | chosen |
[
{
"from": "system",
"value": "Fix typo in vim config"
},
{
"from": "human",
"value": " \" Write and close quickly\nnmap <Leader>wq :wq<Cr>\n\n\" Set default theme\ncolorscheme pablo\n\n\" Send all yanking/deleting ops to clipboard\nclipboard=unnamedplus\n"
},
{
"from": "gpt",
"value... | viml | chosen |
[
{
"from": "system",
"value": "Add syntax highlighting bundles for js, jade, and stylus\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 befo... | viml | chosen |
[
{
"from": "system",
"value": "Fix spelling highlight changes in git commits\n"
},
{
"from": "human",
"value": "setl spell\nhi SpellBad guibg=None\nhi SpellRare guibg=None\nhi SpellCap guibg=None\n"
},
{
"from": "gpt",
"value": "setl spell\nhi SpellBad guibg=NONE\nhi SpellRare guibg=N... | viml | chosen |
[
{
"from": "system",
"value": "Stop using system tags in C\n"
},
{
"from": "human",
"value": "\" Vim filetype plugin\n\" Language: C\n\" Maintainer: Ben Knoble <ben.knoble@gmail.com>\n\nif exists('b:undo_ftplugin')\n let b:undo_ftplugin .= ' | '\nelse\n let b:undo_ftplug... | viml | chosen |
[
{
"from": "system",
"value": "Format *.c files upon saving\n"
},
{
"from": "human",
"value": "\" Formatting\nfunction! FormatOnSave()\n let l:lines = \"all\"\n pyf /Users/fellipe/dotfiles/clang-format.py\nendfunction\n\nmap gq :pyf /Users/fellipe/dotfiles/clang-format.py<CR>\nautocmd BufWr... | viml | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.