Skip to content

Instantly share code, notes, and snippets.

@tommasodeponti
Last active May 1, 2020 09:08
Show Gist options
  • Save tommasodeponti/20b75d1b9f254367962db1c159cd6e6f to your computer and use it in GitHub Desktop.
Save tommasodeponti/20b75d1b9f254367962db1c159cd6e6f to your computer and use it in GitHub Desktop.
set nocompatible " required
filetype off " required
set number
" 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 'gmarik/Vundle.vim'
" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)
Plugin 'preservim/nerdtree'
Plugin 'jaredgorski/spacecamp'
Plugin 'jiangmiao/auto-pairs'
" ...
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
nnoremap <silent> <F2> :NERDTreeToggle /Users/tommasodeponti/Desktop/<CR>
let g:NERDTreeNodeDelimiter = "\u00a0"
syntax on
set backspace=indent,eol,start
"split navigations
autocmd FileType python map <buffer> <F3> :w<CR>:exec '!python3' shellescape(@%, 1)<CR>
autocmd FileType python imap <buffer> <F3> <esc>:w<CR>:exec '!python3' shellescape(@%, 1)<CR>
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
colorscheme spacecamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment