Clean up some aliases/vim stuff
This commit is contained in:
parent
86cc72dbc6
commit
844ed3ab5a
8
vimrc
8
vimrc
|
@ -106,7 +106,6 @@ map <leader>gw :!git add . && git commit -m 'WIP' && git push<cr>
|
||||||
map <leader>nn :sp ~/Dropbox/notes/programming-notes<cr>
|
map <leader>nn :sp ~/Dropbox/notes/programming-notes<cr>
|
||||||
map <Leader>p :set paste<CR>o<esc>"*]p:set nopaste<cr>
|
map <Leader>p :set paste<CR>o<esc>"*]p:set nopaste<cr>
|
||||||
map <leader>pn :sp ~/Dropbox/notes/project-notes<cr>
|
map <leader>pn :sp ~/Dropbox/notes/project-notes<cr>
|
||||||
map <leader>rf :CommandTFlush<cr>
|
|
||||||
|
|
||||||
" Remove trailing whitespace on save all files.
|
" Remove trailing whitespace on save all files.
|
||||||
au BufWritePre * :%s/\s\+$//e
|
au BufWritePre * :%s/\s\+$//e
|
||||||
|
@ -143,8 +142,8 @@ imap <c-e> end
|
||||||
imap <c-l> <space>=><space>
|
imap <c-l> <space>=><space>
|
||||||
|
|
||||||
" Mapping ESC in insert mode and command mode to double i
|
" Mapping ESC in insert mode and command mode to double i
|
||||||
imap ii <C-[>
|
" imap ii <C-[>
|
||||||
cmap ii <C-[>
|
"" cmap ii <C-[>
|
||||||
|
|
||||||
" suspend process
|
" suspend process
|
||||||
nmap <leader>z <c-z>
|
nmap <leader>z <c-z>
|
||||||
|
@ -158,6 +157,8 @@ nmap <leader>w :w<cr>
|
||||||
nmap <leader>q :q<cr>
|
nmap <leader>q :q<cr>
|
||||||
nmap <leader>Q :q!<cr>
|
nmap <leader>Q :q!<cr>
|
||||||
nmap <leader>x :x<cr>
|
nmap <leader>x :x<cr>
|
||||||
|
:ca Wa wa
|
||||||
|
:ca WA wa
|
||||||
:ca WQ wq
|
:ca WQ wq
|
||||||
:ca Wq wq
|
:ca Wq wq
|
||||||
:ca W w
|
:ca W w
|
||||||
|
@ -181,7 +182,6 @@ map <leader>mm :split<cr>
|
||||||
|
|
||||||
map <leader>gg :topleft 100 :split Gemfile<cr>
|
map <leader>gg :topleft 100 :split Gemfile<cr>
|
||||||
map <leader>gr :topleft 100 :split config/routes.rb<cr>
|
map <leader>gr :topleft 100 :split config/routes.rb<cr>
|
||||||
map <leader>sd :topleft 100 :split app/models/contests/seed_data.rb<cr>
|
|
||||||
|
|
||||||
" Clear the search buffer (highlighting) when hitting return
|
" Clear the search buffer (highlighting) when hitting return
|
||||||
function! MapCR()
|
function! MapCR()
|
||||||
|
|
|
@ -98,6 +98,7 @@ alias gr='git reset'
|
||||||
alias grbm='git rebase master'
|
alias grbm='git rebase master'
|
||||||
alias grc='git rebase --continue'
|
alias grc='git rebase --continue'
|
||||||
alias gre='git remote'
|
alias gre='git remote'
|
||||||
|
alias grev='git remote -v'
|
||||||
alias grm='git rm'
|
alias grm='git rm'
|
||||||
alias gsnapshot='git stash save "snapshot: $(date)" && git stash apply "stash@{0}"'
|
alias gsnapshot='git stash save "snapshot: $(date)" && git stash apply "stash@{0}"'
|
||||||
alias gst='git status'
|
alias gst='git status'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user