Skip to content

Commit

Permalink
new vim mappings
Browse files Browse the repository at this point in the history
,k   - fix syntax highlighting when folds get them out of whack
,Y   - yank current line to system clipboard
  • Loading branch information
mattly committed Apr 3, 2012
1 parent d8cf521 commit 7f825c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vimrc
Expand Up @@ -165,6 +165,7 @@
" gd - write, diff against HEAD
" gs - git status
" gw - write, add to index
" k fix syntax highlighting
" m open in Marked.app
" n line number toggling
" p paste from system clipboard
Expand Down Expand Up @@ -229,6 +230,9 @@
" open this in Marked
nnoremap <leader>m :silent !open -a Marked.app '%:p'<cr>
" fix syntax highlighting
nnoremap <leader>k :syntax sync fromstart<cr>
" Searching
" =============================================================================
set ignorecase " ignore case in searches
Expand Down Expand Up @@ -395,6 +399,7 @@
" For yanking to / pasting from system clipboard
" for terminal vim, requires the one included with MacVim
nnoremap <Leader>y "*y
nnoremap <Leader>Y "*Y
vnoremap <Leader>y "*y
nnoremap <Leader>p "*p
nnoremap <Leader>P "*P
Expand Down

0 comments on commit 7f825c4

Please sign in to comment.