Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. jartigag (jartigag@mastodon.social)'s status on Tuesday, 30-Apr-2019 19:22:34 UTC jartigag jartigag

    tinkering with someone's code 😇
    noooo he used tabs! so if i press tab now, it doesn't work properly!!

    #vimtrick
    q: how to set tab = 4 spaces?
    a: `:set tabstop=4spaces`, or better: `set tabstop=4 softtabstop=0 expandtab shiftwidth=4`

    https://stackoverflow.com/a/1878983

    In conversation Tuesday, 30-Apr-2019 19:22:34 UTC from mastodon.social permalink
    • jartigag (jartigag@mastodon.social)'s status on Tuesday, 30-Apr-2019 19:24:08 UTC jartigag jartigag
      in reply to

      #vimtrick
      q: what to do with code already written with tabs?
      a: after setting the above, `:set retab`

      https://stackoverflow.com/a/427004

      In conversation Tuesday, 30-Apr-2019 19:24:08 UTC permalink
    • jartigag (jartigag@mastodon.social)'s status on Sunday, 12-May-2019 09:41:37 UTC jartigag jartigag
      in reply to

      #vimtrick
      q: how to insert #html tags easily?
      a: first `:imap <C-t> <></><Esc>5hdiwp3lpT>i`, then write ex.: div, press Ctrl+t and insert content

      https://coderwall.com/p/1omscg/vim-easy-insert-html-tags

      In conversation Sunday, 12-May-2019 09:41:37 UTC permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.