Last active
August 29, 2015 14:08
-
-
Save genedna/dc12018158f62a2334bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set fo+=o " Automatically insert the current comment leader after hitting 'o' or 'O' in Normal mode. | |
set fo-=r " Do not automatically insert a comment leader after an enter | |
set fo-=t " Do no auto-wrap text using textwidth (does not apply to comments) | |
set nu | |
set nowrap | |
set textwidth=0 " Don't wrap lines by default | |
set wildmode=longest,list " At command line, complete longest common string, then list alternatives. | |
set backspace=indent,eol,start " more powerful backspacing | |
set tabstop=2 " Set the default tabstop | |
set softtabstop=2 | |
set shiftwidth=2 " Set the default shift width for indents | |
set expandtab " Make tabs into spaces (set by tabstop) | |
set smarttab " Smarter tab levels | |
set autoindent | |
set cindent | |
set cinoptions=:s,ps,ts,cs | |
set cinwords=if,else,while,do,for,switch,case | |
syntax on " enable syntax | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/Vundle.vim' | |
" My Bundles here: | |
Bundle 'fatih/vim-go' | |
Bundle 'Shougo/neocomplete' | |
Bundle 'Shougo/neosnippet' | |
Bundle 'Shougo/neosnippet-snippets' | |
Bundle 'scrooloose/nerdtree' | |
Bundle 'majutsushi/tagbar' | |
let g:neosnippet#enable_snipmate_compatibility = 1 | |
let g:neosnippet#snippets_directory='~/.vim/bundle/vim-snippets/snippets' | |
let g:go_snippet_engine = "neosnippet" | |
let g:neocomplete#enable_at_startup = 1 | |
nmap <F8> :TagbarToggle<CR> | |
let g:tagbar_ctags_bin='/usr/local/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' | |
\ } | |
filetype plugin indent on " required! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment