Skip to content

Commit

Permalink
au commands better done in ftdetect instead of ftplugin; added <local…
Browse files Browse the repository at this point in the history
…leader>kn as synonym for Q; master and steps mockups
  • Loading branch information
dahu committed May 23, 2010
1 parent bfc4c57 commit 115c288
Show file tree
Hide file tree
Showing 3 changed files with 939 additions and 2 deletions.
3 changes: 1 addition & 2 deletions ftplugin/kata.vim
Expand Up @@ -8,8 +8,6 @@ if exists("b:did_ftplugin")
endif
let b:did_ftplugin = 1

au BufNewFile,BufRead *.kata set filetype=kata

setlocal commentstring=#%s foldmethod=marker
setlocal nospell nohlsearch

Expand All @@ -25,6 +23,7 @@ function! KataNextQuestion()
normal j
endfunction
nnoremap <buffer> <silent> Q :call KataNextQuestion()<cr>
nnoremap <buffer> <silent> <LocalLeader>kn :call KataNextQuestion()<cr>
function! KataThisQuestion()
call search("(\\d\\+)", "bc")
Expand Down

0 comments on commit 115c288

Please sign in to comment.