Skip to content

Instantly share code, notes, and snippets.

@gabetax
Created April 19, 2012 14:40
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 gabetax/2421375 to your computer and use it in GitHub Desktop.
Save gabetax/2421375 to your computer and use it in GitHub Desktop.
My vimrc for use with janus
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
nnoremap <left> :3wincmd <<cr>
nnoremap <right> :3wincmd ><cr>
nnoremap <up> :3wincmd +<cr>
nnoremap <down> :3wincmd -<cr>
noremap <leader>w <C-w>c
noremap <C-t> :tabnew<cr>
" Buffer and Tab navigation
nmap <silent> ,. :bnext<CR>
nmap <silent> ,m :bprev<CR>
nmap <silent> ;' :tabnext<CR>
nmap <silent> ;l :tabprev<CR>
noremap <leader>sv :source ~/.vimrc<cr>:source ~/.vimrc.after<cr>
" Reselect visual block after indent/outdent
vnoremap < <gv
vnoremap > >gv
" Use jk as <Esc> alternative
inoremap jk <Esc>
inoremap kj <Esc>
" Commands without shift key
nnoremap ; :
noremap <space> :nohlsearch<cr>
iab <expr> isoD strftime("%Y-%m-%d")
" Only have cursorline in current window
autocmd WinLeave * set nocursorline
autocmd WinEnter * set cursorline
color molokai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment