Skip to content

Instantly share code, notes, and snippets.

@alexniver
Last active March 23, 2016 10:09
Show Gist options
  • Select an option

  • Save alexniver/febd49b347b9d9467c05 to your computer and use it in GitHub Desktop.

Select an option

Save alexniver/febd49b347b9d9467c05 to your computer and use it in GitHub Desktop.

##Base

sudo apt-get install vim
sudo apt-get install vim-gnome
sudo apt-get install ctags

##Install spf13-vim

https://github.com/spf13/spf13-vim

##Change nerdtree triger to ,nn

vi ~/.vimrc

then find nerdtree config changer trigger to ,nn, change show hidden to 1.

##Add go support

echo Bundle \'fatih/vim-go\' >> ~/.vimrc.bundles.local
vi
:PluginInstall
:GoInstallBinaries

##React-native things

npm install -g eslint
npm install -g babel-eslint
npm install -g eslint-plugin-react

echo Bundle \'mxw/vim-jsx\' >> ~/.vimrc.bundles.local
vi
:PluginInstall

add to ~/.vimrc

let g:jsx_ext_required = 0 " Allow JSX in normal JS files

add to ~/.eslintrc

{
    "parser": "babel-eslint",
    "parserOptions": {
        "sourceType": "module",
    }
    "env": {
        "browser": true,
        "node": true
    },
    "settings": {
        "ecmascript": 6,
        "jsx": true
    },
    "plugins": [
        "react"
    ],
    "rules": {
        "strict": 0,
        "quotes": 0,
        "no-unused-vars": 0,
        "camelcase": 0,
        "no-underscore-dangle": 0
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment