mirror of
https://github.com/amix/vimrc
synced 2025-06-16 17:45:00 +08:00
Added markdown plugin. Added README.md
This commit is contained in:
@ -188,6 +188,8 @@ map k gk
|
||||
" Map <Space> to / (search) and Ctrl-<Space> to ? (backwards search)
|
||||
map <space> /
|
||||
map <c-space> ?
|
||||
|
||||
" Disable highlight when <leader><cr> is pressed
|
||||
map <silent> <leader><cr> :noh<cr>
|
||||
|
||||
" Smart way to move between windows
|
||||
@ -276,10 +278,10 @@ autocmd BufWrite *.coffee :call DeleteTrailingWS()
|
||||
" When you press gv you vimgrep after the selected text
|
||||
vnoremap <silent> gv :call VisualSelection('gv')<CR>
|
||||
|
||||
" Some useful keys for vimgrep
|
||||
" Open vimgrep and put the cursor in the right position
|
||||
map <leader>g :vimgrep // **/*.<left><left><left><left><left><left><left>
|
||||
|
||||
" Leader space vimgreps in the current file
|
||||
" Vimgreps in the current file
|
||||
map <leader><space> :vimgrep // <C-R>%<C-A><right><right><right><right><right><right><right><right><right>
|
||||
|
||||
" When you press <leader>r you can search and replace the selected text
|
||||
|
Reference in New Issue
Block a user