Clean up conflict of M window move with marks

(changed M to \m for show marks)
This commit is contained in:
yan 2011-11-22 10:36:09 -06:00
parent 64803da7e1
commit 34bc83671f
2 changed files with 14 additions and 20 deletions

View File

@ -50,7 +50,7 @@ These are things I use every day to be insanely productive. Hope you like em.
* T - Tag list (list of methods in a class)
* K - git grep for the Kurrent word under the cursor
* O - Open a GitGrep command line with a quote pretyped (close the quote yourself)
* M - show my Marks (set a mark with mX where X is a letter, navigate to mark using 'X). Uppercase marks to mark files, lowercase marks to use within a file.
* \m - show my Marks (set a mark with mX where X is a letter, navigate to mark using 'X). Uppercase marks to mark files, lowercase marks to use within a file.
* Z - jump back and forth between last two buffers
* Q - Quit a window (normally Ctrl-w,c)
* \Q - Kill a buffer completely (normally :bw)

32
vimrc
View File

@ -134,23 +134,14 @@ if has("gui_running")
"tell the term has 256 colors
set t_Co=256
if has("gui_gnome")
set term=gnome-256color
colorscheme desert
else
colorscheme railscasts
set guitablabel=%M%t
set lines=60
set columns=190
endif
if has("gui_mac") || has("gui_macvim")
set guifont=Monaco:h17
set guifont=Inconsolata:h20 " if available, this one is nicer
endif
if has("gui_win32") || has("gui_win32s")
set guifont=Consolas:h12
set enc=utf-8
endif
" colorscheme railscasts
colorscheme solarized
set guitablabel=%M%t
set lines=60
set columns=190
set guifont=Monaco:h17
set guifont=Inconsolata:h20 " if available, this one is nicer
else
"dont load csapprox if we no gui support - silences an annoying warning
let g:CSApprox_loaded = 1
@ -364,9 +355,12 @@ nmap <silent> S \lj
let g:LustyJugglerSuppressRubyWarning = 1
let g:LustyJugglerAltTabMode = 1
" Show me all my marks (using showmarks plugin)
nnoremap <silent> M :PreviewMarks<CR>
" Show me all my marks (using showmarks plugin) using \m
nnoremap <silent> <Leader>m :PreviewMarks<CR>
" copy current filename into system clipboard - mnemonic: (c)urrent(f)ilename
" this is helpful to paste someone the path you're looking at
nnoremap <silent> cf :let @* = expand("%:p")<CR>
" For fugitive.git, dp means :diffput. Define dg to mean :diffget
nnoremap <silent> dg :diffget<CR>