Title: Question: basic ruby indentation · Issue #234 · vim-ruby/vim-ruby · GitHub
Open Graph Title: Question: basic ruby indentation · Issue #234 · vim-ruby/vim-ruby
X Title: Question: basic ruby indentation · Issue #234 · vim-ruby/vim-ruby
Description: Hi guys, I have recently set up this plugin and expected it to work out of the box, however not even the basic ruby indentation is working for me. I've pretty simple vimrc file: set nocompatible " turn vi into vim filetype off " required...
Open Graph Description: Hi guys, I have recently set up this plugin and expected it to work out of the box, however not even the basic ruby indentation is working for me. I've pretty simple vimrc file: set nocompatible " ...
X Description: Hi guys, I have recently set up this plugin and expected it to work out of the box, however not even the basic ruby indentation is working for me. I've pretty simple vimrc file: set nocompatibl...
Opengraph URL: https://github.com/vim-ruby/vim-ruby/issues/234
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question: basic ruby indentation","articleBody":"Hi guys,\n\nI have recently set up this plugin and expected it to work out of the box, however not even the basic ruby indentation is working for me. I've pretty simple vimrc file:\n\n```\nset nocompatible \" turn vi into vim\nfiletype off \" required by vundle\n\" VUNDLE SETUP\n\" set the runtime path to include Vundle and initialize\nset rtp+=~/.vim/bundle/Vundle.vim\ncall vundle#begin() \" required\n\" let Vundle manage Vundle, required\nPlugin 'gmarik/Vundle.vim'\n\n\" Track the engine.\nPlugin 'SirVer/ultisnips'\n\" \" Snippets are separated from the engine. Add this if you want them:\nPlugin 'honza/vim-snippets'\n\n\" go-vim plugin by fatih\nPlugin 'fatih/vim-go'\n\n\" vim-ruby plugin for ruby shit\nPlugin 'vim-ruby/vim-ruby'\n\n\" vim-fugitive plugin for git\nPlugin 'tpope/vim-fugitive'\n\n\" enabled vim-neatstatus line\nPlugin 'maciakl/vim-neatstatus'\n\ncall vundle#end() \" required\n\nsyntax on \" Always turn the syntax on\nfiletype plugin indent on \" enable file detection\nset expandtab \" Turn tab into spaces\nset number \" Turn on numbering of lines\nset showmatch \" Show matching brackets.\nset matchtime=5 \" Bracket blinking.\nset noshowmode \" Shows vim mode\n\n\" set status line\nset laststatus=2 \" Always show status line.\n\n\" Match and search\nset hlsearch \" highlight search\nset ignorecase \" Do case in sensitive matching with\nset smartcase \" be sensitive when there's a capital letter\nset incsearch \" Search incrementally\n\n\" color scheme\nset background=dark\ncolorscheme molokai\nset t_Co=256\n\nlet mapleader = \",\"\nlet g:mapleader = \",\"\n\n\" remap hjkl\nnoremap ' l\nnoremap ; k\nnoremap l j\nnoremap k h\nnnoremap . ;\n\n\" Fast saving\nnmap \u003cleader\u003ew :w!\u003ccr\u003e\n\" Fast quitting\nnmap \u003cleader\u003eq :q\u003ccr\u003e\n\" Fast save and quit\nnmap \u003cleader\u003eww :wq\u003ccr\u003e\n\n\" toggle the paste\nmap \u003cleader\u003ep :set paste!\u003cCR\u003e\n\" toggles search highlighting\nnmap \u003csilent\u003e \u003cleader\u003en :set hlsearch!\u003cCR\u003e\n\n\" Turn off auto-commenting\nau FileType * setlocal formatoptions-=cro\n\n\" Trigger configuration. Do not use \u003ctab\u003e if you use https://github.com/Valloric/YouCompleteMe.\nlet g:UltiSnipsExpandTrigger=\"\u003cc-k\u003e\"\nlet g:UltiSnipsJumpForwardTrigger=\"\u003cc-j\u003e\"\nlet g:UltiSnipsJumpBackwardTrigger=\"\u003cs-c-k\u003e\"\n```\n\nNothing crazy. However whenever editing ruby file, the indentation is 8 spaces.\n\nEven the simple if clause turns into this:\n\n```\nif foo == \"bar\"\n puts \"foobar\"\nend\n```\n\nvim-ruby does a pretty awesome job detecting ruby files like Rakefile etc., but after spending several hours investigating indentation I gave up and open this issue.\n\nMy vim version:\n\n```\n$ vim --version\nVIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 22 2014 11:49:13)\nMacOS X (unix) version\nIncluded patches: 1-430\nCompiled by Homebrew\n```\n","author":{"url":"https://github.com/milosgajdos","@type":"Person","name":"milosgajdos"},"datePublished":"2014-10-22T11:16:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/234/vim-ruby/issues/234"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1bb44078-b7e6-91c9-b252-e8a578e74c13 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D58A:3F0CE6:49467:5F247:698D7BD0 |
| html-safe-nonce | f4b10ee57619972f02ebf9dac782c730f9e068e9c824f9a1643ba5aaef121fd0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENThBOjNGMENFNjo0OTQ2Nzo1RjI0Nzo2OThEN0JEMCIsInZpc2l0b3JfaWQiOiIzNjc1OTU2NjY1MjQzMjM3MzI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6b38bc137e94aed64ebbfea2dcbd15b7e8692a0c3292f901b74ca252082c7fb4 |
| hovercard-subject-tag | issue:46498336 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/vim-ruby/vim-ruby/234/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e5d54dec7404efc26d09917d165a267c4f9ee65bb976bafec24d1acff877ce3c/vim-ruby/vim-ruby/issues/234 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e5d54dec7404efc26d09917d165a267c4f9ee65bb976bafec24d1acff877ce3c/vim-ruby/vim-ruby/issues/234 |
| og:image:alt | Hi guys, I have recently set up this plugin and expected it to work out of the box, however not even the basic ruby indentation is working for me. I've pretty simple vimrc file: set nocompatible " ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | milosgajdos |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-preview |
| go-import | github.com/vim-ruby/vim-ruby git https://github.com/vim-ruby/vim-ruby.git |
| octolytics-dimension-user_id | 17170 |
| octolytics-dimension-user_login | vim-ruby |
| octolytics-dimension-repository_id | 34465 |
| octolytics-dimension-repository_nwo | vim-ruby/vim-ruby |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 34465 |
| octolytics-dimension-repository_network_root_nwo | vim-ruby/vim-ruby |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 715890fa442134f528fb422ab338c0ad55c7a025 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width