set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' Plugin 'Shougo/deoplete.nvim', { 'do': 'UpdateRemotePlugins' } Plugin 'jiangmiao/auto-pairs' Plugin 'ervandew/supertab' Plugin 'NLKNguyen/papercolor-theme' Plugin 'itchyny/lightline.vim' call vundle#end() " required filetype plugin indent on " required syntax on set number set tabstop=4 set autoindent set shortmess+=I set autochdir set noswapfile set nobackup set noundofile set showmatch set expandtab set shiftwidth=4 set laststatus=2 set noshowmode set cursorline "colorscheme 256_noir " Change highlighting of cursor line when entering/leaving Insert Mode "highlight CursorLine cterm=NONE ctermfg=NONE ctermbg=237 guifg=NONE guibg=#121212 "autocmd InsertEnter * highlight CursorLine cterm=NONE ctermfg=NONE ctermbg=234 guifg=NONE guibg=#1c1c1c "autocmd InsertLeave * highlight CursorLine cterm=NONE ctermfg=NONE ctermbg=233 guifg=NONE guibg=#121212 set t_Co=256 colorscheme PaperColor set background=dark
Internal Server Error
20191010
Updated .vimrc: going back to vim from nvim
20190524
Trying out NeoVim, my init.vim
prep: pip install pynvim && pip install neovim && pip install jedi && pip install yapf install Plugin Manager curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim /.config/nvim/init.vim: call plug#begin('~/.config/nvim/bundle') Plug 'Shougo/deoplete.nvim', { 'do': 'UpdateRemotePlugins' } Plug 'scrooloose/syntastic' Plug 'bling/vim-airline' Plug 'jiangmiao/auto-pairs' Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'} Plug 'davidhalter/jedi-vim' Plug 'ervandew/supertab' call plug#end() set number syntax on set tabstop=4 set autoindent set showmatch set expandtab set shiftwidth=4 set background=dark set cursorline hi Cursorline term=bold cterm=bold ctermbg=DarkBlue hi LineNr ctermfg=grey guifg=#2b506e guibg=#000000 hi CursorLineNr term=bold ctermfg=White gui=bold guifg=Yellow ctermbg=DarkBlue noremap Y y$ autocmd FileType python nnoremapy :0,$!yapf autocmd CompleteDone * pclose " To close preview window of deoplete automagically
20190408
updated .vimrc
inoremap " ""<left> inoremap ' ''<left> inoremap ( ()<left> inoremap [ []<left> inoremap { {}<left> inoremap {<CR> {<CR>}<ESC>O inoremap {;<CR> {<CR>};<ESC>O set backspace=indent,eol,start set number syntax on set tabstop=4 set autoindent set cursorline hi CursorLine term=bold cterm=bold ctermbg=DarkBlue hi LineNr ctermfg=grey guifg=#2b506e guibg=#000000 hi CursorLineNr term=bold ctermfg=Yellow gui=bold guifg=Yellow ctermbg=DarkBlue set showmatch set expandtab set shiftwidth=4
20181123
python + vscode + indent + format
Indent block
Format block
- Select block
- CMD + ]
Format block
- Select block
- CMD + K, F
20181016
Python + Virtualenv + VCcode
- Install user Python (~/Library/Python/3.x/bin)
- Update PATH in .bash_profile (source .bash_profile)
- Install virtualenv: pip install virtualenv
- Change dir to project folder (e.g. my_project_folder)
- Create virtualenv (e.g. virtualenv my_project)
- Activate (e.g. source my_project/bin/activate)
- Run VSCode on project folder (e.g. code my_project)
- Change python env (⇧⌘P) to my_project/bin/python
- Enjoy
20180510
Updated vimrc
set number
syntax on
set tabstop=4
set autoindent
set cursorline
hi CursorLine term=bold cterm=bold ctermbg=DarkBlue
hi LineNr ctermfg=grey guifg=#2b506e guibg=#000000
hi CursorLineNr term=bold ctermfg=Yellow gui=bold guifg=Yellow ctermbg=DarkBlue
set showmatch
set expandtab
set shiftwidth=4
syntax on
set tabstop=4
set autoindent
set cursorline
hi CursorLine term=bold cterm=bold ctermbg=DarkBlue
hi LineNr ctermfg=grey guifg=#2b506e guibg=#000000
hi CursorLineNr term=bold ctermfg=Yellow gui=bold guifg=Yellow ctermbg=DarkBlue
set showmatch
set expandtab
set shiftwidth=4
20180419
Sending JSON data via curl
curl -i -H "Content-Type: application/json" \
-X POST -d '{"name":"Zuck","type":"Snake"}' \
http://127.0.0.1:8080/animal
-X [DELETE|POST|GET]
-X POST -d '{"name":"Zuck","type":"Snake"}' \
http://127.0.0.1:8080/animal
-X [DELETE|POST|GET]
Subscribe to:
Posts (Atom)