Permalink
Browse files

new vim mappings

,k   - fix syntax highlighting when folds get them out of whack
,Y   - yank current line to system clipboard
  • Loading branch information...
1 parent d8cf521 commit 7f825c471732601a413824005e60e771aa6dbb5b @mattly committed Apr 3, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 vimrc
View
5 vimrc
@@ -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
@@ -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
@@ -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

0 comments on commit 7f825c4

Please sign in to comment.