Skip to content

Instantly share code, notes, and snippets.

@genedna
Last active March 21, 2019 06:34
Show Gist options
  • Select an option

  • Save genedna/99853b7aa85f70dab7b6 to your computer and use it in GitHub Desktop.

Select an option

Save genedna/99853b7aa85f70dab7b6 to your computer and use it in GitHub Desktop.
Terminal Developing Environment Config
git clone https://github.com/vim/vim.git
sudo yum install -y ruby ruby-devel lua lua-devel luajit luajit-devel ctags mercurial python python-devel python3 python3-devel tcl-devel perl perl-devel perl-ExtUtils-ParseXS perl-ExtUtils-XSpp perl-ExtUtils-CBuilder perl-ExtUtils-Embed ncurses-devel
./configure --with-features=huge --enable-multibyte --enable-rubyinterp --enable-pythoninterp --enable-perlinterp --enable-luainterp --enable-gui=gtk2 --enable-cscope --with-tlib=ncurses --prefix=/usr
make VIMRUNTIMEDIR=/usr/share/vim/vim80
sudo make install
curl http://j.mp/spf13-vim3 -L -o - | sh
set shiftwidth=2                " Use indents of 4 spaces
set expandtab                   " Tabs are spaces, not tabs
set tabstop=2                   " An indentation every four columns
set softtabstop=2               " Softtab
set autoindent
set cindent
set cinoptions=:s,ps,ts,cs
set cinwords=if,else,while,do,for,switch,case

let g:tagbar_ctags_bin='/usr/bin/ctags'
let g:tagbar_width=26
let g:tagbar_type_go = {
    \ 'ctagstype' : 'go',
    \ 'kinds'     : [
        \ 'p:package',
        \ 'i:imports:1',
        \ 'c:constants',
        \ 'v:variables',
        \ 't:types',
        \ 'n:interfaces',
        \ 'w:fields',
        \ 'e:embedded',
        \ 'm:methods',
        \ 'r:constructor',
        \ 'f:functions'
    \ ],
    \ 'sro' : '.',
    \ 'kind2scope' : {
        \ 't' : 'ctype',
        \ 'n' : 'ntype'
    \ },
    \ 'scope2kind' : {
        \ 'ctype' : 't',
        \ 'ntype' : 'n'
    \ },
    \ 'ctagsbin'  : 'gotags',
    \ 'ctagsargs' : '-sort -silent'
\ }

colorscheme peaksea
export GOPATH=$HOME/gopath
export GOROOT=$HOME/go
export GOBIN=$GOROOT/bin
export GOTOOLS=$GOROOT/pkg/tool
export PATH=$PATH:$GOBIN:$GOTOOLS:$GOPATH/bin:$HOME/.cargo/bin
@mindscratch

Copy link
Copy Markdown

Thanks for sharing!

@wayne666

wayne666 commented Sep 7, 2017

Copy link
Copy Markdown

Thanks for your share!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment