Remap W to write the file, Cc to copy current command to the vim command line
This commit is contained in:
parent
8d0a85ed15
commit
6ac3e13e99
13
vimrc
13
vimrc
@ -309,9 +309,19 @@ hi Directory guifg=#5285b4
|
|||||||
hi NonText guifg=#101010 "hide the blank line ~ marks
|
hi NonText guifg=#101010 "hide the blank line ~ marks
|
||||||
hi rubyClass guifg=lightgreen gui=bold
|
hi rubyClass guifg=lightgreen gui=bold
|
||||||
|
|
||||||
|
" this affects LustyJuggler's 'currently selected' color
|
||||||
|
" designed for use with solarized colorscheme
|
||||||
|
hi Question guifg=yellow
|
||||||
|
|
||||||
" show this many lines around what i'm editing
|
" show this many lines around what i'm editing
|
||||||
set so=8
|
set so=8
|
||||||
|
|
||||||
|
" aliases (C)opy (c)ommand - which allows us to execute
|
||||||
|
" the line we're looking at (it does so by yy-copy, colon
|
||||||
|
" to get to the command mode, C-f to get to history editing
|
||||||
|
" p to paste it, C-c to return to command mode, and CR to execute
|
||||||
|
nmap <silent> Cc yy:<C-f>p<C-c><CR>
|
||||||
|
|
||||||
" Find references to the currently opened partial (file)
|
" Find references to the currently opened partial (file)
|
||||||
" by pressing P in command mode
|
" by pressing P in command mode
|
||||||
function GitGrepCurrentPartial()
|
function GitGrepCurrentPartial()
|
||||||
@ -365,3 +375,6 @@ nnoremap <silent> cf :let @* = expand("%:p")<CR>
|
|||||||
|
|
||||||
" For fugitive.git, dp means :diffput. Define dg to mean :diffget
|
" For fugitive.git, dp means :diffput. Define dg to mean :diffget
|
||||||
nnoremap <silent> dg :diffget<CR>
|
nnoremap <silent> dg :diffget<CR>
|
||||||
|
|
||||||
|
" alias W to write the file instead of :w
|
||||||
|
nnoremap W :w<CR>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user