Skip to content

Instantly share code, notes, and snippets.

@iocentos
Last active November 3, 2017 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iocentos/307042368e4d2f6df5f829fe2ce8f9f7 to your computer and use it in GitHub Desktop.
Save iocentos/307042368e4d2f6df5f829fe2ce8f9f7 to your computer and use it in GitHub Desktop.
set noautofocus
set nocncpcompletion
set smoothscroll
let searchlimit = 40
let barposition = "bottom"
let scrollstep = 200
" This remaps the default 'f' mapping to the current 'F' mapping
map f F
map <C-l> nextTab
map <C-h> previousTab
map <C-f> scrollFullPageDown
map <C-b> scrollFullPageUp
map u lastClosedTab
let mapleader = "\\"
" Insert mode
imap <C-a> beginningOfLine
imap <C-e> endOfLine
imap <C-u> deleteToBeginning
imap <C-k> deleteToEnd
imap <C-w> deleteWord
imap <C-f> forwardChar
imap <C-b> backwardChar
imap <C-p> backwardLine
imap <C-n> forwardLine
" Code blocks (see below for more info)
getIP() -> {{
httpRequest({url: 'http://api.ipify.org/?format=json', json: true},
function(res) { Status.setMessage('IP: ' + res.ip); });
}}
" Displays your public IP address in the status bar
map <Leader>ip :call getIP<CR>
map <Leader>gi :tabopen https://github.com<CR>
map <Leader>Gi :open https://github.com<CR>
map <Leader>gm :tabopen https://mail.google.com/mail/#index<CR>
map <Leader>Gm :open https://mail.google.com/mail/#index<CR>
site "https://docs.google.com/*" {
unmapAll
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment