Skip to content

Instantly share code, notes, and snippets.

@dinhmai74
dinhmai74 / mac.vim
Last active November 18, 2019 23:59
nvim init file
set shell=zsh " Set bash as the prompt for Vim
set backspace=2 " Backspace deletes like most programs in insert mode
set nobackup
set nowritebackup
set noswapfile " http://robots.thoughtbot.com/post/18739402579/global-gitignore#comment-458413287
set history=50
set ruler " show the cursor position all the tim
set showcmd " display incomplete commands
set laststatus=2 " Always display the status line
set autowrite " Automatically :write before running commands
@dinhmai74
dinhmai74 / config.js
Created July 20, 2018 14:34
onivim setting
const activate = (oni) => {
// access the Oni plugin API here
// for example, unbind the default `<c-p>` action:
// or bind a new action:
oni.input.bind(["<tab>"], "contextMenu.next");
oni.input.bind(["<s-tab>"], "contextMenu.previous");
oni.input.bind(["<tab>"], "menu.next");