Commit 4adff1f

mo khan <mo@mokhan.ca>
2014-05-29 21:34:30
move command line mappings before general mappings.
1 parent 54deff2
Changed files (1)
vimrc
@@ -218,6 +218,21 @@ augroup filetype_vim
     autocmd FileType vim setlocal foldmethod=marker
 augroup END
 " }}}}
+"
+"" Command-Line Mappings {{{{
+""
+
+" After whitespace, insert the current directory into a command-line path
+cnoremap <expr> <C-P> getcmdline()[getcmdpos()-2] ==# ' ' ? expand('%:p:h') : "\<C-P>"
+
+" Kills Trailing Whitespaces
+command! KillWhitespace :normal :%s/ *$//g<cr><c-o><cr>
+
+command! RAddParameter call AddParameter()
+command! RInlineTemp call InlineTemp()
+command! RExtractLet call ExtractLet()
+
+" }}}
 
 "" General Mappings (Normal, Visual, Operator-pending) {{{{
 ""
@@ -348,21 +363,6 @@ nnoremap <leader>tb :TagbarToggle<cr>
 
 " }}}}
 
-"" Command-Line Mappings {{{{
-""
-
-" After whitespace, insert the current directory into a command-line path
-cnoremap <expr> <C-P> getcmdline()[getcmdpos()-2] ==# ' ' ? expand('%:p:h') : "\<C-P>"
-
-" Kills Trailing Whitespaces
-command! KillWhitespace :normal :%s/ *$//g<cr><c-o><cr>
-
-command! RAddParameter call AddParameter()
-command! RInlineTemp call InlineTemp()
-command! RExtractLet call ExtractLet()
-
-" }}}
-
 "" Status Line {{{{
 ""