Skip to content

Instantly share code, notes, and snippets.

@jogam5
Last active June 22, 2020 12:57
Show Gist options
  • Save jogam5/3ed07eec2c4bf477e2bdbd81d91b0dd4 to your computer and use it in GitHub Desktop.
Save jogam5/3ed07eec2c4bf477e2bdbd81d91b0dd4 to your computer and use it in GitHub Desktop.
VimRc MacOS Mojave
set nocompatible " be iMproved, required
filetype off " required
set bs=2
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" Gabo plugins
Plugin 'tpope/vim-eunuch'
Plugin 'scrooloose/nerdtree'
Plugin 'tpope/vim-surround'
Plugin 'itchyny/lightline.vim'
Plugin 'fatih/vim-go'
Plugin 'nsf/gocode', {'rtp': 'vim/'}
Plugin 'moll/vim-node'
Plugin 'mxw/vim-jsx'
Plugin 'w0rp/ale'
:set number "Line numbers
:set autoread "Reload files changed outside vim
:set noet ci pi sts=0 sw=2 ts=2
autocmd vimenter * NERDTree
autocmd bufwinenter * NERDTreeMirror " Make nerd tree available in any tab
autocmd vimenter * wincmd w " Place cursor in new tab
"nmap <silent> <F3> :NERDTreeToggle<CR> " Toogle option
colorscheme slate
syntax on "Turn on syntax highlighting
let g:go_auto_type_info = 1
let g:go_highlight_functions = 1 " Highlight function names
filetype plugin on
set omnifunc=syntaxcomplete#Complete
" Map movement of tabs:
nmap <C-l> gt
nmap <C-h> gT
" Highlight searches
set hlsearch
" Show matching brackets
set showmatch
"set clipboard=unnamed
set clipboard=
" Next colors:
" NOVcolorscheme delek
" DICcolorscheme peachpuff
" ENEcolorscheme desert
" Gabo plugins end
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
" Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'}
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment